Exemple #1
0
        //-----------------------------------------------------------------------------------
        public CNFieldView(CNFieldController controller, CommandNodeEditor ownerEditor)
        {
            Controller        = controller;
            selectionListBox_ = new CarListBox(Controller, "FieldLB", false);
            ownerNode_        = ownerEditor.Data;

            Controller.WantsUpdate += controller.BuildListItems;
        }
        //-----------------------------------------------------------------------------------
        public CNFieldExtendedView(CNFieldController controller, CommandNodeEditor ownerEditor) :
            base(controller, ownerEditor)
        {
            nodesController_ = new CNNodesController(controller, ownerEditor);
            nodesListBox_    = new CarListBox(nodesController_, "FieldnodesLB", true);
            field_           = controller.Field;

            controller.WantsUpdate += nodesController_.SetSelectableNodes;
        }