public static void DeleteExpense(Pages.Views.ExpensesView e)
 {
     Model.Expense expense = SearchExpense(e.Name);
     Expenses.Remove(expense);
 }
Example #2
0
 private void Delete_Click(object sender, RoutedEventArgs e)
 {
     Pages.Views.ExpensesView expense = (Pages.Views.ExpensesView)ExpensesDataGrid.SelectedItem;
     //DatabaseConnector.DatabaseConnector.DeleteExpense(expense);
     //bindingList.Remove(expense);
 }
 public UpdateExpensePage(Pages.Views.ExpensesView e)
 {
     InitializeComponent();
 }
Example #4
0
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     Pages.Views.ExpensesView expense = (Pages.Views.ExpensesView)ExpensesDataGrid.SelectedItem;
     new Windows.CUWindow(Windows.CUWindow.ePage.Expense, Windows.CUWindow.eMode.Update, expense).Show();
 }