public static TreeNode GetActionNode() { ScalingNode nodeAction = new ScalingNode(); nodeAction.Text = nodeAction.KNXMainNumber + "." + nodeAction.KNXSubNumber + " " + nodeAction.Name; DatapointActionNode actionAdjustTo30per = new DatapointActionNode(); actionAdjustTo30per.Name = actionAdjustTo30per.Text = ResourceMng.GetString("AdjustTo30per"); actionAdjustTo30per.Value = 76; DatapointActionNode actionAdjustTo60per = new DatapointActionNode(); actionAdjustTo60per.Name = actionAdjustTo60per.Text = ResourceMng.GetString("AdjustTo60per"); actionAdjustTo60per.Value = 153; DatapointActionNode actionAdjustTo90per = new DatapointActionNode(); actionAdjustTo90per.Name = actionAdjustTo90per.Text = ResourceMng.GetString("AdjustTo90per"); actionAdjustTo90per.Value = 229; nodeAction.Nodes.Add(actionAdjustTo30per); nodeAction.Nodes.Add(actionAdjustTo60per); nodeAction.Nodes.Add(actionAdjustTo90per); return(nodeAction); }
public static TreeNode GetTypeNode() { ScalingNode nodeType = new ScalingNode(); nodeType.Text = nodeType.KNXMainNumber + "." + nodeType.KNXSubNumber + " " + nodeType.Name; return(nodeType); }