Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.main_canvas = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.top_grid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.emergency = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\MainWindow.xaml"
     this.emergency.Click += new System.Windows.RoutedEventHandler(this.emergency_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.startEmergency = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\MainWindow.xaml"
     this.startEmergency.Click += new System.Windows.RoutedEventHandler(this.startEmergency_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.cancelEmergency = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.cancelEmergency.Click += new System.Windows.RoutedEventHandler(this.cancelEmergency_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.stopEmergency = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\MainWindow.xaml"
     this.stopEmergency.Click += new System.Windows.RoutedEventHandler(this.stopEmergency_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.schedule = ((System.Windows.Controls.Button)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.schedule.Click += new System.Windows.RoutedEventHandler(this.schedule_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.dvd = ((System.Windows.Controls.Button)(target));
     
     #line 32 "..\..\MainWindow.xaml"
     this.dvd.Click += new System.Windows.RoutedEventHandler(this.dvd_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.help = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\MainWindow.xaml"
     this.help.Click += new System.Windows.RoutedEventHandler(this.help_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.player = ((Broadcaster.Player)(target));
     return;
     case 11:
     this.schedule_list = ((Broadcaster.ScheduleList)(target));
     return;
     case 12:
     this.bottom_grid = ((System.Windows.Controls.Grid)(target));
     return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.main_canvas = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.top_grid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 17 "..\..\MainWindow.xaml"
                this.emergency.Click += new System.Windows.RoutedEventHandler(this.emergency_Click);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\MainWindow.xaml"
                this.startEmergency.Click += new System.Windows.RoutedEventHandler(this.startEmergency_Click);

            #line default
            #line hidden
                return;

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

            #line 24 "..\..\MainWindow.xaml"
                this.cancelEmergency.Click += new System.Windows.RoutedEventHandler(this.cancelEmergency_Click);

            #line default
            #line hidden
                return;

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

            #line 26 "..\..\MainWindow.xaml"
                this.stopEmergency.Click += new System.Windows.RoutedEventHandler(this.stopEmergency_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\MainWindow.xaml"
                this.schedule.Click += new System.Windows.RoutedEventHandler(this.schedule_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\MainWindow.xaml"
                this.help.Click += new System.Windows.RoutedEventHandler(this.help_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.player = ((Broadcaster.Player)(target));
                return;

            case 11:
                this.schedule_list = ((Broadcaster.ScheduleList)(target));
                return;

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