public static TreeNode GetActionNode() { SceneControlNode nodeAction = new SceneControlNode(); nodeAction.Text = nodeAction.KNXMainNumber + "." + nodeAction.KNXSubNumber + " " + nodeAction.DPTName; DatapointActionNode actionScene1 = new DatapointActionNode(); actionScene1.ActionName = actionScene1.Text = KNXResMang.GetString("Scene1"); actionScene1.Value = 0; DatapointActionNode actionScene2 = new DatapointActionNode(); actionScene2.ActionName = actionScene2.Text = KNXResMang.GetString("Scene2"); actionScene2.Value = 1; DatapointActionNode actionScene3 = new DatapointActionNode(); actionScene3.ActionName = actionScene3.Text = KNXResMang.GetString("Scene3"); actionScene3.Value = 2; nodeAction.Nodes.Add(actionScene1); nodeAction.Nodes.Add(actionScene2); nodeAction.Nodes.Add(actionScene3); return(nodeAction); }
public static TreeNode GetActionNode() { SwitchNode nodeAction = new SwitchNode(); nodeAction.Text = nodeAction.KNXMainNumber + "." + nodeAction.KNXSubNumber + " " + nodeAction.DPTName; DatapointActionNode actionOn = new DatapointActionNode(); actionOn.ActionName = actionOn.Text = KNXResMang.GetString("On"); actionOn.Value = 1; DatapointActionNode actionOff = new DatapointActionNode(); actionOff.ActionName = actionOff.Text = KNXResMang.GetString("Off"); actionOff.Value = 0; nodeAction.Nodes.Add(actionOn); nodeAction.Nodes.Add(actionOff); return(nodeAction); }
public static TreeNode GetActionNode() { ScalingNode nodeAction = new ScalingNode(); nodeAction.Text = nodeAction.KNXMainNumber + "." + nodeAction.KNXSubNumber + " " + nodeAction.DPTName; DatapointActionNode actionAdjustTo0per = new DatapointActionNode(); actionAdjustTo0per.ActionName = actionAdjustTo0per.Text = KNXResMang.GetString("AdjustTo0per"); actionAdjustTo0per.Value = 0; DatapointActionNode actionAdjustTo10per = new DatapointActionNode(); actionAdjustTo10per.ActionName = actionAdjustTo10per.Text = KNXResMang.GetString("AdjustTo10per"); actionAdjustTo10per.Value = 26; DatapointActionNode actionAdjustTo20per = new DatapointActionNode(); actionAdjustTo20per.ActionName = actionAdjustTo20per.Text = KNXResMang.GetString("AdjustTo20per"); actionAdjustTo20per.Value = 51; DatapointActionNode actionAdjustTo30per = new DatapointActionNode(); actionAdjustTo30per.ActionName = actionAdjustTo30per.Text = KNXResMang.GetString("AdjustTo30per"); actionAdjustTo30per.Value = 77; DatapointActionNode actionAdjustTo40per = new DatapointActionNode(); actionAdjustTo40per.ActionName = actionAdjustTo40per.Text = KNXResMang.GetString("AdjustTo40per"); actionAdjustTo40per.Value = 102; DatapointActionNode actionAdjustTo50per = new DatapointActionNode(); actionAdjustTo50per.ActionName = actionAdjustTo50per.Text = KNXResMang.GetString("AdjustTo50per"); actionAdjustTo50per.Value = 128; DatapointActionNode actionAdjustTo60per = new DatapointActionNode(); actionAdjustTo60per.ActionName = actionAdjustTo60per.Text = KNXResMang.GetString("AdjustTo60per"); actionAdjustTo60per.Value = 153; DatapointActionNode actionAdjustTo70per = new DatapointActionNode(); actionAdjustTo70per.ActionName = actionAdjustTo70per.Text = KNXResMang.GetString("AdjustTo70per"); actionAdjustTo70per.Value = 179; DatapointActionNode actionAdjustTo80per = new DatapointActionNode(); actionAdjustTo80per.ActionName = actionAdjustTo80per.Text = KNXResMang.GetString("AdjustTo80per"); actionAdjustTo80per.Value = 204; DatapointActionNode actionAdjustTo90per = new DatapointActionNode(); actionAdjustTo90per.ActionName = actionAdjustTo90per.Text = KNXResMang.GetString("AdjustTo90per"); actionAdjustTo90per.Value = 230; DatapointActionNode actionAdjustTo100per = new DatapointActionNode(); actionAdjustTo100per.ActionName = actionAdjustTo100per.Text = KNXResMang.GetString("AdjustTo100per"); actionAdjustTo100per.Value = 255; nodeAction.Nodes.Add(actionAdjustTo0per); nodeAction.Nodes.Add(actionAdjustTo10per); nodeAction.Nodes.Add(actionAdjustTo20per); nodeAction.Nodes.Add(actionAdjustTo30per); nodeAction.Nodes.Add(actionAdjustTo40per); nodeAction.Nodes.Add(actionAdjustTo50per); nodeAction.Nodes.Add(actionAdjustTo60per); nodeAction.Nodes.Add(actionAdjustTo70per); nodeAction.Nodes.Add(actionAdjustTo80per); nodeAction.Nodes.Add(actionAdjustTo90per); nodeAction.Nodes.Add(actionAdjustTo100per); return(nodeAction); }
public static TreeNode GetActionNode() { ControlDimmingNode nodeAction = new ControlDimmingNode(); nodeAction.Text = nodeAction.KNXMainNumber + "." + nodeAction.KNXSubNumber + " " + nodeAction.DPTName; DatapointActionNode actionIncreasing1per = new DatapointActionNode(); actionIncreasing1per.ActionName = actionIncreasing1per.Text = KNXResMang.GetString("Increasing1per"); actionIncreasing1per.Value = 0x0F; DatapointActionNode actionIncreasing3per = new DatapointActionNode(); actionIncreasing3per.ActionName = actionIncreasing3per.Text = KNXResMang.GetString("Increasing3per"); actionIncreasing3per.Value = 0x0E; DatapointActionNode actionIncreasing6per = new DatapointActionNode(); actionIncreasing6per.ActionName = actionIncreasing6per.Text = KNXResMang.GetString("Increasing6per"); actionIncreasing6per.Value = 0x0D; DatapointActionNode actionIncreasing12per = new DatapointActionNode(); actionIncreasing12per.ActionName = actionIncreasing12per.Text = KNXResMang.GetString("Increasing12per"); actionIncreasing12per.Value = 0x0C; DatapointActionNode actionIncreasing25per = new DatapointActionNode(); actionIncreasing25per.ActionName = actionIncreasing25per.Text = KNXResMang.GetString("Increasing25per"); actionIncreasing25per.Value = 0x0B; DatapointActionNode actionIncreasing50per = new DatapointActionNode(); actionIncreasing50per.ActionName = actionIncreasing50per.Text = KNXResMang.GetString("Increasing50per"); actionIncreasing50per.Value = 0x0A; DatapointActionNode actionIncreasing100per = new DatapointActionNode(); actionIncreasing100per.ActionName = actionIncreasing100per.Text = KNXResMang.GetString("Increasing100per"); actionIncreasing100per.Value = 0x09; DatapointActionNode actionDecreasing1per = new DatapointActionNode(); actionDecreasing1per.ActionName = actionDecreasing1per.Text = KNXResMang.GetString("Decreasing1per"); actionDecreasing1per.Value = 0x07; DatapointActionNode actionDecreasing3per = new DatapointActionNode(); actionDecreasing3per.ActionName = actionDecreasing3per.Text = KNXResMang.GetString("Decreasing3per"); actionDecreasing3per.Value = 0x06; DatapointActionNode actionDecreasing6per = new DatapointActionNode(); actionDecreasing6per.ActionName = actionDecreasing6per.Text = KNXResMang.GetString("Decreasing6per"); actionDecreasing6per.Value = 0x05; DatapointActionNode actionDecreasing12per = new DatapointActionNode(); actionDecreasing12per.ActionName = actionDecreasing12per.Text = KNXResMang.GetString("Decreasing12per"); actionDecreasing12per.Value = 0x05; DatapointActionNode actionDecreasing25per = new DatapointActionNode(); actionDecreasing25per.ActionName = actionDecreasing25per.Text = KNXResMang.GetString("Decreasing25per"); actionDecreasing25per.Value = 0x03; DatapointActionNode actionDecreasing50per = new DatapointActionNode(); actionDecreasing50per.ActionName = actionDecreasing50per.Text = KNXResMang.GetString("Decreasing50per"); actionDecreasing50per.Value = 0x02; DatapointActionNode actionDecreasing100per = new DatapointActionNode(); actionDecreasing100per.ActionName = actionDecreasing100per.Text = KNXResMang.GetString("Decreasing100per"); actionDecreasing100per.Value = 0x01; nodeAction.Nodes.Add(actionIncreasing1per); nodeAction.Nodes.Add(actionIncreasing3per); nodeAction.Nodes.Add(actionIncreasing6per); nodeAction.Nodes.Add(actionIncreasing12per); nodeAction.Nodes.Add(actionIncreasing25per); nodeAction.Nodes.Add(actionIncreasing50per); nodeAction.Nodes.Add(actionIncreasing100per); nodeAction.Nodes.Add(actionDecreasing1per); nodeAction.Nodes.Add(actionDecreasing3per); nodeAction.Nodes.Add(actionDecreasing6per); nodeAction.Nodes.Add(actionDecreasing12per); nodeAction.Nodes.Add(actionDecreasing25per); nodeAction.Nodes.Add(actionDecreasing50per); nodeAction.Nodes.Add(actionDecreasing100per); return(nodeAction); }