public String GetFiledValue(Int32 order, char deleimiter) { try { return(CurrentDataLine.Split(deleimiter)[order]); } catch (Exception) { } return(null); }
public String GetFiledValue(String name) { foreach (Control ctrl in pnlFileds.Controls) { if (ctrl is FiledStructure) { if (((FiledStructure)ctrl).FieldName == name) { if (((FiledStructure)ctrl).Length == 0) { return(null); } else { return(CurrentDataLine.Substring(((FiledStructure)ctrl).Pos, ((FiledStructure)ctrl).Length)); } } } } return(null); }