/// <summary> /// Adds a new step /// </summary> /// <param name="uMLStepFlow"></param> public void AddStep(UMLStepFlow uMLStepFlow) { if (!Steps.Contains(uMLStepFlow)) { Steps.Add(uMLStepFlow); NotifyPropertyChanged("AddStep"); } }
/// <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; } } }