public void ShowFinishDialog(string message, string fullDocumentPath) { try { FinishForm dialog = new FinishForm(message, fullDocumentPath); dialog.ShowDialog(this); } catch (Exception exception) { ErrorForm.Show(this, exception); } }
private void TopicLabel_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 OptionButton_Click(object sender, EventArgs e) { try { OptionsForm dialog = new OptionsForm(_rootDirectory); if (DialogResult.OK == dialog.ShowDialog(this)) { _rootDirectory = dialog.RootDirectory; } } catch (Exception exception) { ErrorForm.Show(this, exception); } }
private void ExamplesView_MouseDoubleClick(object sender, MouseEventArgs e) { var example = SelectedExample; if (null == example) { return; } Label label = null; try { Cursor = Cursors.WaitCursor; Enabled = false; if (null != example.Panel) { AreaForm.ShowForm(this, example); } else { label = ShowWait(); example.RunExample(); } } catch (Exception exception) { ErrorForm.Show(this, exception); } finally { HideWait(label); Enabled = true; Cursor = Cursors.Default; } }
public void ShowErrorDialog(string message, Exception exception) { ErrorForm.Show(this, exception); }