コード例 #1
0
 public UniqueExpenseVM(int _Id, DateTime _Date, int _Amount, string _Name)
 {
     this.Id           = _Id;
     this.Date         = _Date;
     this.Amount       = DataConversion.ConvertCentsToCurrency(Math.Abs(_Amount));
     this.SignedAmount = DataConversion.ConvertCentsToCurrency(_Amount);
     this.AmountColor  = ViewHelpers.GetColorByAmount(_Amount);
     this.Name         = _Name;
 }
コード例 #2
0
 public void SetTotal(int _totalExpense)
 {
     m_TotalAmount         = Math.Abs(_totalExpense);
     this.TotalAmountColor = ViewHelpers.GetColorByAmount(_totalExpense);
 }