コード例 #1
0
 private void FillGrid()
 {
     foreach (Feature feat in _FakeFeatureRepository.GetAll(this.selectedProjectId))
     {
         dataGrid.Rows.Add(feat.Id, feat.Title);
     }
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
            }
        }