Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid = ((MonaFramework.Controls.MonaGrid)(target));
                return;

            case 2:
                this.player = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 3:
                this.play = ((MonaFramework.Controls.MonaButton)(target));

            #line 18 "..\..\..\MainWindow.xaml"
                this.play.Click += new System.Windows.RoutedEventHandler(this.playMedia);

            #line default
            #line hidden
                return;

            case 4:
                this.pause = ((MonaFramework.Controls.MonaButton)(target));

            #line 19 "..\..\..\MainWindow.xaml"
                this.pause.Click += new System.Windows.RoutedEventHandler(this.pauseMedia);

            #line default
            #line hidden
                return;

            case 5:
                this.stop = ((MonaFramework.Controls.MonaButton)(target));

            #line 20 "..\..\..\MainWindow.xaml"
                this.stop.Click += new System.Windows.RoutedEventHandler(this.stopMedia);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.grid = ((MonaFramework.Controls.MonaGrid)(target));
     return;
     case 2:
     this.player = ((System.Windows.Controls.MediaElement)(target));
     return;
     case 3:
     this.play = ((MonaFramework.Controls.MonaButton)(target));
     
     #line 18 "..\..\..\MainWindow.xaml"
     this.play.Click += new System.Windows.RoutedEventHandler(this.playMedia);
     
     #line default
     #line hidden
     return;
     case 4:
     this.pause = ((MonaFramework.Controls.MonaButton)(target));
     
     #line 19 "..\..\..\MainWindow.xaml"
     this.pause.Click += new System.Windows.RoutedEventHandler(this.pauseMedia);
     
     #line default
     #line hidden
     return;
     case 5:
     this.stop = ((MonaFramework.Controls.MonaButton)(target));
     
     #line 20 "..\..\..\MainWindow.xaml"
     this.stop.Click += new System.Windows.RoutedEventHandler(this.stopMedia);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }