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 ImgNewManifestation_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { DataContext = this; AddManifestationWindow addManifestationWindow = new AddManifestationWindow(); addManifestationWindow.ShowDialog(); }
private void MiNewManifestation_Click(object sender, RoutedEventArgs e) { AddManifestationWindow addManifestationWindow = new AddManifestationWindow(); addManifestationWindow.ShowDialog(); }