public WaitWindowGui(ArcWaitWindow parent) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); _parent = parent; }
/// <summary> /// Shows a wait window with the specified text while executing the passed method. /// </summary> /// <param name="workerMethod">Pointer to the method to execute while displaying the wait window.</param> /// <param name="message">The text to display.</param> /// <param name="args">Arguments to pass to the worker method.</param> /// <returns>The result argument from the worker method.</returns> public static object Show(EventHandler <ArcWaitWindowEventArgs> workerMethod, string message, params object[] args) { var arguments = new List <object>(); arguments.AddRange(args); var instance = new ArcWaitWindow(); return(instance.Show(workerMethod, message, arguments)); }
/// <summary> /// Shows a wait window with the specified text while executing the passed method. /// </summary> /// <param name="workerMethod">Pointer to the method to execute while displaying the wait window.</param> /// <param name="message">The text to display.</param> /// <returns>The result argument from the worker method.</returns> public static object Show(EventHandler <ArcWaitWindowEventArgs> workerMethod, string message) { var instance = new ArcWaitWindow(); return(instance.Show(workerMethod, message, new List <object>())); }
/// <summary> /// Initialises a new instance of the WaitWindowEventArgs class. /// </summary> /// <param name="gui">The associated WaitWindow instance.</param> /// <param name="args">A list of arguments to be passed.</param> public ArcWaitWindowEventArgs(ArcWaitWindow gui, List <object> args) { Window = gui; Arguments = args; }