コード例 #1
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];
            }
        }
コード例 #2
0
ファイル: UMLUseCase.cs プロジェクト: nyulacska/tupux
        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");
            }
        }
コード例 #3
0
ファイル: UseCaseEdit.cs プロジェクト: emanuelshv/tupux
 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];
     }
 }