private void DotRemoveDialog_Load(object sender, System.EventArgs e) { if (_firstTimer) { _firstTimer = false; DotRemoveCommand command = new DotRemoveCommand(); _initialFlags = command.Flags; _initialMinWidth = command.MinimumDotWidth; _initialMinHeight = command.MinimumDotHeight; _initialMaxWidth = command.MaximumDotWidth; _initialMaxHeight = command.MaximumDotHeight; } Flags = _initialFlags; MinWidth = _initialMinWidth; MinHeight = _initialMinHeight; MaxWidth = _initialMaxWidth; MaxHeight = _initialMaxHeight; _cbImageUnchanged.Checked = (Flags & DotRemoveCommandFlags.ImageUnchanged) == DotRemoveCommandFlags.ImageUnchanged; _cbUseDiagonals.Checked = (Flags & DotRemoveCommandFlags.UseDiagonals) == DotRemoveCommandFlags.UseDiagonals; _cbUseDpi.Checked = (Flags & DotRemoveCommandFlags.UseDpi) == DotRemoveCommandFlags.UseDpi; _cbUseSize.Checked = (Flags & DotRemoveCommandFlags.UseSize) == DotRemoveCommandFlags.UseSize; _numMinWidth.Value = MinWidth; _numMinHeight.Value = MinHeight; _numMaxWidth.Value = MaxWidth; _numMaxHeight.Value = MaxHeight; UpdateControls(); }
public DotRemoveDialog(DotRemoveCommand DotRemoveCommand, int XResolution, int YResolution) { // The DotRemoveCommand Class is part of our LEAD Document Imaging functions. This class will find and removes dots and specks of various sizes. // This dialog will update the following members of this class: // DotRemoveCommand.MaximumDotHeight to set the maximum height of a dot to be removed. // DotRemoveCommand.MaximumDotWidth to set the maximum width of a dot to be removed. // DotRemoveCommand.MinimumDotHeight to set the minimum height of a dot to be removed. // DotRemoveCommand.MinimumDotWidth to set the minimum width of a dot to be removed. InitializeComponent(); _DotRemoveCommand = DotRemoveCommand; this.XResolution = XResolution; this.YResolution = YResolution; InitializeUI(); }
public DotRemoveDialog() { InitializeComponent(); _DotRemoveCommand = new DotRemoveCommand(); InitializeUI(); }