Example #1
0
 /// <summary>
 /// Determines if the graphics form is open
 /// </summary>
 /// <param name="form">
 /// The form to check
 /// </param>
 /// <returns>
 /// Is the form open?
 /// </returns>
 private bool IsFormOpen(GraphicsForm form)
 {
     return(Application.OpenForms.Cast <Form>().Any(x => x.GetType() == form.GetType()));
 }
Example #2
0
 /// <summary>
 /// Enables the plugin
 /// </summary>
 /// <param name="parameters">
 /// Dictionary of parameters for the plugin
 /// </param>
 public void EnablePlugin(IDictionary <string, string> parameters)
 {
     this.graphicsForm         = new GraphicsForm();
     this.graphicsForm.Closed += this.GraphicsFormClosed;
     this.graphicsForm.Show();
 }