protected override void OnShown(EventArgs e) { this.SetTitleText(); base.OnShown(e); if (PdnInfo.IsExpired) { foreach (Form form in Application.OpenForms) { form.Enabled = false; } TaskButton button = new TaskButton(PdnResources.GetImageResource("Icons.MenuUtilitiesCheckForUpdatesIcon.png").Reference, PdnResources.GetString("ExpiredTaskDialog.CheckForUpdatesTB.ActionText"), PdnResources.GetString("ExpiredTaskDialog.CheckForUpdatesTB.ExplanationText")); TaskButton button2 = new TaskButton(PdnResources.GetImageResource("Icons.MenuHelpPdnWebsiteIcon.png").Reference, PdnResources.GetString("ExpiredTaskDialog.GoToWebSiteTB.ActionText"), PdnResources.GetString("ExpiredTaskDialog.GoToWebSiteTB.ExplanationText")); TaskButton button3 = new TaskButton(PdnResources.GetImageResource("Icons.CancelIcon.png").Reference, PdnResources.GetString("ExpiredTaskDialog.DoNotCheckForUpdatesTB.ActionText"), PdnResources.GetString("ExpiredTaskDialog.DoNotCheckForUpdatesTB.ExplanationText")); TaskButton[] buttonArray = new TaskButton[] { button, button2, button3 }; TaskDialog dialog1 = new TaskDialog { Icon = base.Icon, Title = PdnInfo.FullAppName, TaskImage = PdnResources.GetImageResource("Icons.WarningIcon.png").Reference, ScaleTaskImageWithDpi = true, IntroText = PdnResources.GetString("ExpiredTaskDialog.InfoText"), TaskButtons = buttonArray, AcceptButton = button, CancelButton = button3, PixelWidth96Dpi = 450 }; TaskButton button4 = dialog1.Show(this); if (button4 == button) { UpdatesService.Instance.PerformUpdateCheck(); } else if (button4 == button2) { PdnInfo.LaunchWebSite(this, "redirect/pdnexpired.html"); } base.Close(); } if (this.appWorkspace.ActiveDocumentWorkspace != null) { this.appWorkspace.ActiveDocumentWorkspace.Focus(); } else { this.appWorkspace.Focus(); } }
private void MenuHelpPlugins_Click(object sender, EventArgs e) { PdnInfo.LaunchWebSite(AppWorkspace, InvariantStrings.PluginsPageHelpPage); }
private void MenuHelpPdnWebsite_Click(object sender, EventArgs e) { PdnInfo.LaunchWebSite(AppWorkspace, InvariantStrings.WebsitePageHelpMenu); }
private void OnMenuHelpForumClick(object sender, EventArgs e) { PdnInfo.LaunchWebSite(base.AppWorkspace, "/redirect/forum_hm.html"); }
private void OnMenuHelpTutorialsClick(object sender, EventArgs e) { PdnInfo.LaunchWebSite(base.AppWorkspace, "/redirect/tutorials_hm.html"); }
private void OnMenuHelpPdnSearchEngineClick(object sender, EventArgs e) { PdnInfo.LaunchWebSite(base.AppWorkspace, "/redirect/search_hm.html"); }
private void MenuHelpPdnSearchEngine_Click(object sender, EventArgs e) { PdnInfo.LaunchWebSite(AppWorkspace, InvariantStrings.SearchEngineHelpMenu); }