override public bool Delete(object child) { Step step = child as Step; if (step != null) { const string ignoreStateName = "Выполнение"; if (steps.IndexOf(step) == 0 && steps[0].Owner.name == ignoreStateName) { //Не удаляем шаг операции. return(false); } steps.Remove(step); return(true); } Action action = child as Action; if (action != null) { action.Clear(); return(false); } return(false); }
override public bool Delete(object child) { Action action = child as Action; if (action != null) { action.Clear(); } return(false); }