Esempio n. 1
0
 async public static Task SetText(string text, int time, CancellationToken token)
 {
     TextSpot.Text = "";
     foreach (char s in text)
     {
         if (token.IsCancellationRequested)
         {
             TextSpot.Text = text;
             break;
         }
         TextSpot.Text += s;
         if (s == ' ')
         {
             continue;
         }
         await Task.Delay(time);
     }
     TextAnimationComplete?.Invoke();
 }
Esempio n. 2
0
 public static void SetText(string text)
 {
     TextSpot.Text = text;
     TextAnimationComplete?.Invoke();
 }