public HalfToneDialog() { InitializeComponent(); _HalfToneCommand = new HalfToneCommand(); //Set command default values _Angle = 0; _Dimension = 1; UserDefined = false; InitializeUI(); }
private void HalftoneDialog_Load(object sender, System.EventArgs e) { if (_firstTimer) { _firstTimer = false; HalfToneCommand command = new HalfToneCommand(); _initialType = command.Type; _initialAngle = command.Angle; _initialDimension = command.Dimension; } Type = _initialType; Angle = _initialAngle / 100; Dimension = _initialDimension; Tools.FillComboBoxWithEnum(_cbType, typeof(HalfToneCommandType), Type, new object[] { HalfToneCommandType.UserDefined }); UpdateMyControls(); }