public partial class frmLogin : Form
{
BackgroundWorker initData;
public frmLogin()
{
InitializeComponent();
initData = new BackgroundWorker();
InitializeBackgoundWorker();
}
private void InitializeBackgoundWorker()
{
initData.DoWork += new DoWorkEventHandler(init_DoWork);
initData.RunWorkerAsync();
}
void init_DoWork(object sender, DoWorkEventArgs e)
{
Data.Read_Data();
ReportData.fillData();
}
No comments:
Post a Comment