private void Load()
        {
            Instance = this;

            timer = new DispatcherTimer();
            timer.Interval = new TimeSpan(0, 0, 2);
            timer.IsEnabled = true;
            timer.Tick += timer_Tick;
            timer.Start();

            if (Properties.Settings.Default.UserDprcGovUaEmail != "" &&
                    Properties.Settings.Default.UserDprcGovUaPassword != "")
            {
                //TODO MAIN WINDOW SHOWED
                MainWindow mainWindow = new MainWindow();
                mainWindow.ShowDialog();
                this.Close();
            }
            else
            {
                _animation.Initialize(this);
                btnNextStep.Visibility = System.Windows.Visibility.Visible;

                // Slide loading controls
                SlideLoad(imageFly);
                SlideLoad(imageTrain);
            }
        }
 private void menuSearchTicket_Click(object sender, RoutedEventArgs e)
 {
     var win = AppWindow.IsWindowOpen<MainWindow>();
     if (win != null)
         win.Focus();
     else
     {
         win = new MainWindow();
         win.Show();
     }
 }