コード例 #1
0
ファイル: ToMENU.xaml.cs プロジェクト: GGTTds/PRK-Dip
 private void Nex_Click(object sender, RoutedEventArgs e)
 {
     if (ps1.Password == "123456")
     {
         Rigist ww = new Rigist();
         ww.Show();
         this.Close();
     }
 }
コード例 #2
0
ファイル: ToMENU.xaml.cs プロジェクト: GGTTds/PRK-Dip
 private void Window_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (ps1.Password == "123456")
         {
             Rigist ww = new Rigist();
             ww.Show();
             if (e.Key == Key.Escape)
             {
                 this.Close();
             }
         }
     }
     if (e.Key == Key.Escape)
     {
         this.Close();
     }
 }