public void LoadLASFile(ConnectParameters connector, string fileText) { string versionInfo = ""; string wellInfo = ""; string curveInfo = ""; string parameterInfo = ""; string dataInfo = ""; string[] sections = fileText.Split("~", StringSplitOptions.RemoveEmptyEntries); foreach (string section in sections) { string flag = section.Substring(0, 1); if (flag == "V") { versionInfo = section; } if (flag == "W") { wellInfo = section; } if (flag == "C") { curveInfo = section; } if (flag == "P") { parameterInfo = section; } if (flag == "A") { dataInfo = section; } } _dbConn.OpenConnection(connector); GetVersionInfo(versionInfo); GetHeaderInfo(wellInfo); GetCurveInfo(curveInfo); GetDataInfo(dataInfo); LoadLogs(); _dbConn.CloseConnection(); }
public void CloseIndex() { _dbConn.CloseConnection(); }