예제 #1
0
 private void Window_KeyDown(object sender, KeyEventArgs e)
 {
     if (isLogged)
     {
         if (e.Key == Key.F1)
         {
             AddManifestationWindow addManifestationWindow = new AddManifestationWindow();
             addManifestationWindow.ShowDialog();
         }
         else if (e.Key == Key.F2)
         {
             AddNewTypeWindow addNewTypeWindow = new AddNewTypeWindow();
             addNewTypeWindow.ShowDialog();
         }
         else if (e.Key == Key.F3)
         {
             AddNewTicketWindow addNewTicketWindow = new AddNewTicketWindow();
             addNewTicketWindow.ShowDialog();
         }
         else if (e.Key == Key.F12)
         {
             this.Close();
         }
     }
 }
예제 #2
0
        private void ImgNewManifestation_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            DataContext = this;
            AddManifestationWindow addManifestationWindow = new AddManifestationWindow();

            addManifestationWindow.ShowDialog();
        }
예제 #3
0
        private void MiNewManifestation_Click(object sender, RoutedEventArgs e)
        {
            AddManifestationWindow addManifestationWindow = new AddManifestationWindow();

            addManifestationWindow.ShowDialog();
        }