Beispiel #1
0
        private void _btnOk_Click(object sender, System.EventArgs e)
        {
            Type = (SwapColorsCommandType)Constants.GetValueFromName(
                typeof(SwapColorsCommandType),
                (string)_cbType.SelectedItem,
                _initialType);

            _initialType = Type;
        }
Beispiel #2
0
        private void SwapColorsDialog_Load(object sender, System.EventArgs e)
        {
            if (_firstTimer)
            {
                _firstTimer = false;
                SwapColorsCommand command = new SwapColorsCommand();
                _initialType = command.Type;
            }

            Type = _initialType;

            Tools.FillComboBoxWithEnum(_cbType, typeof(SwapColorsCommandType), Type);
        }