private void btnSignIn_Click(object sender, RoutedEventArgs e)
 {
     if (tbLogin.Text == "" || tbPass.Password == "")
         MessageBox.Show("Неверно указан логин или пароль!", "Ошибка", MessageBoxButton.OK, System.Windows.MessageBoxImage.Error);
     else
     {
         try
         {
             Parser.Auth(tbLogin.Text, tbPass.Password);
             Properties.Settings.Default.UserDprcGovUaEmail = tbLogin.Text;
             Properties.Settings.Default.UserDprcGovUaPassword = tbPass.Password;
             if (Properties.Settings.Default.UserEmail == "" && Properties.Settings.Default.UserVkLogin == "")
             {
                 SettingsWindow settingsWindow = new SettingsWindow(true);
                 settingsWindow.ShowDialog();
             }
             new MainAppWindow().Show();
         }
         catch (UnauthorizedAccessException)
         {
             MessageBox.Show("Ошибка авторизации!", "Ошибка", MessageBoxButton.OK, System.Windows.MessageBoxImage.Error);
         }
     }
 }
 private void menuItemSettings_Click(object sender, RoutedEventArgs e)
 {
     SettingsWindow settingsWindow = new SettingsWindow(false);
     settingsWindow.ShowDialog();
 }