コード例 #1
0
ファイル: MainForm.cs プロジェクト: ykafia/Paint.Net4
 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();
     }
 }
コード例 #2
0
ファイル: HelpMenu.cs プロジェクト: vip57884381/Paint.Net
 private void MenuHelpPlugins_Click(object sender, EventArgs e)
 {
     PdnInfo.LaunchWebSite(AppWorkspace, InvariantStrings.PluginsPageHelpPage);
 }
コード例 #3
0
ファイル: HelpMenu.cs プロジェクト: vip57884381/Paint.Net
 private void MenuHelpPdnWebsite_Click(object sender, EventArgs e)
 {
     PdnInfo.LaunchWebSite(AppWorkspace, InvariantStrings.WebsitePageHelpMenu);
 }
コード例 #4
0
 private void OnMenuHelpForumClick(object sender, EventArgs e)
 {
     PdnInfo.LaunchWebSite(base.AppWorkspace, "/redirect/forum_hm.html");
 }
コード例 #5
0
 private void OnMenuHelpTutorialsClick(object sender, EventArgs e)
 {
     PdnInfo.LaunchWebSite(base.AppWorkspace, "/redirect/tutorials_hm.html");
 }
コード例 #6
0
 private void OnMenuHelpPdnSearchEngineClick(object sender, EventArgs e)
 {
     PdnInfo.LaunchWebSite(base.AppWorkspace, "/redirect/search_hm.html");
 }
コード例 #7
0
ファイル: HelpMenu.cs プロジェクト: onelifeonelover/cstd
 private void MenuHelpPdnSearchEngine_Click(object sender, EventArgs e)
 {
     PdnInfo.LaunchWebSite(AppWorkspace, InvariantStrings.SearchEngineHelpMenu);
 }