private void OnClickPreload(object sender, EventArgs e) { if (PreLoader.IsBusy) { return; } ProgressBar.Minimum = 1; ProgressBar.Maximum = listView1.Items.Count; ProgressBar.Step = 1; ProgressBar.Value = 1; ProgressBar.Visible = true; PreLoader.RunWorkerAsync(ProgressBar); }
private void OnClickPreload(object sender, EventArgs e) { if (PreLoader.IsBusy) { return; } ProgressBar.Minimum = 1; ProgressBar.Maximum = Gumps.GetCount(); ProgressBar.Step = 1; ProgressBar.Value = 1; ProgressBar.Visible = true; PreLoader.RunWorkerAsync(); }
public MainForm() { InitializeComponent(); Reporter = new Reporter(); //FISCA.Presentation.MotherForm.SetStatusBarMessage("初始化..."); InitializeSubjectRows(); InitializeBackgroundWorker(); InitializeSemester(); PreLoader.RunWorkerAsync(); }