Пример #1
0
        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);
        }
Пример #3
0
        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);
        }