示例#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 11 "..\..\..\Window4.xaml"
                this.Кока_кола.Click += new System.Windows.RoutedEventHandler(this.F1);

            #line default
            #line hidden
                return;

            case 3:
                this.Фанта = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\..\Window4.xaml"
                this.Фанта.Click += new System.Windows.RoutedEventHandler(this.F2);

            #line default
            #line hidden
                return;

            case 4:
                this.Спрайт = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\..\Window4.xaml"
                this.Спрайт.Click += new System.Windows.RoutedEventHandler(this.F3);

            #line default
            #line hidden
                return;

            case 5:
                this.Чай = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\..\Window4.xaml"
                this.Чай.Click += new System.Windows.RoutedEventHandler(this.F4);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 8:
                this.Лёд = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            case 10:
                this.ОкноВывода = ((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.Напитки = ((WpfApplication6.ОкноНапитков)(target));
     return;
     case 2:
     this.Кока_кола = ((System.Windows.Controls.Button)(target));
     
     #line 11 "..\..\..\Window4.xaml"
     this.Кока_кола.Click += new System.Windows.RoutedEventHandler(this.F1);
     
     #line default
     #line hidden
     return;
     case 3:
     this.Фанта = ((System.Windows.Controls.Button)(target));
     
     #line 12 "..\..\..\Window4.xaml"
     this.Фанта.Click += new System.Windows.RoutedEventHandler(this.F2);
     
     #line default
     #line hidden
     return;
     case 4:
     this.Спрайт = ((System.Windows.Controls.Button)(target));
     
     #line 13 "..\..\..\Window4.xaml"
     this.Спрайт.Click += new System.Windows.RoutedEventHandler(this.F3);
     
     #line default
     #line hidden
     return;
     case 5:
     this.Чай = ((System.Windows.Controls.Button)(target));
     
     #line 14 "..\..\..\Window4.xaml"
     this.Чай.Click += new System.Windows.RoutedEventHandler(this.F4);
     
     #line default
     #line hidden
     return;
     case 6:
     this.Ок = ((System.Windows.Controls.Button)(target));
     
     #line 15 "..\..\..\Window4.xaml"
     this.Ок.Click += new System.Windows.RoutedEventHandler(this.Ок_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.Отмена = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\..\Window4.xaml"
     this.Отмена.Click += new System.Windows.RoutedEventHandler(this.Отмена_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.Лёд = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 9:
     this.Объем = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 10:
     this.ОкноВывода = ((System.Windows.Controls.ListBox)(target));
     return;
     }
     this._contentLoaded = true;
 }