public void TimerTick(ClickInfo clickInfo) { ClickInfo = clickInfo; if (_currentPhaseTask == null) { return; } if (_currentPhaseTask.IsComplete) { var nextPhaseKind = _currentPhaseTask.EndTask(); _currentPhaseTask = nextPhaseKind; _currentPhaseTask.StartTask(); } else { _currentPhaseTask.DoTimerTick(); } }
public ClickInfo GetAndSetClickInfo(ClickInfo info) { ClickInfo resultInfo; lock (_syncClickInfo) { resultInfo = _clickInfo; _clickInfo = info; } return resultInfo; }
public void OnClicked(System.Drawing.Point posIdx) { ClickInfo = new ClickInfo(posIdx); }