Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            image1.Height = Height;
            image1.Width = Width;

            wheelPowerControl = new WheelPower();
            canvasWheelPower.Children.Add(wheelPowerControl);
            //canvasWheelPower.Margin = new Thickness(Width - 120, 0, 0, 0);

            cameraAngleControl = new CameraAngle();
            cameraAngleControl.AngleUpdated += new EventHandler(cameraAngleControl_AngleUpdated);
            canvasCameraAngle.Children.Add(cameraAngleControl);

            temperatureGaugeControl = new TemperatureGauge();
            canvasTemperature.Children.Add(temperatureGaugeControl);

            drivingDirectionControl = new DrivingDirection();
            canvasDrivingDirection.Children.Add(drivingDirectionControl);

            speedometerControl = new SpeedometerGauge();
            canvasSpeedometerGauge.Children.Add(speedometerControl);

            temperatureLineGraph = new LineGraph(canvasTempLineGraph, Brushes.Green);
            latencyLineGraph = new LineGraph(canvasLatencyLineGraph, Brushes.Red);

            canvasTempLineGraph.Children.Add(temperatureLineGraph);
            canvasLatencyLineGraph.Children.Add(latencyLineGraph);

            //canvasCameraAngle.Margin = new Thickness(Width - 120, 10, 0, 0);
        }
Esempio n. 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            image1.Height = Height;
            image1.Width = Width;

            cameraAngleControl = new CameraAngle();
            cameraAngleControl.AngleUpdated += new EventHandler(cameraAngleControl_AngleUpdated);
            canvasCameraAngle.Children.Add(cameraAngleControl);
            canvasCameraAngle.Margin = new Thickness(Width - 120, 10, 0, 0);
        }