示例#1
0
 public void ShowMessage(string message)
 {
     try
     {
         MessageBox.Show(this, message, "", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (Exception exception)
     {
         ErrorForm.Show(this, null, exception.Message, exception);
     }
 }
示例#2
0
 private void buttonRunTutorial_Click(object sender, EventArgs e)
 {
     try
     {
         _tutorial.Run();
     }
     catch (Exception exception)
     {
         ErrorForm.Show(this, null, exception.Message, exception);
     }
 }
示例#3
0
 public void ShowFinishDialog()
 {
     try
     {
         FinishForm dialog = new FinishForm();
         dialog.ShowDialog(this);
     }
     catch (Exception exception)
     {
         ErrorForm.Show(this, null, exception.Message, exception);
     }
 }
示例#4
0
 private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     try
     {
         LinkLabel label = sender as LinkLabel;
         string    link  = label.Tag as string;
         System.Diagnostics.Process.Start(link);
     }
     catch (Exception exception)
     {
         ErrorForm.Show(this, null, exception.Message, exception);
     }
 }
示例#5
0
 private void buttonOptions_Click(object sender, EventArgs e)
 {
     try
     {
         OptionsForm dialog = new OptionsForm();
         dialog.ShowDialog(this);
         dialog.Dispose();
     }
     catch (Exception exception)
     {
         ErrorForm.Show(this, null, exception.Message, exception);
     }
 }
示例#6
0
 private void ExamplesView_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         if (null != SelectedTutorial)
         {
             AreaForm.ShowForm(this, SelectedTutorial);
         }
     }
     catch (Exception exception)
     {
         ErrorForm.Show(this, null, exception.Message, exception);
     }
 }
示例#7
0
 public void ShowErrorDialog(string message, Exception exception)
 {
     ErrorForm.Show(this, null, message, exception);
 }