Beispiel #1
0
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F1)
     {
         About abo = new About();
         abo.ShowDialog();
     }
     else if (e.Key == Key.F11)
     {
         Kernel.Core.IsSetup = false;
         Set set = new Set();
         set.Show();
     }
     else if (e.Key == Key.F12)
     {
         if (Kernel.Core.IsCMode == false)
         {
             ConGui consl = new ConGui();
             consl.Show();
         }
     }
     if (UN.Text == "")
     {
         UN.Focus();
     }
 }
Beispiel #2
0
 private void PCP_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F1)
     {
         About abo = new About();
         abo.ShowDialog();
     }
     else if (e.Key == Key.F12)
     {
         if (Core.IsCMode == false)
         {
             ConGui consl = new ConGui();
             consl.Show();
         }
     }
 }