Example #1
0
 public static void ToggleGlow(Action RefreshCallback, GlowClass Variable, bool GlowType, int Duration = 500)
 {
     Variable.ClassName = GetGlowClass(GlowType);
     RefreshCallback();
     Task.Run(() =>
     {
         WaitAndResetGlow(RefreshCallback, Variable, Duration);
     });
 }
Example #2
0
 static void WaitAndResetGlow(Action RefreshCallback, GlowClass Variable, int Duration)
 {
     Task.Delay(Duration).Wait();
     Variable.ClassName = string.Empty;
     RefreshCallback();
 }