Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public static LogApp CreateApp(string appName, string appGuid, bool isImportLogsFromFiles)
        {
            LogApp app = NullApplication;

            app.Name    = appName;
            app.AppGUID = appGuid;
            app.IsImportLogsFromFiles = isImportLogsFromFiles;

            return(app);
        }
Exemplo n.º 3
0
        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);
        }