Exemplo n.º 1
0
 /// <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();
     }
 }
Exemplo n.º 2
0
 /// <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();
     }
 }