public void ModIncAt(ExpenseItem item, int index) { if (!item.IsInc()) { throw new Exception("Wrong type mate! Inc - expected"); } this.inc[index] = new ExpenseItem( item.Title, item.Desc, item.Val, item.Type); this.OnPropertyRaised("updated"); }
public void ModIncAt(ExpenseItem item, int index) { if (!item.IsInc()) { throw new Exception("Wrong type mate! Inc - expected"); } this.inc[index] = new ExpenseItem( item.Title, item.Desc, item.Val, item.Type); this.OnPropertyRaised("updated"); }