public void SetZeroing(Zeroing zero) { if (lblZeroLow.InvokeRequired) { SetZeroingCallback d = new SetZeroingCallback(SetZeroing); lblZeroLow.Invoke(d, new object[] { zero }); } else { lblZeroLow.Text = zero.GetLower().ToString(); } if (lblZeroUp.InvokeRequired) { SetZeroingCallback d = new SetZeroingCallback(SetZeroing); lblZeroUp.Invoke(d, new object[] { zero }); } else { lblZeroUp.Text = zero.GetUpper().ToString(); } if (lblZeroLowY.InvokeRequired) { SetZeroingCallback d = new SetZeroingCallback(SetZeroing); lblZeroLowY.Invoke(d, new object[] { zero }); } else { lblZeroLowY.Text = "Y : " + zero.calculateY(true); } if (lblZeroUpY.InvokeRequired) { SetZeroingCallback d = new SetZeroingCallback(SetZeroing); lblZeroUpY.Invoke(d, new object[] { zero }); } else { lblZeroUpY.Text = "Y : " + zero.calculateY(false); } }
public void SetZeroing(Zeroing zeroing) { this.zeroing = zeroing; }