示例#1
0
        public FormModifyRequirement(int requirementId)
        {
            InitializeComponent();
            requirement = requirementRepository.GetRequirementById(requirementId);
            currentlyAttachedFeature = featureRepository.GetFeatureById(requirement.FeatureId); // Gets added as default.

            foreach (Feature feature in featureRepository.GetAll(requirement.ProjectId))
            {
                FeatureComboBox.Items.Add(feature.Title);
            }

            FeatureComboBox.SelectedItem = featureRepository.GetFeatureById(requirement.FeatureId).Title;
            StatementTextBox.Text        = requirement.Statement;
        }
        private void FormModifyRequirement_Load(object sender, EventArgs e)
        {
            this.CenterToParent();

            List <Feature> myF = F.GetAll(selectedRequirement.ProjectId);

            this.featsList.Text = F.GetFeatureById(selectedRequirement.FeatureId).Title;
            this.statBox.Text   = R.GetRequirementById(selectedRequirement.id).Statement;

            this.featsList.Text = F.GetFeatureById(selectedRequirement.FeatureId).Title;

            foreach (Feature f in myF)
            {
                this.featsList.Items.Add(f.Title);
            }
        }
示例#3
0
 public FormModifyFeature(int featureId)
 {
     feature = featureRepository.GetFeatureById(featureId);
     InitializeComponent();
     this.TitleTextBox.Text = feature.Title;
     this.CenterToScreen();
 }