Example #1
0
 /// <summary>
 /// Create drive mode controller
 /// </summary>
 private void createDriveModeController()
 {
     ///CONTROLLER
     DriveModeController = new Controllers.DriveMode();
 }
Example #2
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.BluetoothController = container.BluetoothController;
                this.DriveModeController = container.DriveModeController;
                this.DataController = container.DataController;
            }

            if (App.IsInactiveMode)
            {
                CameraController.CameraStart();
            }
            App.IsInactiveMode = false;
            base.OnNavigatedFrom(e);
        }
        /// <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;

                Browser.Visibility = Visibility.Collapsed;
                Browser.Navigate(container.Uri);
            }

            if (App.IsInactiveMode)
            {
                CameraController.CameraStart();
            }
            App.IsInactiveMode = false;
            base.OnNavigatedFrom(e);
        }