private void OnShellInitialized(ShellInitializedEventArgs obj) { foreach(var message in _messageQueue) { _eventAggregator.GetEvent<NotifyUserMessageEvent>().Publish(message); } if (_userSettings.UseVersionChecker) { CheckForNewerVersion(); } if (!_userSettings.DisableUserStatisticsParticipation.HasValue) { _participationTimer = new Timer(ParticipationMessage, null, 60000, -1); } if (!_userSettings.IsMessageIgnored(FACEBOOKMESSAGEKEY)) { _facebookTimer = new Timer(FacebookMessage, null, 600000, -1); } if (!_userSettings.IsMessageIgnored(CODEPLEXMESSAGEKEY) && _statistics.ApplicationStarted > 9 && _statistics.TotalUsageTime > new TimeSpan(0, 2, 0, 0)) { _codeplexTimer = new Timer(CodeplexMessage, null, 60000, -1); } }
private void OnShellInitialized(ShellInitializedEventArgs obj) { foreach (var message in _messageQueue) { _eventAggregator.GetEvent <NotifyUserMessageEvent>().Publish(message); } if (_userSettings.UseVersionChecker) { CheckForNewerVersion(); } if (!_userSettings.DisableUserStatisticsParticipation.HasValue) { _participationTimer = new Timer(ParticipationMessage, null, 60000, -1); } //if (!_userSettings.IsMessageIgnored(FACEBOOKMESSAGEKEY)) //{ // _facebookTimer = new Timer(FacebookMessage, null, 600000, -1); //} //if (!_userSettings.IsMessageIgnored(CODEPLEXMESSAGEKEY) && _statistics.ApplicationStarted > 9 && _statistics.TotalUsageTime > new TimeSpan(0, 2, 0, 0)) //{ // _codeplexTimer = new Timer(CodeplexMessage, null, 60000, -1); //} }