Exemple #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MainWindow = ((BabyNames.Window1)(target));
     
     #line 5 "..\..\MainWindow.xaml"
     this.MainWindow.Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.btnRunLinq = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\MainWindow.xaml"
     this.btnRunLinq.Click += new System.Windows.RoutedEventHandler(this.btnRunLinq_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btnRunPlinq = ((System.Windows.Controls.Button)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.btnRunPlinq.Click += new System.Windows.RoutedEventHandler(this.btnRunPlinq_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.lblSpeedup = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.txtQueryName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.lblQueryName = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.txtQueryState = ((System.Windows.Controls.TextBox)(target));
     return;
     case 9:
     this.lblQueryState = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.slProcessorsToUse = ((System.Windows.Controls.Slider)(target));
     
     #line 42 "..\..\MainWindow.xaml"
     this.slProcessorsToUse.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slProcessorsToUse_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 11:
     this.lblProcessorsToUse = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.slNumRecords = ((System.Windows.Controls.Slider)(target));
     
     #line 44 "..\..\MainWindow.xaml"
     this.slNumRecords.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slSize_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 13:
     this.lblSize = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.lblLinqTime = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.lblPlinqTime = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.graphLinq = ((BabyNames.Graph)(target));
     return;
     case 17:
     this.graphPlinq = ((BabyNames.Graph)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow = ((BabyNames.Window1)(target));

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

            #line default
            #line hidden
                return;

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

            case 3:
                this.btnRunLinq = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.btnRunLinq.Click += new System.Windows.RoutedEventHandler(this.btnRunLinq_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnRunPlinq = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.btnRunPlinq.Click += new System.Windows.RoutedEventHandler(this.btnRunPlinq_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.lblSpeedup = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.txtQueryName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.lblQueryName = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.txtQueryState = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.lblQueryState = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.slProcessorsToUse = ((System.Windows.Controls.Slider)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.slProcessorsToUse.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slProcessorsToUse_ValueChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.lblProcessorsToUse = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.slNumRecords = ((System.Windows.Controls.Slider)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.slNumRecords.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slSize_ValueChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.lblSize = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.lblLinqTime = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.lblPlinqTime = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.graphLinq = ((BabyNames.Graph)(target));
                return;

            case 17:
                this.graphPlinq = ((BabyNames.Graph)(target));
                return;
            }
            this._contentLoaded = true;
        }