public static LogTable CreateLogTable(string tableName, string guid) { LogTable lt = new LogTable(); lt.Name = tableName; lt.m_guid = guid; return(lt); }
public static LogTable CreateNewLogTable(string tableName) { LogTable lt = new LogTable(); lt.Name = tableName; lt.m_guid = Guid.NewGuid().ToString(); return(lt); }
public object Clone() { LogTable lt = new LogTable(); lt.m_guid = this.GUID; lt.Name = this.Name; foreach (LogTableItem lc in this.Columns) { lt.Columns.Add((LogTableItem)lc.Clone()); } return(lt); }
public void ReNameTable(string tableGuid, string newName) { LogTable lt = LogTable.NullLogTable; for (int i = Tables.Count - 1; i >= 0; i--) { if (string.Equals(Tables[i].GUID, tableGuid, StringComparison.OrdinalIgnoreCase)) { lt = Tables[i]; break; } } lt.Name = newName; }
public void AddTable(LogTable table) { Tables.Add((LogTable)table.Clone()); }