コード例 #1
0
 public override BaseState Visit_Initial(State_Initial state)
 {
     state.Request = new PendingRequest
     {
         PresentOption = PresentOption,
         Next          = Next,
     };
     return(state);
 }
コード例 #2
0
        partial void Constructed__AnimatedEntrance()
        {
            m_delay = new DispatcherTimer(
                s_delayDuration.TimeSpan,
                DispatcherPriority.ApplicationIdle,
                OnDelay,
                Dispatcher
                );
            m_delay.Stop();

            m_currentState = new State_Initial
            {
                Owner = this,
            };
            Children = new ObservableCollection <UIElement> ();
        }
コード例 #3
0
            public override BaseState Visit_Initial(State_Initial state)
            {
                var request    = state.Request;
                var firstChild = state.Owner.Children.FirstOrDefault(c => c != null);

                if (request != null && request.Next != null)
                {
                    return(state.EdgeFrom_Initial_To_PresentingContent(request.Next));
                }
                else if (firstChild != null)
                {
                    return(state.EdgeFrom_Initial_To_PresentingContent(firstChild));
                }
                else
                {
                    return(state.EdgeFrom_Initial_To_PresentingContent(null));
                }
            }
コード例 #4
0
ファイル: AnimatedEntrance.cs プロジェクト: mrange/T4Include
 public override BaseState Visit_Initial(State_Initial state)
 {
     state.Request = new PendingRequest
                         {
                             PresentOption   = PresentOption ,
                             Next            = Next          ,
                         };
     return state;
 }
コード例 #5
0
ファイル: AnimatedEntrance.cs プロジェクト: mrange/T4Include
 public override BaseState Visit_Initial(State_Initial state)
 {
     var request = state.Request;
     var firstChild = state.Owner.Children.FirstOrDefault (c => c != null);
     if (request != null && request.Next != null)
     {
         return state.EdgeFrom_Initial_To_PresentingContent(request.Next);
     }
     else if (firstChild != null)
     {
         return state.EdgeFrom_Initial_To_PresentingContent(firstChild);
     }
     else
     {
         return state.EdgeFrom_Initial_To_PresentingContent(null);
     }
 }
コード例 #6
0
ファイル: AnimatedEntrance.cs プロジェクト: mrange/T4Include
partial         void Constructed__AnimatedEntrance()
        {
            m_delay = new DispatcherTimer (
                s_delayDuration.TimeSpan,
                DispatcherPriority.ApplicationIdle,
                OnDelay,
                Dispatcher
                );
            m_delay.Stop ();

            m_currentState = new State_Initial
                                 {
                                     Owner = this,
                                 };
            Children = new ObservableCollection<UIElement> ();
        }
コード例 #7
0
 public override BaseState Visit_Initial(State_Initial state)
 {
     return(state);
 }
コード例 #8
0
 public override BaseState Visit_Initial(State_Initial state)
 {
     throw new ArgumentException("state");
 }
コード例 #9
0
 public abstract BaseState Visit_Initial(State_Initial state);