public void ContrastClickHandler(object sender, EventArgs e)
 {
     if (image != null)
     {
         pa2 = new GetParam2(this);
         pa2.filter_name.Text        = "Contrast Correction";
         pa2.trackBar1.Minimum       = 1;
         pa2.trackBar1.Maximum       = 5000;
         pa2.trackBar1.TickFrequency = 200;
         pa2.trackBar1.SmallChange   = 1;
         pa2.param1.Text             = "Contrast";
         pa2.Show();
     }
 }
 public void GammaClickHandler(object sender, EventArgs e)
 {
     if (image != null)
     {
         // pa = this.WorkItem.SmartParts.AddNew<ParamView>();
         pa2 = new GetParam2(this);
         pa2.filter_name.Text        = "Gamma Correction";
         pa2.trackBar1.Minimum       = 1;
         pa2.trackBar1.Maximum       = 50;
         pa2.trackBar1.TickFrequency = 5;
         pa2.param1.Text             = "Gamma";
         pa2.Show();
         // this.WorkItem.Workspaces[WorkspaceNames.RightWorkspace].Show(pa);
     }
 }
 public void ConservativeClickHandler(object sender, EventArgs e)
 {
     if (image != null)
     {
         // pa = this.WorkItem.SmartParts.AddNew<ParamView>();
         pa2 = new GetParam2(this);
         pa2.filter_name.Text        = "Conservative Filter";
         pa2.trackBar1.Minimum       = 1;
         pa2.trackBar1.Maximum       = 12;
         pa2.trackBar1.TickFrequency = 1;
         pa2.param1.Text             = "Kernel Size";
         // this.WorkItem.Workspaces[WorkspaceNames.RightWorkspace].Show(pa);
         pa2.Show();
     }
 }