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

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