Esempio n. 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Десерты = ((WpfApplication6.ОкноДесертов)(target));
     return;
     case 2:
     this.МШоколадное = ((System.Windows.Controls.Button)(target));
     
     #line 6 "..\..\..\Window3.xaml"
     this.МШоколадное.Click += new System.Windows.RoutedEventHandler(this.Конфеты_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.МКарамельное = ((System.Windows.Controls.Button)(target));
     
     #line 7 "..\..\..\Window3.xaml"
     this.МКарамельное.Click += new System.Windows.RoutedEventHandler(this.Мороженое_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.МКлубничное = ((System.Windows.Controls.Button)(target));
     
     #line 8 "..\..\..\Window3.xaml"
     this.МКлубничное.Click += new System.Windows.RoutedEventHandler(this.МорожСАнанасами_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.ВРожок = ((System.Windows.Controls.Button)(target));
     
     #line 9 "..\..\..\Window3.xaml"
     this.ВРожок.Click += new System.Windows.RoutedEventHandler(this.Вафли_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.ВПирожок = ((System.Windows.Controls.Button)(target));
     
     #line 10 "..\..\..\Window3.xaml"
     this.ВПирожок.Click += new System.Windows.RoutedEventHandler(this.ПирожокСПов_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.МсШоколадом = ((System.Windows.Controls.Button)(target));
     
     #line 11 "..\..\..\Window3.xaml"
     this.МсШоколадом.Click += new System.Windows.RoutedEventHandler(this.ПирСКремом_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.Ок = ((System.Windows.Controls.Button)(target));
     
     #line 12 "..\..\..\Window3.xaml"
     this.Ок.Click += new System.Windows.RoutedEventHandler(this.Ок_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.Отмена = ((System.Windows.Controls.Button)(target));
     
     #line 13 "..\..\..\Window3.xaml"
     this.Отмена.Click += new System.Windows.RoutedEventHandler(this.Отмена_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.ОкноВывода = ((System.Windows.Controls.ListBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Десерты = ((WpfApplication6.ОкноДесертов)(target));
                return;

            case 2:
                this.МШоколадное = ((System.Windows.Controls.Button)(target));

            #line 6 "..\..\..\Window3.xaml"
                this.МШоколадное.Click += new System.Windows.RoutedEventHandler(this.Конфеты_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.МКарамельное = ((System.Windows.Controls.Button)(target));

            #line 7 "..\..\..\Window3.xaml"
                this.МКарамельное.Click += new System.Windows.RoutedEventHandler(this.Мороженое_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.МКлубничное = ((System.Windows.Controls.Button)(target));

            #line 8 "..\..\..\Window3.xaml"
                this.МКлубничное.Click += new System.Windows.RoutedEventHandler(this.МорожСАнанасами_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ВРожок = ((System.Windows.Controls.Button)(target));

            #line 9 "..\..\..\Window3.xaml"
                this.ВРожок.Click += new System.Windows.RoutedEventHandler(this.Вафли_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.ВПирожок = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\..\Window3.xaml"
                this.ВПирожок.Click += new System.Windows.RoutedEventHandler(this.ПирожокСПов_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.МсШоколадом = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\..\Window3.xaml"
                this.МсШоколадом.Click += new System.Windows.RoutedEventHandler(this.ПирСКремом_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Ок = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\..\Window3.xaml"
                this.Ок.Click += new System.Windows.RoutedEventHandler(this.Ок_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.Отмена = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\..\Window3.xaml"
                this.Отмена.Click += new System.Windows.RoutedEventHandler(this.Отмена_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.ОкноВывода = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }