Beispiel #1
0
 public void ShowFinishDialog(string message, string fullDocumentPath)
 {
     try
     {
         FinishForm dialog = new FinishForm(message, fullDocumentPath);
         dialog.ShowDialog(this);
     }
     catch (Exception exception)
     {
         ErrorForm.Show(this, exception);
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
        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;
            }
        }
Beispiel #5
0
 public void ShowErrorDialog(string message, Exception exception)
 {
     ErrorForm.Show(this, exception);
 }