private void Logout_Click() { MainWindow mainWindow = new MainWindow(); Application.Current.MainWindow = mainWindow; mainWindow.Show(); parent.Close(); }
public void LogOutDoctorExecute() { try { MainWindow main = new MainWindow(); main.Show(); docWindow.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }