Fixes the rating control
This commit is contained in:
parent
b6bfadb7b4
commit
d642ff3cad
10 changed files with 157 additions and 58 deletions
|
|
@ -47,6 +47,20 @@ namespace BookAStar.ViewModels
|
|||
data.Description = value;
|
||||
}
|
||||
}
|
||||
public decimal UnitaryCost
|
||||
{
|
||||
get
|
||||
{
|
||||
return data.UnitaryCost;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
SetProperty<decimal>(ref unitaryCost, value, "UnitaryCost");
|
||||
data.UnitaryCost = value;
|
||||
UnitaryCostText = value.ToString(unitCostFormat, CultureInfo.InvariantCulture);
|
||||
}
|
||||
}
|
||||
protected int durationValue;
|
||||
public int DurationValue
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ namespace BookAStar.ViewModels
|
|||
|
||||
internal class DashboardViewModel : ViewModel
|
||||
{
|
||||
public int Rating { get; set; }
|
||||
|
||||
public string UserId
|
||||
{
|
||||
get
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@ namespace BookAStar.ViewModels
|
|||
{
|
||||
Data = data;
|
||||
if (data.AttachedFiles == null) data.AttachedFiles = new List<string>();
|
||||
if (data.AttachedGraphicList == null) data.AttachedGraphicList = new List<string>();
|
||||
if (data.AttachedGraphics == null) data.AttachedGraphics = new List<string>();
|
||||
if (data.Bill == null) data.Bill = new List<BillingLine>();
|
||||
AttachedFiles = new ObservableCollection<string>(data.AttachedFiles);
|
||||
AttachedGraphicList = new ObservableCollection<string>(data.AttachedGraphicList);
|
||||
AttachedGraphicList = new ObservableCollection<string>(data.AttachedGraphics);
|
||||
Bill = new ObservableCollection<BillingLine>(data.Bill);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue