public ctlModels() { conversionObject = new ConversionObject(); if (this.Value == null) { this.Value = this.conversionObject.SetEnumObjectToString(ctlModelsEnum.status_only); } this.name = "ctlModels"; this.bTypeEnum = tBasicTypeEnum.Enum; this.id = this.type = "ctlModelsEnum"; Array valuesEnumArray = conversionObject.GetValuesEnumToArray(typeof(ctlModelsEnum)); this.EnumVal = new tEnumVal[valuesEnumArray.Length]; for (int x = 0; x < valuesEnumArray.Length; x++) { tEnumVal enumVal = new tEnumVal(); enumVal.ord = ((int)valuesEnumArray.GetValue(x)).ToString(); enumVal.Value = valuesEnumArray.GetValue(x).ToString(); this.EnumVal[x] = enumVal; } }
public multiplier() { conversionObject = new ConversionObject(); if (this.Value == null) { this.Value = this.conversionObject.SetEnumObjectToString(tUnitMultiplierEnum.a); } this.name = "multiplier"; this.bTypeEnum = tBasicTypeEnum.Enum; this.id = this.type = "multiplierEnum"; Array valuesEnumArray = conversionObject.GetValuesEnumToArray(typeof(tUnitMultiplierEnum)); this.EnumVal = new tEnumVal[valuesEnumArray.Length]; for (int x = 0; x < valuesEnumArray.Length; x++) { tEnumVal enumVal = new tEnumVal(); enumVal.ord = ((int)valuesEnumArray.GetValue(x)).ToString(); enumVal.Value = valuesEnumArray.GetValue(x).ToString(); this.EnumVal[x] = enumVal; } }