Beispiel #1
0
 void elem_MediaEnded(object sender, RoutedEventArgs e)
 {
     if (onComplete != null)
     {
         ui.Display disp = ui.Display.getInstance();
         disp.callSerially(onComplete);
     }
 }
Beispiel #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);
         }
     }
 }