示例#1
0
        private void btnUseCaseSelect_Click(object sender, EventArgs e)
        {
            ItemSelect <UMLUseCase, UMLUseCaseCollection> useCaseSelect = new ItemSelect <UMLUseCase, UMLUseCaseCollection>(Iteration.UseCases);

            useCaseSelect.ShowDialog(this);
            if (useCaseSelect.DialogResult == DialogResult.OK)
            {
                Iteration.UseCases = useCaseSelect.SelectedList;
                foreach (UMLUseCase usecase in useCaseSelect.SelectedList)
                {
                    usecase.Iteration = this.Iteration;
                }
                this.useCasesBindingSource.DataSource = Iteration.UseCases;
            }
        }
示例#2
0
        private void btnSelectIteration_Click(object sender, EventArgs e)
        {
            UMLIterationCollection collection = new UMLIterationCollection();
            UMLIteration           iteration  = UseCase.GetIteration();

            if (iteration != null)
            {
                collection.Add(iteration);
            }
            ItemSelect <UMLIteration, UMLIterationCollection> iterationSelect = new ItemSelect <UMLIteration, UMLIterationCollection>(collection);

            iterationSelect.ShowDialog(this);
            if (iterationSelect.DialogResult == DialogResult.OK)
            {
                UseCase.IterationOld = UseCase.Iteration;
                UseCase.Iteration    = iterationSelect.SelectedList[0];
            }
        }