/// <summary> /// Triggeres the KeyPress Event from the SubCategoryView Backend. /// </summary> private void SubCategoryView_SendKeyPress(Object sender, SimpleKeyEventAgrs e) { if (e.SenderId == 1) { AddIncomeCategory(); } else if (e.SenderId == 2) { AddExpenseCategory(); } }
/// <summary> /// Triggers the SendEnter Event for confirming changes to the DataList. /// </summary> private void DataView_SendEnter(Object sender, SimpleKeyEventAgrs e) { if (e.SenderId == 1) { UpdateIncome(); } else if (e.SenderId == 2) { UpdateExpense(); } }