34 lines
833 B
C#
34 lines
833 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace DeiNiu.wms.win.utils
|
|
{
|
|
public partial class WaitingForm : Form
|
|
{
|
|
public WaitingForm()
|
|
{
|
|
InitializeComponent();
|
|
CheckForIllegalCrossThreadCalls = false;
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
} |