예제 #1
0
파일: Ticker.cs 프로젝트: zhamppx97/maui
 public virtual void Remove(int handle, IDispatcher dispatcher)
 {
     dispatcher.BeginInvokeOnMainThread(() =>
     {
         RemoveTimeout(handle);
     });
 }
예제 #2
0
 public static void Dispatch(this IDispatcher dispatcher, Action action)
 {
     if (dispatcher != null)
     {
         if (dispatcher.IsInvokeRequired)
         {
             dispatcher.BeginInvokeOnMainThread(action);
         }
         else
         {
             action();
         }
     }
     else
     {
         if (Device.IsInvokeRequired)
         {
             Device.BeginInvokeOnMainThread(action);
         }
         else
         {
             action();
         }
     }
 }
예제 #3
0
 static private void UpdateStatus(string message, string toast, Label label, IDispatcher dispatcher)
 {
     dispatcher.BeginInvokeOnMainThread(() =>
     {
         label.Text = message;
     });
 }
예제 #4
0
 internal void Navigated(IDispatcher dispatcher)
 {
     dispatcher.BeginInvokeOnMainThread(() =>
     {
         ShowWebView = true;
         ShowLoading = false;
     });
 }