Beispiel #1
0
 /*
  * Opens the window for editing a specific item in the selected list
  * */
 private void income_editWindow(object sender, MouseButtonEventArgs e)
 {
     try
     {
         EditWindow ew = new EditWindow(currentUser, this, 1, incomeList.SelectedIndex);
         ew.Show();
     }
     catch
     {
         //Error handling
     }
 }
Beispiel #2
0
 /*
  * Opens the window for editing a specific item in the selected list
  * */
 private void transaction_editWindow(object sender, MouseButtonEventArgs e)
 {
     try
     {
         EditWindow ew = new EditWindow(currentUser, this, 0, transactionList.SelectedIndex);
         ew.Show();
         //EditWindow ew = new EditWindow(((MoneyData)transactionList.SelectedItems[0]), this);
         // ew.Show();
         // MessageBox.Show(((MoneyData)transactionList.SelectedItems[0]).PrimaryType);
     }
     catch
     {
         //Error handling
     }
 }