public void ExecuteAfterStartupSteps() { try { var vm = newsViewModelFactory.CreateNewsViewModel(); vm.ShowIfAnyUnshownNews(); } catch (Exception exception) { logger.Error(exception, "Error at showing news"); userNotifier.NotifyWithMessageBox("Error at showing news, see logs for details.", NotifyKind.Warning); } try { wurmUnlimitedLogsDirChecker.HandleOldLogsDirContents(); } catch (Exception exception) { logger.Error(exception, "Error at HandleOldLogsDirContents"); userNotifier.NotifyWithMessageBox("Error at HandleOldLogsDirContents, see logs for details.", NotifyKind.Warning); } var version = waVersionInfoProvider.Get(); telemetry.TrackEvent($"Started: " + version); }
private void showNewsToolStripMenuItem_Click(object sender, EventArgs e) { var vm = newsViewModelFactory.CreateNewsViewModel(); vm.ShowForAllNews(); }