示例#1
0
        private void OnNavigate(NavigateMessage message)
        {
            // Deactivated allows us to clean up Kinect stuff if necessary
            if (this.CurrentView != null)
            {
                ((IView)this.CurrentView.DataContext).Deactivated();
            }

            // Change the view to the target view
            this.CurrentView = views[message.TargetView];
            this.currentViewName = message.TargetView;

            // Activated allows us to set up the Kinect stuff if necessary
            ((IView)this.CurrentView.DataContext).Activated(message.State);
        }
示例#2
0
        private void OnNavigate(NavigateMessage message)
        {
            // Deactivated allows us to clean up Kinect stuff if necessary
            if (this.CurrentView != null)
            {
                ((IView)this.CurrentView.DataContext).Deactivated();
            }

            // Change the view to the target view
            this.CurrentView     = views[message.TargetView];
            this.currentViewName = message.TargetView;

            // Activated allows us to set up the Kinect stuff if necessary
            ((IView)this.CurrentView.DataContext).Activated(message.State);
        }
示例#3
0
 private void OnNavigate(NavigateMessage message)
 {
     this.CurrentView = views[message.TargetView];
     this.currentViewName = message.TargetView;
     ((IView)this.CurrentView.DataContext).Activated(message.State);
 }