コード例 #1
0
ファイル: AglePage.xaml.cs プロジェクト: jzzfreedom/Repo
 internal void InitializeAglePage(AglePageViewModel aglePageVM)
 {
     this.aglePageVM             = aglePageVM;
     this.DataContext            = this.aglePageVM;
     this.InfoPanel.DataContext  = this.aglePageVM.infoPanelVM;
     this.MainMenuUC.DataContext = this.aglePageVM.mainMenuVM;
 }
コード例 #2
0
        public MainWindowViewModel(Frame CurrentFrame, Dispatcher mainWindowDispatcher)
        {
            this.currentFrame = CurrentFrame;
            this.mainWindowDispatcher = mainWindowDispatcher;

            // Initialize Agle as soon as possible
            MyAgle = Agle.Agle.GetAgleInstance;
            MyAgle.InitializeAgle(this.mainWindowDispatcher);


            // Creating ViewModel for all related pages
            aglePageVM = new AglePageViewModel();

            selfCheckingPageVM = new SelfCheckingPageViewModel();

            titlePageVM = new TitlePageViewModel();
            titlePageVM.VideoFinishedEvent += this.OnTitlePageFinished;

            selfCheckingPageVM.AgleSystemStart += this.OnAgleSystemStart;

            // Ready navigating to title page, show starting movie
            TitlePage titlePage = new TitlePage();
            titlePage.InitializeTitlePage(this.titlePageVM);
            this.currentFrame.NavigationService.Navigate(titlePage);


           
        }
コード例 #3
0
ファイル: AglePage.xaml.cs プロジェクト: jzzfreedom/Repo
 internal void InitializeAglePage(AglePageViewModel aglePageVM)
 {
     this.aglePageVM = aglePageVM;
     this.DataContext = this.aglePageVM;
     this.InfoPanel.DataContext = this.aglePageVM.infoPanelVM;
     this.MainMenuUC.DataContext = this.aglePageVM.mainMenuVM;
 }
コード例 #4
0
 void OnAgleSystemStart(object sender, object arg)
 {
     Debug.Assert(this.titlePageFinished == true);
     AglePage aglePage = new AglePage();
     this.aglePageVM = new AglePageViewModel();
     aglePage.InitializeAglePage(this.aglePageVM);
     this.currentFrame.NavigationService.Navigate(aglePage);
 }