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 MiNewManType_Click(object sender, RoutedEventArgs e)
        {
            AddNewTypeWindow addNewTypeWindow = new AddNewTypeWindow();

            addNewTypeWindow.ShowDialog();
        }
        private void ImgNewType_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            AddNewTypeWindow addNewTypeWindow = new AddNewTypeWindow();

            addNewTypeWindow.ShowDialog();
        }