示例#1
0
            public static LogTablePuls ToLogTablePlus(LogTable t)
            {
                LogTablePuls p = new LogTablePuls();

                p.GUID = t.GUID;
                p.Name = t.Name;

                return(p);
            }
示例#2
0
            public static LogTable FromLogTablePlus(LogTablePuls t)
            {
                LogTable p = new LogTable(t.GUID);

                p.Name = t.Name;

                if (t.Columns != null && t.Columns.Count > 0)
                {
                    foreach (LogTableItemPlus lt in t.Columns)
                    {
                        p.Columns.Add(FromLogTableItemPlus(lt));
                    }
                }

                return(p);
            }