コード例 #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));
        }
コード例 #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));
        }
コード例 #3
0
ファイル: WaitWindow.cs プロジェクト: menglou/winformyunche
        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));
        }
コード例 #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();
 }
コード例 #5
0
 protected object ShowWaitingBox(EventHandler <WaitWindowEventArgs> workerMethod, string message)
 {
     return(WaitWindow.Show(workerMethod, message, new List <object>()));
 }
コード例 #6
0
ファイル: WaitWindow.cs プロジェクト: menglou/winformyunche
 public WaitWindowEventArgs(WaitWindow gui, List <object> args)
     : base()
 {
     this.Window    = gui;
     this.Arguments = args;
 }
コード例 #7
0
ファイル: WaitWindow.cs プロジェクト: menglou/winformyunche
        public static object Show(EventHandler <WaitWindowEventArgs> workerMethod, string message)
        {
            WaitWindow instance = new WaitWindow();

            return(instance.Show(workerMethod, message, new List <object>()));
        }
コード例 #8
0
ファイル: WaitWindow.cs プロジェクト: menglou/winformyunche
 public static object Show(EventHandler <WaitWindowEventArgs> workerMethod)
 {
     return(WaitWindow.Show(workerMethod, null));
 }