Ejemplo n.º 1
0
 void elem_MediaEnded(object sender, RoutedEventArgs e)
 {
     if (onComplete != null)
     {
         ui.Display disp = ui.Display.getInstance();
         disp.callSerially(onComplete);
     }
 }
Ejemplo n.º 2
0
 void elem_MediaEnded(object sender, RoutedEventArgs e)
 {
     if (completionHandlers != null)
     {
         ui.Display disp = ui.Display.getInstance();
         System.Collections.Generic.List <java.lang.Runnable> toRun = new System.Collections.Generic.List <java.lang.Runnable>();
         toRun.AddRange(completionHandlers);
         foreach (var completionHandler in toRun)
         {
             disp.callSerially(completionHandler);
         }
     }
 }