public override void ChangeState() { PathUpdater.State current = _pathUpdater.GetCurrentState(); foreach (EditmodePath editmode in modes) { editmode.Suscribe(current); } }
public void Suscribe(PathUpdater.State state) { _suscribed = false; if (state == PathUpdater.State.Closed && unsuscribeState == PathUpdater.State.Closed) { return; } if ((int)state >= (int)suscribeState && (int)state < (int)unsuscribeState) { _suscribed = true; } }