public void Exit(MainWindow mainWindow, AdminView adminView) { adminView.Hide(); mainWindow.ShowDialog(); }