Пример #1
0
        public virtual void Back()
        {
            if (BackLock)
            {
                return;
            }
            var BackState = this.BackState;

            this.BackState.NextState = null;
            this.BackState           = null;
            BackState.Focuse();
        }
Пример #2
0
 public void Next(State NextState)
 {
     if (NextLock)
     {
         return;
     }
     this.NextState      = NextState;
     NextState.BackState = this;
     while (NextState.NextState != null)
     {
         NextState = NextState.NextState;
     }
     NextState.Focuse();
 }
Пример #3
0
        public void Replace(State ReplaceState)
        {
            if (NextLock)
            {
                return;
            }
            BackState.NextState    = ReplaceState;
            ReplaceState.BackState = BackState;

            while (ReplaceState.NextState != null)
            {
                ReplaceState = ReplaceState.NextState;
            }
            ReplaceState.Focuse();
        }