/// <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) { cWaitWindow instance = new cWaitWindow(); System.Drawing.Font font = new System.Drawing.Font("", 9, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); return(instance.Show(workerMethod, message, font, new System.Drawing.Color(), false, new List <object>())); }
public cWaitBase(cWaitWindow parent) { // // The InitializeComponent() call is required for Windows Forms designer support. // this._Parent = parent; }
/// <summary> /// / /// </summary> /// <param name="workerMethod"></param> /// <param name="message"></param> /// <param name="font"></param> /// <param name="args"></param> /// <returns></returns> public static object Show(EventHandler <WaitWindowEventArgs> workerMethod, string message, System.Drawing.Font font, params object[] args) { List <object> arguments = new List <object>(); arguments.AddRange(args); cWaitWindow instance = new cWaitWindow(); System.Drawing.Color color = new System.Drawing.Color(); return(instance.Show(workerMethod, message, font, color, false, arguments)); }
public static object Show(EventHandler <WaitWindowEventArgs> workerMethod, string message, bool CloseOnComplete, params object[] args) { List <object> arguments = new List <object>(); arguments.AddRange(args); cWaitWindow instance = new cWaitWindow(); System.Drawing.Font font = new System.Drawing.Font("Calibri", 9, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); return(instance.Show(workerMethod, message, font, new System.Drawing.Color(), CloseOnComplete, arguments)); }
public frmWaitMemo(cWaitWindow parent) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); progressPanel1.LookAndFeel.UseDefaultLookAndFeel = false; // Specify the skin. progressPanel1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Skin; progressPanel1.LookAndFeel.SkinName = "Basic"; this._Parent = parent; //this.BackColor = Color.Fuchsia; //this.TransparencyKey = Color.Fuchsia; }
/// <summary> /// Initialises a new intance 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 WaitWindowEventArgs(cWaitWindow GUI, List <object> args) : base() { this._Window = GUI; this._Arguments = args; }