public object ShowWaitingBox(EventHandler <WaitWindowEventArgs> workerMethod, string message, params object[] args) { List <object> arguments = new List <object>(); arguments.AddRange(args); return(WaitWindow.Show(workerMethod, message, arguments)); }
public object ShowWaitingBox(EventHandler <WaitWindowEventArgs> workerMethod) { Random ran = new Random(DateTime.Now.Millisecond); string message = this.iWaittingMessage[ran.Next(0, this.iWaittingMessage.Length)]; return(WaitWindow.Show(workerMethod, message)); }
public TXWaitingBox(WaitWindow parent) { InitializeComponent(); this.MaximizeBox = false; this.MinimizeBox = false; this.ControlBox = false; this.ShowInTaskbar = false; _Parent = parent; this.Opacity = 0.95f; this.labWaitMessage.Text = "正在处理,请稍候..." + "\n" + "Dear,Please wait a moment !"; this.txPanel1.BackEndColor = this.GetRandomColor(); ControlHelper.BindMouseMoveEvent(this.labWaitMessage); //加载的图片 this.loadImage.Image = LoadResource.GetRandomLoadImage(); }
public object ShowWaitingBox(EventHandler <WaitWindowEventArgs> workerMethod, string message) { return(WaitWindow.Show(workerMethod, message, new List <object>())); }
public WaitWindowEventArgs(WaitWindow gui, List <object> args) : base() { this.Window = gui; this.Arguments = args; }
public static object Show(EventHandler <WaitWindowEventArgs> workerMethod, string message) { WaitWindow instance = new WaitWindow(); return(instance.Show(workerMethod, message, new List <object>())); }
public static object Show(EventHandler <WaitWindowEventArgs> workerMethod) { return(WaitWindow.Show(workerMethod, null)); }