public void Load(string listing, string field, List <BootFile> files) { XmlDbTable table = GetTable(listing); if (table != null) { if ((table.Rows == null) || (table.Rows.Count == 0)) { BooterLogger.AddError(mName + ": " + table + " table empty"); } else { BooterLogger.AddTrace(mName + ": Found " + listing + " = " + table.Rows.Count); foreach (XmlDbRow row in table.Rows) { BootFile file = new DataBootFile(mName, row.GetString(field), false); if (file.IsValid) { files.Add(file); } } } } else { BooterLogger.AddTrace(mName + ": No " + listing + " Table"); } }
public DataBootTable(DataBootFile file, string table) { mName = table; if (file != null) { mFile = file; mTable = file.GetTable(table); } }
public DataBootTable(DataBootFile file, string table) { mName = table; if (file != null) { mFile = file; mTable = file.GetTable(table); } }
public void Load(string listing, string field, List<BootFile> files) { XmlDbTable table = GetTable(listing); if (table != null) { if ((table.Rows == null) || (table.Rows.Count == 0)) { BooterLogger.AddError(mName + ": " + table + " table empty"); } else { BooterLogger.AddTrace(mName + ": Found " + listing + " = " + table.Rows.Count); foreach (XmlDbRow row in table.Rows) { BootFile file = new DataBootFile(mName, row.GetString(field), false); if (file.IsValid) { files.Add(file); } } } } else { BooterLogger.AddTrace(mName + ": No " + listing + " Table"); } }