private void ExecutePhaseShift() { if (phaseShiftDeviceController != null) { phaseShiftDeviceController.SetShift(Convert.ToInt16(currentPhaseShiftValue)); //currentPhaseShiftLabel.Text = currentPhaseShiftValue.ToString(); } MakeDelay(); }
public void SetShift(float shift) { if (shift < 0 || shift > short.MaxValue - ZeroPhaseShiftValue) { throw new InvalidOperationException(); } if (_phaseShiftDeviceConnected) { _inner.SetShift((short)((short)shift + ZeroPhaseShiftValue)); } }