Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Сандвичи = ((WpfApplication6.Window1)(target));
     return;
     case 2:
     this.БигМак = ((System.Windows.Controls.Button)(target));
     
     #line 6 "..\..\..\Window1.xaml"
     this.БигМак.Click += new System.Windows.RoutedEventHandler(this.БигМак_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.РоялЧизбургер = ((System.Windows.Controls.Button)(target));
     
     #line 7 "..\..\..\Window1.xaml"
     this.РоялЧизбургер.Click += new System.Windows.RoutedEventHandler(this.РоялЧизбургер_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.Соус = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 5:
     this.Ок = ((System.Windows.Controls.Button)(target));
     
     #line 9 "..\..\..\Window1.xaml"
     this.Ок.Click += new System.Windows.RoutedEventHandler(this.Ок_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.Отмена = ((System.Windows.Controls.Button)(target));
     
     #line 10 "..\..\..\Window1.xaml"
     this.Отмена.Click += new System.Windows.RoutedEventHandler(this.Отмена_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.ОкноВывода = ((System.Windows.Controls.ListBox)(target));
     return;
     case 8:
     this.Объем = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 9:
     this.ЧикенБекон = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\..\Window1.xaml"
     this.ЧикенБекон.Click += new System.Windows.RoutedEventHandler(this.ЧикенБекон_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.Биф_Ролл = ((System.Windows.Controls.Button)(target));
     
     #line 18 "..\..\..\Window1.xaml"
     this.Биф_Ролл.Click += new System.Windows.RoutedEventHandler(this.БифРолл_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Сандвичи = ((WpfApplication6.Window1)(target));
                return;

            case 2:
                this.БигМак = ((System.Windows.Controls.Button)(target));

            #line 6 "..\..\..\Window1.xaml"
                this.БигМак.Click += new System.Windows.RoutedEventHandler(this.БигМак_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.оялЧизбургер = ((System.Windows.Controls.Button)(target));

            #line 7 "..\..\..\Window1.xaml"
                this.оялЧизбургер.Click += new System.Windows.RoutedEventHandler(this.оялЧизбургер_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Соус = ((System.Windows.Controls.CheckBox)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            case 8:
                this.Объем = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.ЧикенБекон = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\..\Window1.xaml"
                this.ЧикенБекон.Click += new System.Windows.RoutedEventHandler(this.ЧикенБекон_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Биф_Ролл = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\..\Window1.xaml"
                this.Биф_Ролл.Click += new System.Windows.RoutedEventHandler(this.БифРолл_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }