Пример #1
0
        public void NavigateTo(NavigationEvent evt)
        {
            if (_currentState == null)
            {
                throw new ArgumentException("State not initialised, must initialise navigator with starting state", nameof(NavigationState));
            }

            NavigateTo(_currentState.Next(evt), evt);
        }