Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\RobotInterface.xaml"
                ((WpfRobotInterface.RobotInterface)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.Osc_LinearSpeedOdometry = ((WpfOscilloscopeControl.WpfOscilloscope)(target));
                return;

            case 3:
                this.Osc_AngularSpeedOdometry = ((WpfOscilloscopeControl.WpfOscilloscope)(target));
                return;

            case 4:
                this.Osc_ErrorLinearAngularSpeed = ((WpfOscilloscopeControl.WpfOscilloscope)(target));
                return;

            case 5:
                this.textBlock_LinSpeedError = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.textBlock_LinSpeedError_Copy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.textBlock_LinSpeedErrorMaxAmplitude = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\WpfRobot2RouesInterface.xaml"
                ((RobotInterface.WpfRobot2RouesInterface)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 12 "..\..\WpfRobot2RouesInterface.xaml"
                ((RobotInterface.WpfRobot2RouesInterface)(target)).SourceInitialized += new System.EventHandler(this.Window_SourceInitialized);

            #line default
            #line hidden
                return;

            case 2:
                this.GridApplication = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.asserv2WheelsSpeedDisplay = ((WpfAsservissementDisplay.AsservissementRobot2RouesDisplayControl)(target));
                return;

            case 4:
                this.asservPositionDisplay = ((WpfAsservissementDisplay.AsservissementRobot2RouesDisplayControl)(target));
                return;

            case 5:

            #line 45 "..\..\WpfRobot2RouesInterface.xaml"
                ((System.Windows.Controls.GroupBox)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ZoomOnGraph_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 6:
                this.oscilloX = ((WpfOscilloscopeControl.WpfOscilloscope)(target));
                return;

            case 7:

            #line 48 "..\..\WpfRobot2RouesInterface.xaml"
                ((System.Windows.Controls.GroupBox)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ZoomOnGraph_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 8:
                this.LabelMotorState = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.ButtonDisableMotors = ((System.Windows.Controls.Button)(target));

            #line 60 "..\..\WpfRobot2RouesInterface.xaml"
                this.ButtonDisableMotors.Click += new System.Windows.RoutedEventHandler(this.ButtonDisableMotors_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.LabelAsservMode = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.ButtonChangeAsservissementMode = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\WpfRobot2RouesInterface.xaml"
                this.ButtonChangeAsservissementMode.Click += new System.Windows.RoutedEventHandler(this.ButtonEnableAsservissement_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.LabelXBoxControllerMode = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.ButtonChangeXBoxControllerMode = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\WpfRobot2RouesInterface.xaml"
                this.ButtonChangeXBoxControllerMode.Click += new System.Windows.RoutedEventHandler(this.ButtonXBoxController_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 68 "..\..\WpfRobot2RouesInterface.xaml"
                ((System.Windows.Controls.GroupBox)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ZoomOnGraph_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 15:
                this.oscilloTheta = ((WpfOscilloscopeControl.WpfOscilloscope)(target));
                return;

            case 16:
                this.textBoxConsole = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.LabelNbIMUDataPerSec = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.LabelNbSpeedOdometryDataPerSec = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.LabelNbLidarProcessedDataPerSec = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.LabelBattCommandVoltage = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.LabelBattPowerVoltage = ((System.Windows.Controls.Label)(target));
                return;

            case 22:

            #line 99 "..\..\WpfRobot2RouesInterface.xaml"
                ((System.Windows.Controls.GroupBox)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ZoomOnGraph_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 23:
                this.oscilloLidar = ((WpfOscilloscopeControl.WpfOscilloscope)(target));
                return;

            case 24:
                this.worldMapDisplayStrategy = ((WpfWorldMapDisplay.LocalWorldMapDisplay)(target));

            #line 107 "..\..\WpfRobot2RouesInterface.xaml"
                this.worldMapDisplayStrategy.Loaded += new System.Windows.RoutedEventHandler(this.worldMapDisplayStrategy_Loaded);

            #line default
            #line hidden
                return;

            case 25:
                this.worldMapDisplayWaypoint = ((WpfWorldMapDisplay.LocalWorldMapDisplay)(target));
                return;

            case 26:
                this.ButtonOnOffCamera = ((System.Windows.Controls.Button)(target));
                return;

            case 27:
                this.ButtonCalibrateCamera = ((System.Windows.Controls.Button)(target));
                return;

            case 28:
                this.ButtonDebugCam1 = ((System.Windows.Controls.Button)(target));
                return;

            case 29:
                this.ButtonDebugCam2 = ((System.Windows.Controls.Button)(target));
                return;

            case 30:
                this.ImageDebug1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 31:
                this.imageCamera1 = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }