Beispiel #1
0
        //when home button clicked
        private void btnHome_Click(object sender, RoutedEventArgs e)
        {
            //if home clicked show the main window and close the current window
            MainWindow Window1 = new MainWindow();

            Window1.Show();

            SearchRecordsWindow Window2 = new SearchRecordsWindow();

            Window2.Close();
        }
Beispiel #2
0
        private void btnSearchForRecord_Click(object sender, RoutedEventArgs e)
        {
            //open new window for search records and close the current window open
            MainWindow          window2 = new MainWindow();
            SearchRecordsWindow window  = new SearchRecordsWindow();

            Save();

            window.Show();
            window2.Close();
        }