コード例 #1
0
 public void DisplayItems(FundRequestDTO req)
 {
     Items.Clear();
     Items.Add(AllocationVM.CashInBank(_arg.AccountName));
     req.Allocations?.ForEach(_
                              => Items.Add(new AllocationVM(_)));
     CanAddItem = false;
 }
コード例 #2
0
 internal void UpdateBaseAmount(decimal?amount)
 {
     if (amount == Items[0].Credit)
     {
         return;
     }
     Items.RemoveAt(0);
     Items.Insert(0, AllocationVM.CashInBank(_arg.AccountName, amount));
     CanAddItem = amount.HasValue && amount > 0;
 }