protected override void Execute() { if (!ProductivityUiHelper.IsGreaterThanCu10()) { MessageBox.Show( PluginResources.ProductivityViewPartAction_Execute_This_plugin_is_compatible_with_SDL_Studio_2014_CU10_or_later__In_order_to_enjoy_this_plugin_please_upgrade_to_a_newer_version_); return; } Application.EnableVisualStyles(); var sInfo = new ProcessStartInfo(PluginResources.Leaderboard_Link); Process.Start(sInfo); }
protected override void Execute() { if (!ProductivityUiHelper.IsGreaterThanCu10()) { MessageBox.Show( PluginResources.ProductivityViewPartAction_Execute_This_plugin_is_compatible_with_SDL_Studio_2014_CU10_or_later__In_order_to_enjoy_this_plugin_please_upgrade_to_a_newer_version_); return; } Application.EnableVisualStyles(); var logger = LogManager.GetLogger("log"); FormFactory.CreateTweetForm(logger); }
private void Authenticate() { if (!ProductivityUiHelper.IsTwitterAccountConfigured(_twitterPersistenceService, _logger)) { _authenticated = false; return; } var twitterAccountInformation = _twitterPersistenceService.Load(); _twitterService = new TwitterService(Constants.ConsumerKey, Constants.ConsumerSecret); _twitterService.AuthenticateWith(twitterAccountInformation.AccessToken, twitterAccountInformation.AccessTokenSecret); _authenticated = true; }