コード例 #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 BtnAddNewTag_Click(object sender, RoutedEventArgs e)
        {
            AddNewTicketWindow addNewTicketWindow = new AddNewTicketWindow();

            addNewTicketWindow.ShowDialog();
            DataContext = this;
        }
コード例 #3
0
        private void ImgNewTicket_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            AddNewTicketWindow addNewTicketWindow = new AddNewTicketWindow();

            addNewTicketWindow.ShowDialog();
        }
コード例 #4
0
        private void MiNewTicket_Click(object sender, RoutedEventArgs e)
        {
            AddNewTicketWindow addNewTicketWindow = new AddNewTicketWindow();

            addNewTicketWindow.ShowDialog();
        }