Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow1 = ((lab6_7.MainWindow)(target));
                return;

            case 2:
                this.LabelMenu = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 40 "..\..\MainWindow.xaml"
                this.ButtonOutputBasket.Click += new System.Windows.RoutedEventHandler(this.ButtonOutputBasket_Click);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\MainWindow.xaml"
                this.ButtonEditBasket.Click += new System.Windows.RoutedEventHandler(this.ButtonEditBasket_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 7:
                this.ButtonRU = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 8:
                this.ComboBoxThemes = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.ButtonExitApplication = ((lab6_7.UserButton)(target));
                return;

            case 10:
                this.StackPanelExitConfirmation = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 11:
                this.CustomControlTextBoxExit = ((lab6_7.CustomControlExitConfirmation)(target));
                return;

            case 12:
                this.ButtonCacnelExit = ((System.Windows.Controls.Button)(target));

            #line 105 "..\..\MainWindow.xaml"
                this.ButtonCacnelExit.Click += new System.Windows.RoutedEventHandler(this.ButtonCancelExit_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.StackPanelMainFrame = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow1 = ((lab6_7.MainWindow)(target));
                return;

            case 2:
                this.LabelMenu = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 37 "..\..\MainWindow.xaml"
                this.ButtonOutputBasket.Click += new System.Windows.RoutedEventHandler(this.ButtonOutputBasket_Click);

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\MainWindow.xaml"
                this.ButtonEditBasket.Click += new System.Windows.RoutedEventHandler(this.ButtonEditBasket_Click);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\MainWindow.xaml"
                this.ButtonAddGood.Click += new System.Windows.RoutedEventHandler(this.ButtonAddGood_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 7:
                this.ButtonRU = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

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

            #line 63 "..\..\MainWindow.xaml"
                this.ButtonExitApplication.Click += new System.Windows.RoutedEventHandler(this.ButtonExitApplication_Click);

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