Пример #1
0
        //-----------------------------------------------------------------------------------
        public CNFieldExtendedView(CNFieldController controller, CommandNodeEditor ownerEditor) :
            base(controller, ownerEditor)
        {
            nodesController_ = new CNNodesController(controller, ownerEditor);
            nodesListBox_    = new CRListBox(nodesController_, "FieldnodesLB", true);
            field_           = controller.Field;

            controller.WantsUpdate += nodesController_.SetSelectableNodes;
        }
Пример #2
0
        //-----------------------------------------------------------------------------------
        public CNNodesController(CNFieldController fController, CommandNodeEditor ownerEditor)
        {
            fController_ = fController;
            field_       = fController.Field;
            manager_     = CNManager.Instance;
            hierarchy_   = manager_.Hierarchy;
            ownerNode_   = ownerEditor.Data;

            listCommandNodeAllowed_ = new List <CommandNode>();
            listCommandNodeCurrent_ = new List <CommandNode>();

            listSelectedIdx_ = new List <int>();
            listTreeNodeAux_ = new List <CRTreeNode>();

            SetSelectableNodes();
        }