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; } }
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]; } }