Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UCClient = ((App1.MyUserControl.ClientUserControl)(target));
                return;

            case 2:
                this.LUCProductBuy = ((App1.MyUserControl.ProductListUserControl)(target));
                return;

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

            case 4:
                this.LUCProductAvaiable = ((App1.MyUserControl.ProductListUserControl1)(target));
                return;

            case 5:
                this.UCProduct = ((App1.MyUserControl.ProductUserControl)(target));
                return;

            case 6:
                this.UCAddRemove = ((App1.MyUserControl.AddRemoveUserControl)(target));
                return;

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

            #line 30 "..\..\..\View\ClientView.xaml"
                this.navigation.Click += new System.Windows.RoutedEventHandler(this.navigation_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UCClient = ((App1.MyUserControl.ClientUserControl)(target));
                return;

            case 2:
                this.LUCProductBuy = ((App1.MyUserControl.ProductListUserControl)(target));
                return;

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

            case 4:
                this.LUCProductAvaiable = ((App1.MyUserControl.ProductListUserControl1)(target));
                return;

            case 5:
                this.UCProduct = ((App1.MyUserControl.ProductUserControl)(target));
                return;

            case 6:
                this.UCAddRemove = ((App1.MyUserControl.AddRemoveUserControl)(target));
                return;

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

            #line 31 "..\..\..\View\ClientView.xaml"
                this.navigation.Click += new System.Windows.RoutedEventHandler(this.navigation_Click);

            #line default
            #line hidden

            #line 31 "..\..\..\View\ClientView.xaml"
                this.navigation.MouseEnter += new System.Windows.Input.MouseEventHandler(this.navigation_MouseEnter);

            #line default
            #line hidden
                return;

            case 8:
                this.notificationDock = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 9:
                this.notification = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 10:
                this.title = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.message = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.buttons = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 13:
                this.yes = ((System.Windows.Controls.Button)(target));
                return;

            case 14:
                this.no = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }