Пример #1
0
 private void mainMenuButton_Click(object sender, RoutedEventArgs e)
 {
     MainWindow getBack = new MainWindow();                          //Creates a main screen object
     getBack.Show();
     getBack.Focus();                                                //Changes the focus to the main form (avoids a second click)
     this.Close();
 }