private void On_Closed(Object sender, System.ComponentModel.CancelEventArgs e) { MainWindow mainWindow = new MainWindow(); mainWindow.Show(); }//when pressing x open the main window
private void On_Closed(Object sender, System.ComponentModel.CancelEventArgs e) { MainWindow mainWindow = new MainWindow(); mainWindow.Show(); }