Author: fejj
Date: 2007-11-09 13:25:38 -0500 (Fri, 09 Nov 2007)
New Revision: 89334

Modified:
   trunk/olive/class/agclr/System.Windows.Controls/ChangeLog
   trunk/olive/class/agclr/System.Windows.Controls/MediaElement.cs
Log:
2007-11-09  Jeffrey Stedfast  <[EMAIL PROTECTED]>

        * MediaElement.cs (InvokeMediaOpened): Always pass null as the
        eventArgs parameter as defined by the msdn docs.
        (InvokeMediaEnded): Same.
        (InvokeMediaFailed): Same.



Modified: trunk/olive/class/agclr/System.Windows.Controls/ChangeLog
===================================================================
--- trunk/olive/class/agclr/System.Windows.Controls/ChangeLog   2007-11-09 
18:18:15 UTC (rev 89333)
+++ trunk/olive/class/agclr/System.Windows.Controls/ChangeLog   2007-11-09 
18:25:38 UTC (rev 89334)
@@ -1,3 +1,10 @@
+2007-11-09  Jeffrey Stedfast  <[EMAIL PROTECTED]>
+
+       * MediaElement.cs (InvokeMediaOpened): Always pass null as the
+       eventArgs parameter as defined by the msdn docs.
+       (InvokeMediaEnded): Same.
+       (InvokeMediaFailed): Same.
+
 2007-11-08  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * MediaElement.cs: Fixed all of the remove events to not /add/ the

Modified: trunk/olive/class/agclr/System.Windows.Controls/MediaElement.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Controls/MediaElement.cs     
2007-11-09 18:18:15 UTC (rev 89333)
+++ trunk/olive/class/agclr/System.Windows.Controls/MediaElement.cs     
2007-11-09 18:25:38 UTC (rev 89334)
@@ -449,9 +449,9 @@
                {
                        EventHandler h = (EventHandler) 
events[MediaOpenedEvent];
                        if (h != null)
-                               h (this, EventArgs.Empty); // XXX
+                               h (this, null);
                }
-
+               
                private static void media_ended_cb (IntPtr target, IntPtr 
calldata, IntPtr closure)
                {
                        ((MediaElement) Helper.GCHandleFromIntPtr 
(closure).Target).InvokeMediaEnded ();
@@ -461,9 +461,9 @@
                {
                        EventHandler h = (EventHandler) events[MediaEndedEvent];
                        if (h != null)
-                               h (this, EventArgs.Empty); // XXX
+                               h (this, null);
                }
-
+               
                private static void media_failed_cb (IntPtr target, IntPtr 
calldata, IntPtr closure)
                {
                        ((MediaElement) Helper.GCHandleFromIntPtr 
(closure).Target).InvokeMediaFailed ();
@@ -471,9 +471,9 @@
                
                private void InvokeMediaFailed ()
                {
-                       EventHandler h = (EventHandler)events[MediaFailedEvent];
+                       EventHandler h = (EventHandler) 
events[MediaFailedEvent];
                        if (h != null)
-                               h (this, EventArgs.Empty); // XXX
+                               h (this, null);
                }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to