private void btnReduce_Click(object sender, EventArgs e) { try { _dblProp = _dblProp - 0.02; pbScale.Value = Convert.ToInt16(100 * _dblProp); _RelativeInterpolationCpl = CDrawInActiveView.DisplayInterpolation(_DataRecords, _dblProp); } catch (Exception) { MessageBox.Show("不能再减小了!"); } }
public virtual void timerReduce_Tick(object sender, EventArgs e) { _dblProp = _dblProp - 0.01; if (_dblProp < 0) { this.timerReduce.Enabled = false; _dblProp = 0; pbScale.Value = Convert.ToInt16(100 * _dblProp); _RelativeInterpolationCpl = CDrawInActiveView.DisplayInterpolation(_DataRecords, _dblProp); return; } pbScale.Value = Convert.ToInt16(100 * _dblProp); _RelativeInterpolationCpl = CDrawInActiveView.DisplayInterpolation(_DataRecords, _dblProp); }
private void btnAdd_Click(object sender, EventArgs e) { if (_dblProp >= 0.98) { _dblProp = 1; pbScale.Value = Convert.ToInt16(100 * _dblProp); _RelativeInterpolationCpl = CDrawInActiveView.DisplayInterpolation(_DataRecords, _dblProp); } else { _dblProp = _dblProp + 0.02; pbScale.Value = Convert.ToInt16(100 * _dblProp); _RelativeInterpolationCpl = CDrawInActiveView.DisplayInterpolation(_DataRecords, _dblProp); } }
private void btn010_Click(object sender, EventArgs e) { _dblProp = 0.1; _RelativeInterpolationCpl = CDrawInActiveView.DisplayInterpolation(_DataRecords, _dblProp); }
private void btnInputedScale_Click(object sender, EventArgs e) { _dblProp = Convert.ToDouble(this.txtProportion.Text); _RelativeInterpolationCpl = CDrawInActiveView.DisplayInterpolation(_DataRecords, _dblProp); }
public virtual void btn020_Click(object sender, EventArgs e) { _dblProp = 0.2; _RelativeInterpolationCpl = CDrawInActiveView.DisplayInterpolation(_DataRecords, _dblProp); }