Ejemplo n.º 1
0
        public ContourFilterDialog()
        {
            InitializeComponent();
            _ContourFilterCommand = new ContourFilterCommand();

            //Set command default values
            InitializeUI();
        }
Ejemplo n.º 2
0
        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();
        }