private void authenticationToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     var dlg = new AuthSettingsDialog(_authAuthenticationSettingsRepository);
     dlg.ShowDialog();
     CheckTokenValidation();
 }
 protected override void OnShown(EventArgs e)
 {
     base.OnShown(e);
     var settings = _authAuthenticationSettingsRepository.Get();
     if (!settings.IsValid)
     {
         var settingsDlg = new AuthSettingsDialog(_authAuthenticationSettingsRepository);
         settingsDlg.ShowDialog();
     }
     SubscribeOnBus();
     if (_authAuthenticationSettingsRepository.Get().IsValid)
     {
         _bus.Publish(new StartOutlookSyncMessage());
     }
     CheckTokenValidation();
 }