Ejemplo n.º 1
0
        public EmbossDialog()
        {
            InitializeComponent();
            _EmbossCommand = new EmbossCommand();

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