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(); } } }
private void BtnAddNewTag_Click(object sender, RoutedEventArgs e) { AddNewTicketWindow addNewTicketWindow = new AddNewTicketWindow(); addNewTicketWindow.ShowDialog(); DataContext = this; }
private void ImgNewTicket_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { AddNewTicketWindow addNewTicketWindow = new AddNewTicketWindow(); addNewTicketWindow.ShowDialog(); }
private void MiNewTicket_Click(object sender, RoutedEventArgs e) { AddNewTicketWindow addNewTicketWindow = new AddNewTicketWindow(); addNewTicketWindow.ShowDialog(); }