Пример #1
0
        public FunctionParameter AddFunctionParameters(string paramname, ACTDataType paramdatatype)
        {
            FunctionParameter NewFunctionParameter = new FunctionParameter()
            {
                FPName     = paramname,
                FPDataType = paramdatatype
            };

            base.Add(NewFunctionParameter);
            return(NewFunctionParameter);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }