Ejemplo n.º 1
0
 private void InfoCost_OnChangeIsReturn()
 {
     IncomingsAndExpenses.First().ExpenseCompensation = Costs.Where(x => x.IsReturn).Sum(c => !c.IsIncoming ? c.Summ : 0);
 }
Ejemplo n.º 2
0
 private void SummChange()
 {
     IncomingsAndExpenses.First().Incoming = Costs.Sum(c => c.IsIncoming ? c.Summ : 0);
     IncomingsAndExpenses.First().Expense  = Costs.Sum(c => !c.IsIncoming ? c.Summ : 0);
 }