public EmbossDialog() { InitializeComponent(); _EmbossCommand = new EmbossCommand(); //Set command default values InitializeUI(); }
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; }