public void ShowMessage(string message) { try { MessageBox.Show(this, message, "", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (Exception exception) { ErrorForm.Show(this, null, exception.Message, exception); } }
private void buttonRunTutorial_Click(object sender, EventArgs e) { try { _tutorial.Run(); } catch (Exception exception) { ErrorForm.Show(this, null, exception.Message, exception); } }
public void ShowFinishDialog() { try { FinishForm dialog = new FinishForm(); dialog.ShowDialog(this); } catch (Exception exception) { ErrorForm.Show(this, null, exception.Message, exception); } }
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); } }
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); } }
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); } }
public void ShowErrorDialog(string message, Exception exception) { ErrorForm.Show(this, null, message, exception); }