Exemplo n.º 1
0
        override public ITreeViewItem Insert()
        {
            Action newAction = InsertNewAction();

            newAction.AddParent(this);
            return(newAction);
        }
Exemplo n.º 2
0
        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);
        }