예제 #1
0
파일: UMLPhase.cs 프로젝트: nyulacska/tupux
 public void LoadCollections()
 {
     _iterations = getIterations();
     loadIterationPrecedence();
     _filesProject = getFilesProject();
     LoadIterations();
 }
예제 #2
0
        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);
        }
예제 #3
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();
 }
예제 #4
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];
            }
        }
예제 #5
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");
            }
        }
예제 #6
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];
     }
 }
예제 #7
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();
 }