public void Stop(SolaryAction action) { _worker.ResetDevice(_deviceNumber); _action = SolaryAction.None; _actionTime = 0; }
public void Start(SolaryAction action, int time) { var channels = Array.FindAll(_actions, elem => elem.First == (int)action); if (_action != action) { if (_worker != null) { foreach (var pair in channels) { _worker.SetChannelState(_deviceNumber, pair.Second, 0, time); } _action = action; _actionTime = time; } } }
public void Start(SolaryAction action, int time) { var channels = Array.FindAll(_actions, elem => elem.First == (int) action); if (_action != action) { if (_worker != null) { foreach (var pair in channels) { _worker.SetChannelState(_deviceNumber, pair.Second, 0, time); } _action = action; _actionTime = time; } } }