public static LogApp CreateAppFromMemento(LogAppMemento memento) { LogApp app = NullApplication; app.Name = memento.LogAppName; app.IsImportLogsFromFiles = memento.IsImportLogsFromFile; app.Group = new LogAppGroup(memento.GroupName); return(app); }
public static LogApp CreateApp(string appName, string appGuid, bool isImportLogsFromFiles) { LogApp app = NullApplication; app.Name = appName; app.AppGUID = appGuid; app.IsImportLogsFromFiles = isImportLogsFromFiles; return(app); }
public object Clone() { LogApp la = new LogApp(); la.m_guid = this.AppGUID; la.Name = this.Name; la.IsImportLogsFromFiles = this.IsImportLogsFromFiles; la.Group = this.Group; foreach (LogTable lt in this.Tables) { la.Tables.Add((LogTable)lt.Clone()); } return(la); }