public GrayScaleExtendedDialog()
        {
            InitializeComponent();
            _GrayScaleExtendedCommand = new GrayScaleExtendedCommand();

            //Set command default values
            InitializeUI();
        }
Example #2
0
        private void GrayScaleFactorDialog_Load(object sender, System.EventArgs e)
        {
            if (_firstTimer)
            {
                _firstTimer = false;
                GrayScaleExtendedCommand command = new GrayScaleExtendedCommand();
                _initialRedFactor   = command.RedFactor;
                _initialGreenFactor = command.GreenFactor;
                _initialBlueFactor  = command.BlueFactor;
            }

            RedFactor   = _initialRedFactor;
            GreenFactor = _initialGreenFactor;
            BlueFactor  = _initialBlueFactor;

            DialogUtilities.SetNumericValue(_numRed, RedFactor);
            DialogUtilities.SetNumericValue(_numGreen, GreenFactor);
            DialogUtilities.SetNumericValue(_numBlue, BlueFactor);
        }