Beispiel #1
0
 internal void InitializeAglePage(AglePageViewModel aglePageVM)
 {
     this.aglePageVM             = aglePageVM;
     this.DataContext            = this.aglePageVM;
     this.InfoPanel.DataContext  = this.aglePageVM.infoPanelVM;
     this.MainMenuUC.DataContext = this.aglePageVM.mainMenuVM;
 }
Beispiel #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);


           
        }
Beispiel #3
0
 internal void InitializeAglePage(AglePageViewModel aglePageVM)
 {
     this.aglePageVM = aglePageVM;
     this.DataContext = this.aglePageVM;
     this.InfoPanel.DataContext = this.aglePageVM.infoPanelVM;
     this.MainMenuUC.DataContext = this.aglePageVM.mainMenuVM;
 }
Beispiel #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);
 }