public void LoadCollections() { _iterations = getIterations(); loadIterationPrecedence(); _filesProject = getFilesProject(); LoadIterations(); }
public UMLIteration GetIteration() { UMLIterationCollection iterations = this.GetTagCollection <UMLIteration, UMLIterationCollection>(Constants.UMLProfile.ESTIMATION, Constants.UMLUseCase.TDS_ESTIMATION, "Iteration Associated"); if (iterations != null && iterations.Count > 0) { Iteration = iterations[0]; } return(Iteration); }
/// <summary> /// Initializes collections /// </summary> private void InitCollections() { addMessageBackgroundWorker(0, "Init import..."); Phases = new UMLPhaseCollection(); Iterations = new UMLIterationCollection(); Files = new UMLFileCollection(); UseCases = new UMLUseCaseCollection(); Collaborations = new UMLCollaborationCollection(); Packages = new UMLPackageCollection(); }
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]; } }
/// <summary> /// Initializes collections /// </summary> private void InitCollections() { addMessageBackgroundWorker(0, "Init import..."); Phases = new UMLPhaseCollection(); Iterations = new UMLIterationCollection(); Files = new UMLFileCollection(); UseCases = new UMLUseCaseCollection(); Collaborations = new UMLCollaborationCollection(); Packages= new UMLPackageCollection(); }