Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:
                this.stackP1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.rtFive1 = ((MasaSam.Controls.Rating)(target));
                return;

            case 5:
                this.rtFive2 = ((MasaSam.Controls.Rating)(target));
                return;

            case 6:
                this.rtFive3 = ((MasaSam.Controls.Rating)(target));
                return;

            case 7:
                this.rtFive4 = ((MasaSam.Controls.Rating)(target));
                return;

            case 8:
                this.rtFive5 = ((MasaSam.Controls.Rating)(target));
                return;

            case 9:
                this.rtFive6 = ((MasaSam.Controls.Rating)(target));
                return;

            case 10:
                this.rtFive7 = ((MasaSam.Controls.Rating)(target));
                return;

            case 11:
                this.rtFive8 = ((MasaSam.Controls.Rating)(target));
                return;

            case 12:
                this.rtFive9 = ((MasaSam.Controls.Rating)(target));
                return;

            case 13:
                this.rtFive10 = ((MasaSam.Controls.Rating)(target));
                return;

            case 14:
                this.rtFive11 = ((MasaSam.Controls.Rating)(target));
                return;

            case 15:
                this.rtFive12 = ((MasaSam.Controls.Rating)(target));
                return;

            case 16:
                this.BtnSong1 = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.BtnSong1.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 17:
                this.BtnSong2 = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.BtnSong2.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 18:
                this.BtnSong3 = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.BtnSong3.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 19:
                this.BtnSong4 = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.BtnSong4.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 20:
                this.BtnSong5 = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.BtnSong5.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 21:
                this.BtnSong6 = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.BtnSong6.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 22:
                this.BtnSong7 = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.BtnSong7.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 23:
                this.BtnSong8 = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.BtnSong8.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 24:
                this.BtnSong9 = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.BtnSong9.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 25:
                this.BtnSong10 = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.BtnSong10.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

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

            #line 55 "..\..\MainWindow.xaml"
                this.BtnSong11.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\MainWindow.xaml"
                this.BtnSong12.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);

            #line default
            #line hidden
                return;

            case 28:

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

            #line default
            #line hidden
                return;

            case 29:
                this.LblNumGeneration = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.LstAverage = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.canvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 2:
     
     #line 8 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnRestart);
     
     #line default
     #line hidden
     return;
     case 3:
     this.stackP1 = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 4:
     this.rtFive1 = ((MasaSam.Controls.Rating)(target));
     return;
     case 5:
     this.rtFive2 = ((MasaSam.Controls.Rating)(target));
     return;
     case 6:
     this.rtFive3 = ((MasaSam.Controls.Rating)(target));
     return;
     case 7:
     this.rtFive4 = ((MasaSam.Controls.Rating)(target));
     return;
     case 8:
     this.rtFive5 = ((MasaSam.Controls.Rating)(target));
     return;
     case 9:
     this.rtFive6 = ((MasaSam.Controls.Rating)(target));
     return;
     case 10:
     this.rtFive7 = ((MasaSam.Controls.Rating)(target));
     return;
     case 11:
     this.rtFive8 = ((MasaSam.Controls.Rating)(target));
     return;
     case 12:
     this.rtFive9 = ((MasaSam.Controls.Rating)(target));
     return;
     case 13:
     this.rtFive10 = ((MasaSam.Controls.Rating)(target));
     return;
     case 14:
     this.rtFive11 = ((MasaSam.Controls.Rating)(target));
     return;
     case 15:
     this.rtFive12 = ((MasaSam.Controls.Rating)(target));
     return;
     case 16:
     this.BtnSong1 = ((System.Windows.Controls.Button)(target));
     
     #line 45 "..\..\MainWindow.xaml"
     this.BtnSong1.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 17:
     this.BtnSong2 = ((System.Windows.Controls.Button)(target));
     
     #line 46 "..\..\MainWindow.xaml"
     this.BtnSong2.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 18:
     this.BtnSong3 = ((System.Windows.Controls.Button)(target));
     
     #line 47 "..\..\MainWindow.xaml"
     this.BtnSong3.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 19:
     this.BtnSong4 = ((System.Windows.Controls.Button)(target));
     
     #line 48 "..\..\MainWindow.xaml"
     this.BtnSong4.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 20:
     this.BtnSong5 = ((System.Windows.Controls.Button)(target));
     
     #line 49 "..\..\MainWindow.xaml"
     this.BtnSong5.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 21:
     this.BtnSong6 = ((System.Windows.Controls.Button)(target));
     
     #line 50 "..\..\MainWindow.xaml"
     this.BtnSong6.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 22:
     this.BtnSong7 = ((System.Windows.Controls.Button)(target));
     
     #line 51 "..\..\MainWindow.xaml"
     this.BtnSong7.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 23:
     this.BtnSong8 = ((System.Windows.Controls.Button)(target));
     
     #line 52 "..\..\MainWindow.xaml"
     this.BtnSong8.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 24:
     this.BtnSong9 = ((System.Windows.Controls.Button)(target));
     
     #line 53 "..\..\MainWindow.xaml"
     this.BtnSong9.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 25:
     this.BtnSong10 = ((System.Windows.Controls.Button)(target));
     
     #line 54 "..\..\MainWindow.xaml"
     this.BtnSong10.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 26:
     this.BtnSong11 = ((System.Windows.Controls.Button)(target));
     
     #line 55 "..\..\MainWindow.xaml"
     this.BtnSong11.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 27:
     this.BtnSong12 = ((System.Windows.Controls.Button)(target));
     
     #line 56 "..\..\MainWindow.xaml"
     this.BtnSong12.Click += new System.Windows.RoutedEventHandler(this.OnClickButton);
     
     #line default
     #line hidden
     return;
     case 28:
     
     #line 57 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnNextGen);
     
     #line default
     #line hidden
     return;
     case 29:
     this.LblNumGeneration = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.LstAverage = ((System.Windows.Controls.ListBox)(target));
     return;
     }
     this._contentLoaded = true;
 }