public parameter AddParameter(string Name, object Value, fieldType FieldType, inoutType InOut, int Size = 0) { if (this.parameters == null) this.parameters = new parameters(); if (this.parameters.parameter == null) this.parameters.parameter = new List<parameter>(); var parm = new parameter() { name = Name, type = FieldType, inout = InOut }; var temp = this.parameters.parameter.Where(a => a.name == Name).FirstOrDefault(); if (temp != null) this.parameters.parameter.Remove(temp); this.parameters.parameter.Add(parm); parm.Text = new List<string>(); if(Size != 0) { parm.size = Size; parm.sizeSpecified = true; } if (Value != null) parm.Text.Add(Value.ToString()); return parm; }
public parameter() { this.textField = new List<string>(); this.regxField = new List<string>(); this.forUpdateField = true; this.forDisplayField = true; this.lockedField = false; this.inoutField = inoutType.@in; }
public parameter AddParameter(string Name, object Value, fieldType FieldType, inoutType InOut) { return AddParameter(Name, Value, FieldType, InOut, 0); }