示例#1
0
        private void _btnOk_Click(object sender, System.EventArgs e)
        {
            Direction = (EmbossCommandDirection)Constants.GetValueFromName(
                typeof(EmbossCommandDirection),
                (string)_cbDirection.SelectedItem,
                _initialDirection);

            Depth = (int)_numDepth.Value * 10;

            _initialDirection = Direction;
            _initialDepth     = Depth;
        }
示例#2
0
        private void EmbossDialog_Load(object sender, System.EventArgs e)
        {
            if (_firstTimer)
            {
                _firstTimer = false;
                EmbossCommand command = new EmbossCommand();
                _initialDirection = command.Direction;
                _initialDepth     = command.Depth;
            }

            Direction = _initialDirection;
            Depth     = _initialDepth / 10;

            Tools.FillComboBoxWithEnum(_cbDirection, typeof(EmbossCommandDirection), Direction);
            _numDepth.Value = Depth;
        }