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

            #line 11 "..\..\MainWindow.xaml"
                ((SolarSystem.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.Sun = ((Surfaces.Sphere)(target));
                return;

            case 3:
                this.Earth = ((Surfaces.Sphere)(target));
                return;

            case 4:
                this.OrbitPlane = ((Surfaces.Circle)(target));
                return;

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

            case 6:

            #line 166 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Checked += new System.Windows.RoutedEventHandler(this.Pause_Checked);

            #line default
            #line hidden

            #line 166 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.Pause_Unchecked);

            #line default
            #line hidden
                return;

            case 7:
                this.SeeOrbitPlane = ((System.Windows.Controls.CheckBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 11 "..\..\MainWindow.xaml"
     ((SolarSystem.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Sun = ((Surfaces.Sphere)(target));
     return;
     case 3:
     this.Earth = ((Surfaces.Sphere)(target));
     return;
     case 4:
     this.OrbitPlane = ((Surfaces.Circle)(target));
     return;
     case 5:
     this.DaysCount = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     
     #line 166 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.CheckBox)(target)).Checked += new System.Windows.RoutedEventHandler(this.Pause_Checked);
     
     #line default
     #line hidden
     
     #line 166 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.CheckBox)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.Pause_Unchecked);
     
     #line default
     #line hidden
     return;
     case 7:
     this.SeeOrbitPlane = ((System.Windows.Controls.CheckBox)(target));
     return;
     }
     this._contentLoaded = true;
 }