private void antiShiftButton_Click(object sender, EventArgs e) { foreach (var curve in _controlZgcList[(int)numericUpDownGraphNo.Value - 1].GraphPane.CurveList) { GraphEditor.AntiShift(curve); } _controlZgcList[(int)numericUpDownGraphNo.Value - 1] .RestoreScale(_controlZgcList[(int)numericUpDownGraphNo.Value - 1].GraphPane); _controlZgcList[(int)numericUpDownGraphNo.Value - 1].Invalidate(); }