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]; } }
public void Save() { base.Save(); foreach (UMLCollaboration col in Collaborations) { col.Save(); } if (IterationOld != null) { IterationOld.RemoveUseCaseToTag(this); } if (Iteration != null) { Iteration.AddUseCaseToTag(this); this.ClearTagCollection(Constants.UMLProfile.ESTIMATION, Constants.UMLUseCase.TDS_ESTIMATION, "Iteration Associated"); UMLIterationCollection collection = new UMLIterationCollection(); collection.Add(Iteration); this.SaveTagCollection <UMLIteration, UMLIterationCollection>(collection, Constants.UMLProfile.ESTIMATION, Constants.UMLUseCase.TDS_ESTIMATION, "Iteration Associated"); } }
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]; } }