コード例 #1
0
 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();
     }
 }
コード例 #2
0
 private void BackMainWindow_Click(object sender, RoutedEventArgs e)
 {
     MainWindow mwWindow = new MainWindow();
     mwWindow.Show();
     Close();
 }