public static void DeleteExpense(Pages.Views.ExpensesView e) { Model.Expense expense = SearchExpense(e.Name); Expenses.Remove(expense); }
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(); }
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(); }