public void Import(string path, out ImporterPkg outPkg) { var reader = GetReader(); var content = reader.Read(path + GetPath()) as XmlData; string errorMsg = string.Empty; ImporterXml(content, out outPkg, ref errorMsg); if (!CheckErrorMsg(errorMsg)) { return; } }
public void Import(string path,out ImporterPkg outPkg) { outPkg = null; var reader = GetReader(); ExcelData content = reader.Read(path + GetPath()) as ExcelData; string errMsg = string.Empty; AutoParasTable(content.DataList, ref errMsg); if (!CheckErrorMsg(errMsg)) { return; } // custom importer ImporteExcel(content, out outPkg, ref errMsg); if (!CheckErrorMsg(errMsg)) { return; } }
protected abstract void ImporterXml(XmlData data, out ImporterPkg outPkg, ref string errMsg);
protected abstract void ImporteExcel(ExcelData data, out ImporterPkg outPkg, ref string errMsg);