private void SetMode(ChangePageMessage message) { if (message.ViewModelType == typeof(MainServiceMenuViewModel)) { Mode = Mode.Service; } if (message.ViewModelType == typeof(MainScreen)) { Mode = Mode.WorkIdle; } else if (Mode == Mode.WorkIdle) { Mode = Mode.Work; } }
public void Handle(ChangePageMessage message) { SetMode(message); SimulateUserActivity(); }