public MainForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); _pleaseWait = new PleaseWaitForm(); }
void ViewDataTbClick(object sender, EventArgs e) { if (tableDataBW.IsBusy) { return; } tableDataBW.RunWorkerAsync(_selectedTableID); _pleaseWait = new PleaseWaitForm(); _pleaseWait.ShowDialog(); }
private void OpenTPSFile() { if (openFileDialog1.ShowDialog() != DialogResult.OK) { return; } if (fileInfoBW.IsBusy) { return; } _tpsFilename = openFileDialog1.FileName; fileInfoBW.RunWorkerAsync(openFileDialog1.FileName); //show the please wait _pleaseWait = new PleaseWaitForm(); _pleaseWait.ShowDialog(); }
void ExportToCSVBtnClick(object sender, EventArgs e) { if (exportBW.IsBusy) { return; } try{ System.IO.FileInfo fi = new System.IO.FileInfo(_tpsFilename); exportFolder.SelectedPath = fi.DirectoryName; }catch (Exception) {} if (exportFolder.ShowDialog() != DialogResult.OK) { return; } exportBW.RunWorkerAsync(new object[] { _selectedTableID, exportFolder.SelectedPath }); _pleaseWait = new PleaseWaitForm(); _pleaseWait.ShowDialog(); }