public FunctionParameter AddFunctionParameters(string paramname, ACTDataType paramdatatype) { FunctionParameter NewFunctionParameter = new FunctionParameter() { FPName = paramname, FPDataType = paramdatatype }; base.Add(NewFunctionParameter); return(NewFunctionParameter); }
public DeviceProperty AddDeviceProperties(string id, string name, ACTDataType dt, bool ro) { DeviceProperty NewDeviceProperty = new DeviceProperty() { PropertyID = id, PropertyName = name, PropertyType = dt, ReadOnly = ro }; base.Add(NewDeviceProperty); return(NewDeviceProperty); }
private void LoadcbOperator(ACTDataType propertyType) { cbOperator.Items.Clear(); switch (propertyType) { case ACTDataType.dtstring: LoadStringOperator(); break; case ACTDataType.dtint: LoadIntOperator(); break; case ACTDataType.dtbool: LoadBoolOperator(); break; default: LoadIntOperator(); break; } }
public DeviceFunction AddDeviceFunctions(string id, string name, FunctionParameterCollection fpc, ACTDataType rt) { DeviceFunction NewDeviceFunction = new DeviceFunction() { FunctionID = id, FunctionName = name, allParameters = fpc, ReturnType = rt }; base.Add(NewDeviceFunction); return(NewDeviceFunction); }