Exemple #1
0
        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));
        }
Exemple #2
0
        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));
        }
Exemple #3
0
 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();
 }
Exemple #4
0
 public object ShowWaitingBox(EventHandler <WaitWindowEventArgs> workerMethod, string message)
 {
     return(WaitWindow.Show(workerMethod, message, new List <object>()));
 }
Exemple #5
0
 public WaitWindowEventArgs(WaitWindow gui, List <object> args)
     : base()
 {
     this.Window    = gui;
     this.Arguments = args;
 }
Exemple #6
0
        public static object Show(EventHandler <WaitWindowEventArgs> workerMethod, string message)
        {
            WaitWindow instance = new WaitWindow();

            return(instance.Show(workerMethod, message, new List <object>()));
        }
Exemple #7
0
 public static object Show(EventHandler <WaitWindowEventArgs> workerMethod)
 {
     return(WaitWindow.Show(workerMethod, null));
 }