private void ComponentBuilderForm_Load(object sender, EventArgs e) { worker = new BackgroundWorker(); worker.WorkerSupportsCancellation = true; worker.WorkerReportsProgress = true; worker.DoWork += bw_getOptions; worker.RunWorkerCompleted += bw_getOptionsComplete; worker.ProgressChanged += bw_ProgressChanged; manager = new DBManager(this.RevitDocument); foundInModel = manager.RetrieveWallInfo(); foundInModel.AddRange(manager.RetrieveRoofingInfo()); foundInModel.AddRange(manager.RetrieveFloorInfo()); if (foundInModel.Count > 0) calculateAreas_Volumes(foundInModel); foreach (Assembly assem in Assemblies.Values) { if (!cboFoundInModel.Items.Contains(assem)) cboFoundInModel.Items.Add(assem); } }