private void HandleViewStateChanged(ViewStateEnum state) { if (state == ViewStateEnum.Street) { TryShowStartThought(); } }
public void SetState(ViewStateEnum state) { if (states.Peek() != state) { states.Push(state); } if (OnStateChanged != null) { OnStateChanged(State); } }
public void BackState(ViewStateEnum from) { while (states.Count > 1 && states.Pop() != from) { ; } if (OnStateChanged != null) { OnStateChanged(State); } }
private bool ShouldShow(ViewStateEnum state) { foreach (var showScreenState in config.ShowScreenStates) { if (state == showScreenState) { return(true); } } return(false); }
public void InitState(ViewStateEnum state) { states.Push(state); }
private void HandleViewStateChanged(ViewStateEnum state) { SetShown(ShouldShow(state)); }