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

            #line 6 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomToFit_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 7 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.view1 = ((HelixToolkit.HelixView3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\..\MainWindow.xaml"
                ((RubikDemo.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.HandleKeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.view1 = ((HelixToolkit.HelixView3D)(target));
                return;

            case 3:
                this.cube1 = ((RubikDemo.RubikCube)(target));
                return;

            case 4:
                this.info = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 16 "..\..\Window1.xaml"
     ((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.Hyperlink_RequestNavigate);
     
     #line default
     #line hidden
     return;
     case 2:
     this.view2 = ((HelixToolkit.HelixView3D)(target));
     return;
     case 3:
     this.bindingPanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 4:
     this.slider1 = ((System.Windows.Controls.Slider)(target));
     return;
     case 5:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     return;
     case 6:
     this.cube1 = ((HelixToolkit.CubeVisual3D)(target));
     return;
     case 7:
     this.showFramerate = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 8:
     this.showFieldOfView = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 9:
     this.showCoordSystem = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 10:
     this.showViewCube = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 11:
     this.infiniteSpin = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 12:
     this.slider2 = ((System.Windows.Controls.Slider)(target));
     return;
     case 13:
     this.UseOrthographicCamera = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 14:
     this.navigator = ((HelixToolkit.Input.SpaceNavigatorDecorator)(target));
     return;
     case 15:
     this.view7 = ((HelixToolkit.HelixView3D)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#5
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.view1 = ((HelixToolkit.HelixView3D)(target));
         return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     
     #line 10 "..\..\..\MainWindow.xaml"
     this.view1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.view1_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.view1 = ((HelixToolkit.HelixView3D)(target));

            #line 5 "..\..\..\MainWindow.xaml"
                this.view1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.view1_MouseDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 10 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.view1 = ((HelixToolkit.HelixView3D)(target));

            #line 14 "..\..\..\MainWindow.xaml"
                this.view1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.view1_MouseDown);

            #line default
            #line hidden
                return;

            case 4:

            #line 24 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CurrentColor_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#9
0
        public MainViewModel(Dispatcher dispatcher, HelixView3D view)
        {
            this.dispatcher = dispatcher;
            this.view = view;

            Heel = 0;
            Trim = 0;
            Heave = 0;
            Length = 200;
            HullBrush = Brushes.Red;

            try
            {
                wm = new Wiimote();
                wm.WiimoteChanged += WiimoteChanged;
            }
            catch
            {
                wm = null;
            }
        }
示例#10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.wireframe = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 2:
                this.Param1 = ((System.Windows.Controls.Slider)(target));
                return;

            case 3:
                this.Param2 = ((System.Windows.Controls.Slider)(target));
                return;

            case 4:
                this.Param3 = ((System.Windows.Controls.Slider)(target));
                return;

            case 5:
                this.Param4 = ((System.Windows.Controls.Slider)(target));
                return;

            case 6:
                this.Param5 = ((System.Windows.Controls.Slider)(target));
                return;

            case 7:
                this.Param6 = ((System.Windows.Controls.Slider)(target));
                return;

            case 8:
                this.view1 = ((HelixToolkit.HelixView3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#11
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.From = ((System.Windows.Controls.ComboBox)(target));
     
     #line 22 "..\..\..\MainWindow.xaml"
     this.From.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.FromPreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 22 "..\..\..\MainWindow.xaml"
     this.From.KeyUp += new System.Windows.Input.KeyEventHandler(this.FromToChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.To = ((System.Windows.Controls.ComboBox)(target));
     
     #line 24 "..\..\..\MainWindow.xaml"
     this.To.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.ToPreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 24 "..\..\..\MainWindow.xaml"
     this.To.KeyUp += new System.Windows.Input.KeyEventHandler(this.FromToChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.list1 = ((System.Windows.Controls.ListView)(target));
     
     #line 26 "..\..\..\MainWindow.xaml"
     this.list1.KeyDown += new System.Windows.Input.KeyEventHandler(this.ListViewKeyDown);
     
     #line default
     #line hidden
     return;
     case 4:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     
     #line 40 "..\..\..\MainWindow.xaml"
     this.view1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseDown);
     
     #line default
     #line hidden
     
     #line 40 "..\..\..\MainWindow.xaml"
     this.view1.MouseMove += new System.Windows.Input.MouseEventHandler(this.OnMouseMove);
     
     #line default
     #line hidden
     return;
     case 5:
     this.earth = ((HelixToolkit.SphereVisual3D)(target));
     return;
     case 6:
     this.text1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 7:
     this.text2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#12
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 15 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 17 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 51 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomToFit_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#13
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 39 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportKerkythea_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 40 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportPOVRay_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 41 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportXaml_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 42 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportObj_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 43 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportX3D_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 44 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportVRML_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 46 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 49 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomToFit_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     
     #line 53 "..\..\..\MainWindow.xaml"
     this.view1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.view1_MouseDown);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.thisWindow = ((SurfaceDemo.Window1)(target));
                return;

            case 2:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:

            #line 15 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 17 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ViewSource = ((System.Windows.Controls.MenuItem)(target));

            #line 20 "..\..\Window1.xaml"
                this.ViewSource.Click += new System.Windows.RoutedEventHandler(this.ViewSource_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 21 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetCamera_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Fullscreen = ((System.Windows.Controls.MenuItem)(target));

            #line 22 "..\..\Window1.xaml"
                this.Fullscreen.Click += new System.Windows.RoutedEventHandler(this.FullScreen_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 24 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 25 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 26 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 29 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHue_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 30 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHueStripes_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 31 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbow_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 32 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbowStripes_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 33 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushPattern_Click);

            #line default
            #line hidden
                return;

            case 16:

            #line 34 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushImage_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.surfacesMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 18:
                this.SourcePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 19:
                this.slider1 = ((System.Windows.Controls.Slider)(target));
                return;

            case 20:
                this.slider2 = ((System.Windows.Controls.Slider)(target));
                return;

            case 21:
                this.slider3 = ((System.Windows.Controls.Slider)(target));
                return;

            case 22:
                this.slider4 = ((System.Windows.Controls.Slider)(target));
                return;

            case 23:
                this.errorList = ((System.Windows.Controls.ListView)(target));
                return;

            case 24:
                this.source1 = ((System.Windows.Controls.TextBox)(target));

            #line 81 "..\..\Window1.xaml"
                this.source1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.source1_TextChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.view1 = ((HelixToolkit.HelixView3D)(target));
                return;

            case 26:
                this.surface1 = ((SurfaceDemo.DynamicCodeSurface3D)(target));
                return;

            case 27:
                this.view2 = ((HelixToolkit.StereoView3D)(target));
                return;

            case 28:
                this.view3 = ((HelixToolkit.AnaglyphView3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#15
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 10 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     
     #line 14 "..\..\..\MainWindow.xaml"
     this.view1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.view1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 24 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CurrentColor_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 39 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportKerkythea_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 40 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportPOVRay_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 41 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportXaml_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 42 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportObj_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 43 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportX3D_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 44 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportVRML_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 46 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 49 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ZoomToFit_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.view1 = ((HelixToolkit.HelixView3D)(target));

            #line 53 "..\..\..\MainWindow.xaml"
                this.view1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.view1_MouseDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.From = ((System.Windows.Controls.ComboBox)(target));

            #line 22 "..\..\..\MainWindow.xaml"
                this.From.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.FromPreviewKeyDown);

            #line default
            #line hidden

            #line 22 "..\..\..\MainWindow.xaml"
                this.From.KeyUp += new System.Windows.Input.KeyEventHandler(this.FromToChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.To = ((System.Windows.Controls.ComboBox)(target));

            #line 24 "..\..\..\MainWindow.xaml"
                this.To.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.ToPreviewKeyDown);

            #line default
            #line hidden

            #line 24 "..\..\..\MainWindow.xaml"
                this.To.KeyUp += new System.Windows.Input.KeyEventHandler(this.FromToChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.list1 = ((System.Windows.Controls.ListView)(target));

            #line 26 "..\..\..\MainWindow.xaml"
                this.list1.KeyDown += new System.Windows.Input.KeyEventHandler(this.ListViewKeyDown);

            #line default
            #line hidden
                return;

            case 4:
                this.view1 = ((HelixToolkit.HelixView3D)(target));

            #line 40 "..\..\..\MainWindow.xaml"
                this.view1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnMouseDown);

            #line default
            #line hidden

            #line 40 "..\..\..\MainWindow.xaml"
                this.view1.MouseMove += new System.Windows.Input.MouseEventHandler(this.OnMouseMove);

            #line default
            #line hidden
                return;

            case 5:
                this.earth = ((HelixToolkit.SphereVisual3D)(target));
                return;

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

            case 7:
                this.text2 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#18
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.wireframe = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 2:
     this.Param1 = ((System.Windows.Controls.Slider)(target));
     return;
     case 3:
     this.Param2 = ((System.Windows.Controls.Slider)(target));
     return;
     case 4:
     this.Param3 = ((System.Windows.Controls.Slider)(target));
     return;
     case 5:
     this.Param4 = ((System.Windows.Controls.Slider)(target));
     return;
     case 6:
     this.Param5 = ((System.Windows.Controls.Slider)(target));
     return;
     case 7:
     this.Param6 = ((System.Windows.Controls.Slider)(target));
     return;
     case 8:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#19
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((RubikDemo.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.HandleKeyDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     return;
     case 3:
     this.cube1 = ((RubikDemo.RubikCube)(target));
     return;
     case 4:
     this.info = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#20
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.thisWindow = ((SurfaceDemo.Window1)(target));
     return;
     case 2:
     this.mainMenu = ((System.Windows.Controls.Menu)(target));
     return;
     case 3:
     
     #line 15 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Export_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 17 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.ViewSource = ((System.Windows.Controls.MenuItem)(target));
     
     #line 20 "..\..\Window1.xaml"
     this.ViewSource.Click += new System.Windows.RoutedEventHandler(this.ViewSource_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 21 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ResetCamera_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.Fullscreen = ((System.Windows.Controls.MenuItem)(target));
     
     #line 22 "..\..\Window1.xaml"
     this.Fullscreen.Click += new System.Windows.RoutedEventHandler(this.FullScreen_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 24 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 25 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 26 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Stereo_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 29 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHue_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 30 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushHueStripes_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 31 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbow_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 32 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushRainbowStripes_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 33 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushPattern_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 34 "..\..\Window1.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.BrushImage_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.surfacesMenu = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 18:
     this.SourcePanel = ((System.Windows.Controls.DockPanel)(target));
     return;
     case 19:
     this.slider1 = ((System.Windows.Controls.Slider)(target));
     return;
     case 20:
     this.slider2 = ((System.Windows.Controls.Slider)(target));
     return;
     case 21:
     this.slider3 = ((System.Windows.Controls.Slider)(target));
     return;
     case 22:
     this.slider4 = ((System.Windows.Controls.Slider)(target));
     return;
     case 23:
     this.errorList = ((System.Windows.Controls.ListView)(target));
     return;
     case 24:
     this.source1 = ((System.Windows.Controls.TextBox)(target));
     
     #line 81 "..\..\Window1.xaml"
     this.source1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.source1_TextChanged);
     
     #line default
     #line hidden
     return;
     case 25:
     this.view1 = ((HelixToolkit.HelixView3D)(target));
     return;
     case 26:
     this.surface1 = ((SurfaceDemo.DynamicCodeSurface3D)(target));
     return;
     case 27:
     this.view2 = ((HelixToolkit.StereoView3D)(target));
     return;
     case 28:
     this.view3 = ((HelixToolkit.AnaglyphView3D)(target));
     return;
     }
     this._contentLoaded = true;
 }