public void StartForm() { DisableEnableUI(); ProgressBar.ProgressBarForm ProgressBar = new ProgressBar.ProgressBarForm(); scfc ObjectDatabase = this; ProgressBar.ProgressBarFormBackgroundWorker.RunWorkerAsync(ObjectDatabase); }
private void btnOk_Click(object sender, EventArgs e) { DisableEnableUI(); ProgressBar.ProgressBarForm ProgressBar = new ProgressBar.ProgressBarForm(); scfc ObjectDatabase = this; ProgressBar.BGWQueryToDataBase.RunWorkerAsync(ObjectDatabase); this.Show(); }