private void BackToMain()
 {
     MainWindow main = new MainWindow();
     main.Show();
     this.Close();
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     MainWindow main = new MainWindow();
     main.Show();
     this.Close();
 }