Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PetListControl = ((MyPets.PetList)(target));
                return;

            case 2:
                this.petlist = ((System.Windows.Controls.ListBox)(target));

            #line 15 "..\..\..\View\PetList.xaml"
                this.petlist.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.PetList_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 17 "..\..\..\View\PetList.xaml"
                this.Acc.Click += new System.Windows.RoutedEventHandler(this.Acc_Click);

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

            #line 25 "..\..\..\View\WinMain.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PetListButton);

            #line default
            #line hidden
                return;

            case 2:

            #line 28 "..\..\..\View\WinMain.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_MAP);

            #line default
            #line hidden
                return;

            case 3:

            #line 30 "..\..\..\View\WinMain.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_CreatePet);

            #line default
            #line hidden
                return;

            case 4:
                this.StackAcc = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.acc = ((MyPets.PetsAcc)(target));
                return;

            case 6:
                this.StackPet = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 7:
                this.list = ((MyPets.PetList)(target));
                return;
            }
            this._contentLoaded = true;
        }