Пример #1
0
        /// <summary>
        /// Get the name of the currently running state
        /// </summary>
        /// <returns></returns>
        public string GetCurrentStateName()
        {
            if (currentState != null)
            {
                return(currentState.GetStateName());
            }

            return(string.Empty);
        }
Пример #2
0
        /// <summary>
        /// Get the name of previously run state
        /// </summary>
        /// <returns></returns>
        public string GetPreviousStateName()
        {
            if (prevState != null)
            {
                return(prevState.GetStateName());
            }

            return(string.Empty);
        }