private void BackMainWindow_Click(object sender, RoutedEventArgs e) { if (ListOfAccount.strLogin == "ADMIN" && ListOfAccount.bCheakAdmin == true) { AdministratorMode amWindow = new AdministratorMode(); amWindow.Show(); Close(); } else { MainWindow mnWindow = new MainWindow(); mnWindow.Show(); Close(); } }
private void BackMainWindow_Click(object sender, RoutedEventArgs e) { MainWindow mwWindow = new MainWindow(); mwWindow.Show(); Close(); }