public void SetData(Preprocess.Transform fi) { this._Loaded = false; this.numericUpDown1.Value = 0; this.numericUpDown1.Maximum = fi._MaxCount; this.numericUpDown1.Value = Math.Min(Math.Max( // Properties.Settings.Default.TransformNumber, 20, this.numericUpDown1.Minimum), this.numericUpDown1.Maximum); this._Data = fi; this._Loaded = true; this.numericUpDown1_ValueChanged(null, EventArgs.Empty); this.numericUpDown1.Enabled = this._Data._Transform != null; }
public ToBackgroundWorkerArgs(Preprocess.Transform data, int count) { this._Count = count; this._PreProcessTransform = data; }