ldj/epickx/基类/WaitForm1.cs

58 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraWaitForm;
namespace DeiNiu.wms.win
{
public partial class WaitForm1 : WaitForm
{
public WaitForm1()
{
InitializeComponent();
this.progressPanel1.AutoHeight = true;
SetText("正在执行,请耐心等待....");
}
private delegate void SetTextHandler(string text);
public void SetText(string text)
{
if (this.progressPanel1.InvokeRequired)
{
this.Invoke(new SetTextHandler(SetText), text);
}
else
{
//this.progressPanel1.Text = text;
SetDescription(text);
}
}
#region Overrides
public override void SetCaption(string caption)
{
base.SetCaption(caption);
this.progressPanel1.Caption = caption;
}
public override void SetDescription(string description)
{
base.SetDescription(description);
this.progressPanel1.Description = description;
}
public override void ProcessCommand(Enum cmd, object arg)
{
base.ProcessCommand(cmd, arg);
}
#endregion
public enum WaitFormCommand
{
}
}
}