private void Cancel(object sender, RoutedEventArgs e)
        {
            MainWindow    main = Application.Current.MainWindow as MainWindow;
            customersList customersListPage = new customersList();

            main.frame.Navigate(customersListPage);
        }
示例#2
0
        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);
        }
示例#4
0
        private void CustomersList_Click(object sender, RoutedEventArgs e)
        {
            customersList customersListPage = new customersList();

            frame.Navigate(customersListPage);
        }