UpdateCollapsedSubstate() protected method

Updates the collapses substate name for the state machine.
protected UpdateCollapsedSubstate ( ) : void
return void
Exemplo n.º 1
0
        /// <summary>
        /// Updates the collapses substate name for the state machine.
        /// </summary>
        protected virtual void UpdateCollapsedSubstate()
        {
            StateMachine parent = (StateMachine)FindContainer(typeof(StateMachine));

            if (parent != null)
            {
                parent.UpdateCollapsedSubstate();
                return;
            }

            if (this.CurrentState.EffectiveDisplayNameSpecified)
            {
                this.CurrentState.EffectiveDisplayName.Value = GetCollapsedSubstate();
            }
        }