Exemplo n.º 1
0
 /// <summary>
 /// Create the publisher instance with the given actions.
 /// This method should only be called once, and before getInstance().
 /// </summary>
 /// <param name="publishStringAction">An Action that publishes the given string to the UI. This Action should invoke the actual update operation on the UI thread.</param>
 /// <param name="clearWindowAction">An Action that clears all debug strings from the UI. This Action should invoke the actual update operation on the UI thread.</param>
 public static void create(Action <String> publishStringAction, Action clearWindowAction)
 {
     System.Diagnostics.Debug.Assert(instance == null); //create should only be called once.
     instance = new UIDebugPublisher(publishStringAction, clearWindowAction);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create the publisher instance with the given actions.
 /// This method should only be called once, and before getInstance().
 /// </summary>
 /// <param name="publishStringAction">An Action that publishes the given string to the UI. This Action should invoke the actual update operation on the UI thread.</param>
 /// <param name="clearWindowAction">An Action that clears all debug strings from the UI. This Action should invoke the actual update operation on the UI thread.</param>
 public static void create(Action<String> publishStringAction, Action clearWindowAction)
 {
     System.Diagnostics.Debug.Assert(instance == null); //create should only be called once.
     instance = new UIDebugPublisher(publishStringAction, clearWindowAction);
 }