Esempio n. 1
0
 /// <summary>
 /// Adds a new step
 /// </summary>
 /// <param name="uMLStepFlow"></param>
 public void AddStep(UMLStepFlow uMLStepFlow)
 {
     if (!Steps.Contains(uMLStepFlow))
     {
         Steps.Add(uMLStepFlow);
         NotifyPropertyChanged("AddStep");
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Removes a step
 /// </summary>
 /// <param name="uMLStepFlow"></param>
 public void RemoveStep(UMLStepFlow uMLStepFlow)
 {
     foreach (UMLStepFlow s in Steps)
     {
         if (s.Guid == uMLStepFlow.Guid)
         {
             Steps.Remove(s);
             NotifyPropertyChanged("RemoveStep");
             break;
         }
     }
 }