wip billing
This commit is contained in:
parent
1092f75fc4
commit
1bffe247e3
4 changed files with 27 additions and 25 deletions
|
|
@ -58,7 +58,6 @@ namespace BookAStar.ViewModels
|
|||
{
|
||||
SetProperty<decimal>(ref unitaryCost, value, "UnitaryCost");
|
||||
data.UnitaryCost = value;
|
||||
UnitaryCostText = value.ToString(unitCostFormat, CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
protected int durationValue;
|
||||
|
|
@ -107,20 +106,9 @@ namespace BookAStar.ViewModels
|
|||
|
||||
set
|
||||
{
|
||||
if (unitaryCostText != value)
|
||||
{
|
||||
try
|
||||
{
|
||||
data.UnitaryCost = decimal.Parse(value, CultureInfo.InvariantCulture);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// TODO Error model
|
||||
// UI should shoud entry as wearing a wrong value
|
||||
// thanks to its `Behaviors`
|
||||
}
|
||||
}
|
||||
SetProperty<string>(ref unitaryCostText, value, "UnitaryCostText");
|
||||
// TODO update behavior
|
||||
|
||||
}
|
||||
}
|
||||
bool invalidCost;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue