public ContourFilterDialog() { InitializeComponent(); _ContourFilterCommand = new ContourFilterCommand(); //Set command default values InitializeUI(); }
private void ContourDialog_Load(object sender, EventArgs e) { ContourFilterCommand command = new ContourFilterCommand(); _initialThreshold = command.Threshold; _initialDeltaDirection = command.DeltaDirection; _initialMaximumError = command.MaximumError; _initialType = command.Type; Threshold = _initialThreshold; DeltaDirection = _initialDeltaDirection; MaximumError = _initialMaximumError; Type = _initialType; _numThreshold.Value = Threshold; _numDeltaDirection.Value = DeltaDirection; _numMaximumError.Value = MaximumError; Tools.FillComboBoxWithEnum(_cmbType, typeof(ContourFilterCommandType), Type); UpdateControls(); }