private void medianBlurFilter_Click(object sender, EventArgs e)
 {
     using (MedianBlurFilterForm form = new MedianBlurFilterForm(ImageProcessingController.Instance.GetNode(SelectedNodeIndex).Output)) {
         if (form.ShowDialog() == DialogResult.OK)
         {
             MedianBlurFilter filter = form.filter;
             ImageProcessingController.Instance.AddNode(filter);
             RebuildImageView(ImageProcessingController.Instance.NodesCount - 1);
             SelectNode(filterThumbsGrid.Rows.Count - 1);
         }
     }
 }
예제 #2
0
 private void applyButton_Click(object sender, EventArgs e)
 {
     filter       = new MedianBlurFilter(radiusTrackBar.Value);
     DialogResult = DialogResult.OK;
 }