public MainAppWindow()
        {
            InitializeComponent();
            
            // Add the city fom VK user information to load weather information ============================================!!!!!!!!!!
            LoadWeather("Kiev");
            
            dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
            Instance = this;

            Loaded += delegate
            {

                LoadTimerCheckInternet();
            };

            if (Properties.Settings.Default.UserVkLogin != "" && Properties.Settings.Default.UserVkPassword != "")
            {
                VkontakteHelper.Authorize();
                SetUserAvatar();
            }

            SetUserInfo();

            //// TODO load stations names by 1-2-.. and all letters. Fix load bug

            cmbBoxPointFrom.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent,
                     new System.Windows.Controls.TextChangedEventHandler(ComboBox_TextChanged));
            cmbBoxPointTo.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent,
                     new System.Windows.Controls.TextChangedEventHandler(ComboBox_TextChanged));
            
        }
 private void menuMainWindow_Click(object sender, RoutedEventArgs e)
 {
     var win = AppWindow.IsWindowOpen<TicketReminder.Windows.MainAppWindow>();
     if (win != null)
         win.Focus();
     else
     {
         win = new TicketReminder.Windows.MainAppWindow();
         win.Show();
     }
     if (win != null && win.Focus() == false)
         win.Show();
 }