private void FillGrid() { foreach (Feature feat in _FakeFeatureRepository.GetAll(this.selectedProjectId)) { dataGrid.Rows.Add(feat.Id, feat.Title); } }
public FormRequirementSelect(int selectedProjectId) { InitializeComponent(); CenterToScreen(); this.selectedProjectId = selectedProjectId; FakeFeatureRepository fakeFeature = new FakeFeatureRepository(); List <Feature> featureList = fakeFeature.GetAll(this.selectedProjectId); foreach (Feature feat in featureList) { featureSelectComboBox.Items.Add(feat.Title); } }
public void fillDropDown() { List <Feature> features = _FakeFeatureRepository.GetAll(this.activeProjectId); foreach (Feature feature in features) { dropDownFeatures.Items.Add(feature.Title); } if (action == ActionTypes.Modify) { Feature requirementFeature = _FakeFeatureRepository.GetFeatureById(modifyRequirement.FeatureId); this.dropDownFeatures.SelectedIndex = dropDownFeatures.Items.IndexOf(requirementFeature.Title); } }