private void comboBoxExtractorType_SelectedIndexChanged(object sender, EventArgs e) { int idx = comboBoxExtractorType.SelectedIndex; extractorType = (ExtractorType)idx; if (extractorType == ExtractorType.Yaws) { fileFilter = "htm files (*.htm)|*.htm"; } else { fileFilter = "htm files (*.html)|*.html"; } if (extractorType == ExtractorType.Perrys) { comboBoxSubstanceType.Visible = false; } else if (extractorType == ExtractorType.YawsOrganic) { comboBoxSubstanceType.Visible = false; substanceType = SubstanceType.Organic; thermPropType = ThermPropType.CriticalProp; } else { comboBoxSubstanceType.Visible = true; thermPropType = ThermPropType.CriticalProp; } }
private void CreateExtractor(string area) { var extractor = new ExtractorType(area, _container.Resolve <IPlanningDataExtractor>(area)); _extractors.Add(extractor); }