Пример #1
0
        private void InputDeleted(StateMachineInputViewModel input)
        {
            foreach (var item in StateMachine.Transitions)
            {
                item.DeleteInput(input);
            }

            StateMachine.Inputs.Remove(input);
        }
        public void DeleteInput(StateMachineInputViewModel input)
        {
            if (Condition != null && Condition.SourceInputId.HasValue && Condition.SourceInputId.Value == input.Id)
            {
                Condition = null;
            }

            if (Condition != null && Condition.Conditions != null)
            {
                Condition.Conditions.DeleteInputFromConditions(input);
            }
        }
Пример #3
0
 private void ConnectorAdded(StateMachineInputViewModel connector)
 {
     StateMachine.Inputs.Add(connector);
     DirtyService.MarkDirty();
 }