Beispiel #1
0
        public static LogTable CreateLogTable(string tableName, string guid)
        {
            LogTable lt = new LogTable();

            lt.Name   = tableName;
            lt.m_guid = guid;

            return(lt);
        }
Beispiel #2
0
        public static LogTable CreateNewLogTable(string tableName)
        {
            LogTable lt = new LogTable();

            lt.Name   = tableName;
            lt.m_guid = Guid.NewGuid().ToString();

            return(lt);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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;
        }
Beispiel #5
0
 public void AddTable(LogTable table)
 {
     Tables.Add((LogTable)table.Clone());
 }