示例#1
0
        public SYSRole(sys_role_rpc data, PNTreeViewItem parent = null) : base(parent)
        {
            _data = data;

            /*SYSRole tmp;
             * foreach (var element in data.children)
             * {
             *  tmp = new SYSRole(element, this);
             * }
             */
        }
示例#2
0
        public CMNode(cm_node_rpc data, PNTreeViewItem parent = null) : base(parent)
        {
            _data = data;
            CMNode tmp;

            foreach (var element in data.children)
            {
                // FIXME: Hack for correct parent
                if (element.parent == null)
                {
                    element.parent = data;
                }
                tmp = new CMNode(element, this);
            }
        }
示例#3
0
 public SYSUser(sys_user_rpc data, PNTreeViewItem parent = null) : base(parent)
 {
     _data = data;
 }
示例#4
0
 public SYSGroup(sys_group_rpc data, PNTreeViewItem parent = null) : base(parent)
 {
     _data = data;
 }
示例#5
0
 public PNTreeViewItem(PNTreeViewItem parent = null)
 {
     Parent   = parent;
     Children = new PNTreeViewItemList();
 }