private void Cancel(object sender, RoutedEventArgs e) { MainWindow main = Application.Current.MainWindow as MainWindow; customersList customersListPage = new customersList(); main.frame.Navigate(customersListPage); }
public MainWindow() { InitializeComponent(); this.DataContext = db; customersList customersListPage = new customersList(); frame.Navigate(customersListPage); }
private void Delete(object sender, RoutedEventArgs e) { db.customers.Remove((customers)dgCustomers.SelectedItem); db.SaveChanges(); MainWindow main = Application.Current.MainWindow as MainWindow; customersList customersListPage = new customersList(); main.frame.Navigate(customersListPage); }
private void CustomersList_Click(object sender, RoutedEventArgs e) { customersList customersListPage = new customersList(); frame.Navigate(customersListPage); }