private void btnReduce_Click(object sender, EventArgs e) { try { _dblProp = _dblProp - 0.02; pbScale.Value = Convert.ToInt16(100 * _dblProp); _RelativeInterpolationCplLt = CDrawInActiveView.DisplayInterpolations(_DataRecords, _dblProp); } catch (Exception) { MessageBox.Show("不能再减小了!"); } }
private void btnAdd_Click(object sender, EventArgs e) { _dblProp = _dblProp + 0.02; pbScale.Value = Convert.ToInt16(100 * _dblProp); _RelativeInterpolationCplLt = CDrawInActiveView.DisplayInterpolations(_DataRecords, _dblProp); }
private void btnInputedScale_Click(object sender, EventArgs e) { _dblProp = Convert.ToDouble(this.txtProportion.Text); _RelativeInterpolationCplLt = CDrawInActiveView.DisplayInterpolations(_DataRecords, _dblProp); }
private void btn100_Click(object sender, EventArgs e) { _dblProp = 1; _RelativeInterpolationCplLt = CDrawInActiveView.DisplayInterpolations(_DataRecords, _dblProp); }