Exemplo n.º 1
0
 /// <summary>
 /// Tool Strip Menu Item click Handler.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void TsmiClick(object sender, EventArgs e)
 {
     try
     {
         if (sender.Equals(this.TsmiExit))
         {
             Application.Exit();
         }
         else if (sender.Equals(this.TsmiAbout))
         {
             this.frmAbout.ShowDialog();
         }
         else if (sender.Equals(this.TsmiDonate))
         {
             System.Diagnostics.Process.Start(
                 @"http://env-man.blogspot.com/2007/12/donate.html");
         }
         else if (sender.Equals(this.TsmiPostFeedbackOrBugReport))
         {
             System.Diagnostics.Process.Start(
                 @"http://sourceforge.net/tracker/?group_id=193626");
         }
         else if (sender.Equals(this.TsmiProjectiWebsite))
         {
             System.Diagnostics.Process.Start(
         @"http://env-man.blogspot.com/2007/04/envman-user-guide.html");
         }
         else if (sender.Equals(this.TsmiForumWebsite))
         {
             System.Diagnostics.Process.Start(
                 @"http://groups.google.com/group/envman-bug");
         }
         else if (sender.Equals(this.TsmiDonate))
         {
             System.Diagnostics.Process.Start(
                 @"http://env-man.blogspot.com/2007/12/donate.html");
         }
         else if (sender.Equals(this.TsmiPostFeedbackOrBugReport))
         {
             System.Diagnostics.Process.Start(
                 @"http://sourceforge.net/tracker/?group_id=193626");
         }
         else if (sender.Equals(this.TsmiProjectiWebsite))
         {
             System.Diagnostics.Process.Start(
     @"http://env-man.blogspot.com/2007/04/envman-user-guide.html");
         }
         else if (sender.Equals(this.TsmiJoinForum))
         {
             System.Diagnostics.Process.Start(
                 "mailto:[email protected]");
         }
         else if (sender.Equals(this.TsmiAskAQuestion))
         {
             System.Diagnostics.Process.Start(
                 "mailto:[email protected]");
         }
         else if (sender.Equals(this.TsmiCheckForUpdates))
         {
             Application.DoEvents();
             this.WorkerDoWork(null, null);
         }
         else if (sender.Equals(this.TsmiNewVersionInfo))
         {
             System.Diagnostics.Process.Start(
                 this.versionInfo.DownloadWebpageAddress);
         }
         else if (sender.Equals(this.TsmiSettings))
         {
             FrmOptions settingsForm = new FrmOptions();
             settingsForm.ShowDialog();
             settingsForm.Dispose();
         }
     }
     catch (Exception ex)
     {
         //// TODO: Review what Exceptions could be raised in this method
         MessageBox.Show(
             ex.Message,
             "EnvMan ERROR",
             MessageBoxButtons.OK,
             MessageBoxIcon.Error);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Tool Strip Menu Item click Handler.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void TsmiClick(object sender, EventArgs e)
 {
     try
     {
         if (sender.Equals(this.TsmiExit))
         {
             Application.Exit();
         }
         else if (sender.Equals(this.TsmiAbout))
         {
             this.frmAbout.ShowDialog();
         }
         else if (sender.Equals(this.TsmiDonate))
         {
             System.Diagnostics.Process.Start(
                 @"http://env-man.blogspot.com/2007/12/donate.html");
         }
         else if (sender.Equals(this.TsmiPostFeedbackOrBugReport))
         {
             System.Diagnostics.Process.Start(
                 @"http://sourceforge.net/tracker/?group_id=193626");
         }
         else if (sender.Equals(this.TsmiProjectiWebsite))
         {
             System.Diagnostics.Process.Start(
                 @"http://env-man.blogspot.com/2007/04/envman-user-guide.html");
         }
         else if (sender.Equals(this.TsmiForumWebsite))
         {
             System.Diagnostics.Process.Start(
                 @"http://groups.google.com/group/envman-bug");
         }
         else if (sender.Equals(this.TsmiDonate))
         {
             System.Diagnostics.Process.Start(
                 @"http://env-man.blogspot.com/2007/12/donate.html");
         }
         else if (sender.Equals(this.TsmiPostFeedbackOrBugReport))
         {
             System.Diagnostics.Process.Start(
                 @"http://sourceforge.net/tracker/?group_id=193626");
         }
         else if (sender.Equals(this.TsmiProjectiWebsite))
         {
             System.Diagnostics.Process.Start(
                 @"http://env-man.blogspot.com/2007/04/envman-user-guide.html");
         }
         else if (sender.Equals(this.TsmiJoinForum))
         {
             System.Diagnostics.Process.Start(
                 "mailto:[email protected]");
         }
         else if (sender.Equals(this.TsmiAskAQuestion))
         {
             System.Diagnostics.Process.Start(
                 "mailto:[email protected]");
         }
         else if (sender.Equals(this.TsmiCheckForUpdates))
         {
             Application.DoEvents();
             this.WorkerDoWork(null, null);
         }
         else if (sender.Equals(this.TsmiNewVersionInfo))
         {
             System.Diagnostics.Process.Start(
                 this.versionInfo.DownloadWebpageAddress);
         }
         else if (sender.Equals(this.TsmiSettings))
         {
             FrmOptions settingsForm = new FrmOptions();
             settingsForm.ShowDialog();
             settingsForm.Dispose();
         }
     }
     catch (Exception ex)
     {
         //// TODO: Review what Exceptions could be raised in this method
         MessageBox.Show(
             ex.Message,
             "EnvMan ERROR",
             MessageBoxButtons.OK,
             MessageBoxIcon.Error);
     }
 }