예제 #1
0
        public static TreeNode GetActionNode()
        {
            SceneControlNode nodeAction = new SceneControlNode();

            nodeAction.Text = nodeAction.KNXMainNumber + "." + nodeAction.KNXSubNumber + " " + nodeAction.Name;

            DatapointActionNode actionScene1 = new DatapointActionNode();

            actionScene1.Name  = actionScene1.Text = ResourceMng.GetString("Scene1");
            actionScene1.Value = 0;

            DatapointActionNode actionScene2 = new DatapointActionNode();

            actionScene2.Name  = actionScene2.Text = ResourceMng.GetString("Scene2");
            actionScene2.Value = 1;

            DatapointActionNode actionScene3 = new DatapointActionNode();

            actionScene3.Name  = actionScene3.Text = ResourceMng.GetString("Scene3");
            actionScene3.Value = 2;

            nodeAction.Nodes.Add(actionScene1);
            nodeAction.Nodes.Add(actionScene2);
            nodeAction.Nodes.Add(actionScene3);

            return(nodeAction);
        }
예제 #2
0
        public static TreeNode GetTypeNode()
        {
            SceneControlNode nodeType = new SceneControlNode();
            nodeType.Text = nodeType.KNXMainNumber + "." + nodeType.KNXSubNumber + " " + nodeType.Name;

            return nodeType;
        }
예제 #3
0
        public static TreeNode GetTypeNode()
        {
            SceneControlNode nodeType = new SceneControlNode();

            nodeType.Text = nodeType.KNXMainNumber + "." + nodeType.KNXSubNumber + " " + nodeType.Name;

            return(nodeType);
        }
예제 #4
0
        public static TreeNode GetActionNode()
        {
            SceneControlNode nodeAction = new SceneControlNode();
            nodeAction.Text = nodeAction.KNXMainNumber + "." + nodeAction.KNXSubNumber + " " + nodeAction.Name;

            DatapointActionNode actionScene1 = new DatapointActionNode();
            actionScene1.Name = actionScene1.Text = ResourceMng.GetString("Scene1");
            actionScene1.Value = 0;

            DatapointActionNode actionScene2 = new DatapointActionNode();
            actionScene2.Name = actionScene2.Text = ResourceMng.GetString("Scene2");
            actionScene2.Value = 1;

            DatapointActionNode actionScene3 = new DatapointActionNode();
            actionScene3.Name = actionScene3.Text = ResourceMng.GetString("Scene3");
            actionScene3.Value = 2;

            nodeAction.Nodes.Add(actionScene1);
            nodeAction.Nodes.Add(actionScene2);
            nodeAction.Nodes.Add(actionScene3);

            return nodeAction;
        }