예제 #1
0
        /// <summary>
        /// On navigated to
        /// </summary>
        /// <param name="e"></param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var data = NavigationService.GetLastNavigationData();
            if (data != null)
            {
                DataContainer container = data as DataContainer;
                this.CameraController = container.CameraController;
                this.DataController = container.DataController;
                this.DriveModeController = container.DriveModeController;
                this.StatsController = container.StatsController;

                this.IsTrendFuelPrices = container.GrapType == "TrendFuelPrices";
                this.IsTrendUnitsPerRefill = container.GrapType == "TrendUnitsPerRefill";
            }

            if (App.IsInactiveMode)
            {
                CameraController.CameraStart();
            }
            App.IsInactiveMode = false;
            base.OnNavigatedFrom(e);
        }
예제 #2
0
 /// <summary>
 /// Create stats controller
 /// </summary>
 private void createStatsController()
 {
     ///CONTROLLER
     StatsController = new Controllers.Stats(this.dataController, this);
 }