Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 22 "..\..\PrimaryWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DashboardButton_Click);

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

            #line 38 "..\..\PrimaryWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CollectButton_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 46 "..\..\PrimaryWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.IssuesButton_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 54 "..\..\PrimaryWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.VolumesButton_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 62 "..\..\PrimaryWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PublishersButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.DashboardControl = ((ComicHoarder.Controls.DashboardControl)(target));
                return;

            case 8:
                this.PublishersControl = ((ComicHoarder.Controls.PublishersControl)(target));
                return;

            case 9:
                this.VolumesControl = ((ComicHoarder.Controls.VolumesControl)(target));
                return;

            case 10:
                this.IssuesControl = ((ComicHoarder.Controls.IssuesControl)(target));
                return;

            case 11:
                this.IssuesToCollectControl = ((ComicHoarder.Controls.IssuesToCollectControl)(target));
                return;

            case 12:
                this.CollectControl = ((ComicHoarder.Controls.CollectControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 22 "..\..\PrimaryWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DashboardButton_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 30 "..\..\PrimaryWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.IssuesToCollectButton_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 38 "..\..\PrimaryWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CollectButton_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 46 "..\..\PrimaryWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.IssuesButton_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 54 "..\..\PrimaryWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.VolumesButton_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 62 "..\..\PrimaryWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PublishersButton_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.DashboardControl = ((ComicHoarder.Controls.DashboardControl)(target));
     return;
     case 8:
     this.PublishersControl = ((ComicHoarder.Controls.PublishersControl)(target));
     return;
     case 9:
     this.VolumesControl = ((ComicHoarder.Controls.VolumesControl)(target));
     return;
     case 10:
     this.IssuesControl = ((ComicHoarder.Controls.IssuesControl)(target));
     return;
     case 11:
     this.IssuesToCollectControl = ((ComicHoarder.Controls.IssuesToCollectControl)(target));
     return;
     case 12:
     this.CollectControl = ((ComicHoarder.Controls.CollectControl)(target));
     return;
     }
     this._contentLoaded = true;
 }