You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
793 B
36 lines
793 B
using System;
|
|
using OrderStacks.model;
|
|
using OrderStacks.model.card.cardType;
|
|
|
|
namespace OrderStacks.viewmodel
|
|
{
|
|
public class FractionCardVM : CardVM
|
|
{
|
|
|
|
public new FractionCard View { get; set; }
|
|
|
|
protected Fraction fraction;
|
|
public Fraction Fraction
|
|
{
|
|
get { return fraction; }
|
|
set
|
|
{
|
|
this.fraction = value;
|
|
View.Fraction = value;
|
|
OnPropertyChanged("Value");
|
|
}
|
|
}
|
|
|
|
public FractionCardVM(FractionCard view) : base(view)
|
|
{
|
|
View = view;
|
|
Fraction = view.Fraction;
|
|
}
|
|
|
|
public string getDisplayMax()
|
|
{
|
|
return Math.Pow(10, View.Fraction.SizeMax - 1).ToString();
|
|
}
|
|
}
|
|
}
|