override public ITreeViewItem Insert() { Action newAction = InsertNewAction(); newAction.AddParent(this); return(newAction); }
override public ITreeViewItem Insert() { Device.DeviceType[] devTypes = null; Device.DeviceSubType[] devSubTypes = null; subActions.First()? .GetDisplayObjects(out devTypes, out devSubTypes, out _); var newAction = new Action(GroupDefaultName, owner, string.Empty, devTypes, devSubTypes); newAction.DrawStyle = DrawStyle; subActions.Add(newAction); newAction.AddParent(this); return(newAction); }