public void ShowParametersWindow() { var algChooserWindow = new ParametersSelectionWindow(); algChooserWindow.Processor = _matcher; algChooserWindow.Width = 380; algChooserWindow.ShowDialog(); if(algChooserWindow.Accepted) { ParamtersAccepted?.Invoke(this, new EventArgs()); } }
void InitProcessorWindows() { _optsWindow_MedianFilter = new ParametersSelectionWindow(); _optsWindow_MedianFilter.Processor = new MedianFilter(); _optsWindow_GaussFilter = new ParametersSelectionWindow(); _optsWindow_GaussFilter.Processor = new GaussFilter(); _optsWindow_DiffusionFilter = new ParametersSelectionWindow(); _optsWindow_DiffusionFilter.Processor = new AnisotropicDiffusionFilter(); _optsWindow_LoGFilter = new ParametersSelectionWindow(); _optsWindow_LoGFilter.Processor = new LoGFilter(); _optsWindow_SaturateHistogram = new ParametersSelectionWindow(); _optsWindow_SaturateHistogram.Processor = new HistogramSaturator(); _optsWindow_FloodSelect = new ParametersSelectionWindow(); _optsWindow_FuzzySelect = new ParametersSelectionWindow(); }
public void ShowParametersWindow() { ParametersSelectionWindow window = new ParametersSelectionWindow(); window.Processor = this; window.ShowDialog(); if(window.Accepted) { UpdateParameters(); ParamtersAccepted?.Invoke(this, new EventArgs()); } }
public void ShowParametersWindow() { var paramsWindow = new ParametersSelectionWindow(); paramsWindow.Processor = this; paramsWindow.Width = 350; paramsWindow.ShowDialog(); if(paramsWindow.Accepted) { ParamtersAccepted?.Invoke(this, new EventArgs()); } }