/// <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<WaitWindowEventArgs> workerMethod, string message, params object[] args){ List<object> arguments = new List<object>(); arguments.AddRange(args); WaitWindow instance = new WaitWindow(); 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<WaitWindowEventArgs> workerMethod, string message){ WaitWindow instance = new WaitWindow(); return instance.Show(workerMethod, message, new List<object>()); }