Пример #1
0
 /// <summary>
 /// Restarts all existing views, once the UWKProcess has restarted
 /// </summary>
 public static void RestartAllViews()
 {
     UWKView[] views = UWKView.FindObjectsOfType(typeof(UWKView)) as UWKView[];
     foreach (UWKView v in views)
     {
         v.restart();
     }
 }
Пример #2
0
 /// <summary>
 /// Invalidates all views, generally in the response to an issue with a UWKProcess restart
 /// </summary>
 public static void InvalidateAllViews()
 {
     UWKView[] views = UWKView.FindObjectsOfType(typeof(UWKView)) as UWKView[];
     foreach (UWKView v in views)
     {
         v.invalidate();
     }
 }