private void InvertedTextDialog_Load(object sender, System.EventArgs e) { if (_firstTimer) { _firstTimer = false; InvertedTextCommand command = new InvertedTextCommand(); _initialFlags = command.Flags; _initialMinInvertWidth = command.MinimumInvertWidth; _initialMinInvertHeight = command.MinimumInvertHeight; _initialMinBlackPercent = command.MinimumBlackPercent; _initialMaxBlackPercent = command.MaximumBlackPercent; } Flags = _initialFlags; MinInvertWidth = _initialMinInvertWidth; MinInvertHeight = _initialMinInvertHeight; MinBlackPercent = _initialMinBlackPercent; MaxBlackPercent = _initialMaxBlackPercent; _cbImageUnchanged.Checked = (Flags & InvertedTextCommandFlags.ImageUnchanged) == InvertedTextCommandFlags.ImageUnchanged; _cbUseDiagonals.Checked = (Flags & InvertedTextCommandFlags.UseDiagonals) == InvertedTextCommandFlags.UseDiagonals; _cbUseDpi.Checked = (Flags & InvertedTextCommandFlags.UseDpi) == InvertedTextCommandFlags.UseDpi; _numMinInvertWidth.Value = MinInvertWidth; _numMinInvertHeight.Value = MinInvertHeight; _numMinBlackPercent.Value = MinBlackPercent; _numMaxBlackPercent.Value = MaxBlackPercent; UpdateControls(); }
public InvertedTextDialog(InvertedTextCommand InvertedTextCommand, int XResolution, int YResolution) { InitializeComponent(); _InvertedTextCommand = InvertedTextCommand; this.XResolution = XResolution; this.YResolution = YResolution; InitializeUI(); }
public InvertedTextDialog() { InitializeComponent(); _InvertedTextCommand = new InvertedTextCommand(); InitializeUI(); }