private void ClosePWForm() { if (fPleaseWait != null) { fPleaseWait.CloseMe(); fPleaseWait = null; } }
private void ShowPWForm(string txtActivity, int initialProgress) { if (fPleaseWait == null) { fPleaseWait = new frmPleaseWait(txtActivity); fPleaseWait.StartPosition = FormStartPosition.CenterParent; fPleaseWait.Show(this); fPleaseWait.setProgress(initialProgress); } else { UpdatePWForm(txtActivity); } }