コード例 #1
0
 /// <summary>
 /// Create drive mode controller
 /// </summary>
 private void createDriveModeController()
 {
     ///CONTROLLER
     DriveModeController = new Controllers.DriveMode();
 }
コード例 #2
0
ファイル: Obd.xaml.cs プロジェクト: stanislavhacker/CoPilot
        /// <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);
        }
コード例 #3
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;

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

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