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