示例#1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.Poster = ((PosterWPF.MainWindow)(target));
         return;
     }
     this._contentLoaded = true;
 }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Poster = ((PosterWPF.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.Poster.Closed += new System.EventHandler(this.Poster_Closed);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.Poster.Loaded += new System.Windows.RoutedEventHandler(this.Poster_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.Section = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 16 "..\..\MainWindow.xaml"
                this.AnimationMenu.Click += new System.Windows.RoutedEventHandler(this.AnimationMenu_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\MainWindow.xaml"
                this.Back.Click += new System.Windows.RoutedEventHandler(this.Back_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Menu = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 28 "..\..\MainWindow.xaml"
                this.SearchButton.Click += new System.Windows.RoutedEventHandler(this.SearchButton_Click);

            #line default
            #line hidden
                return;

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

            #line 32 "..\..\MainWindow.xaml"
                this.FilmsButton.Click += new System.Windows.RoutedEventHandler(this.FilmsButton_Click);

            #line default
            #line hidden
                return;

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

            #line 33 "..\..\MainWindow.xaml"
                this.ConcertsButton.Click += new System.Windows.RoutedEventHandler(this.ConcertsButton_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.ExhibitionButton = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.ExhibitionButton.Click += new System.Windows.RoutedEventHandler(this.ExhibitionButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.SettingsButton = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.SettingsButton.Click += new System.Windows.RoutedEventHandler(this.SettingsButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Calendar = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 12:
                this.MainBody = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.OpenCalendar = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }