Exemple #1
0
 /// <summary>
 /// Ensure that the caller is executing in UI context.
 /// </summary>
 public static void EnsureNoInvokeRequired()
 {
     if (IsUiStateOK() && !KBase.IsInUi())
     {
         HandleError("Executing outside UI context", true);
     }
 }