예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 15 "..\..\..\UI\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnPause);

            #line default
            #line hidden
                return;

            case 2:

            #line 16 "..\..\..\UI\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnHelp);

            #line default
            #line hidden
                return;

            case 3:

            #line 17 "..\..\..\UI\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SwitchCameraCommand_OnExecuted);

            #line default
            #line hidden
                return;

            case 4:
                this.CameraViewsCombobox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.TogglePause = ((System.Windows.Controls.CheckBox)(target));

            #line 33 "..\..\..\UI\MainWindow.xaml"
                this.TogglePause.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChanged);

            #line default
            #line hidden

            #line 33 "..\..\..\UI\MainWindow.xaml"
                this.TogglePause.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.ButtonExit = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\..\UI\MainWindow.xaml"
                this.ButtonExit.Click += new System.Windows.RoutedEventHandler(this.ButtonExit_OnClick);

            #line default
            #line hidden
                return;

            case 7:
                this.ViewPort = ((HelixToolkit.Wpf.HelixViewport3D)(target));

            #line 39 "..\..\..\UI\MainWindow.xaml"
                this.ViewPort.CameraChanged += new System.Windows.RoutedEventHandler(this.ViewPort_CameraChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.Grid = ((HelixToolkit.Wpf.GridLinesVisual3D)(target));
                return;

            case 9:
                this.BoatBearing = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
                return;

            case 10:
                this.BoatPosition = ((System.Windows.Media.Media3D.TranslateTransform3D)(target));
                return;

            case 11:
                this.FileModelVisual3D = ((HelixToolkit.Wpf.FileModelVisual3D)(target));
                return;

            case 12:
                this.Waypoint = ((AutoPilotSimulation.UI.DraggableSphere)(target));
                return;

            case 13:
                this.InfoBox = ((AutoPilotSimulation.UI.InfoBox)(target));
                return;
            }
            this._contentLoaded = true;
        }