Ejemplo n.º 1
0
        private void AddElement()
        {
            if (DB == null)
            {
                DB = new List <db_record>();
            }

            db_record rec = new db_record();

            rec.Logs = new List <db_logfileRecord>();
            ++CurrentIndex;
            rec.Index = CurrentIndex;
            DB.Add(rec);
        }
Ejemplo n.º 2
0
        private void AddSmetaInfo(int index, ust_LogSmetaDescription lsd)
        {
            db_record      dbr = DB.ElementAt(index);
            db_smetaRecord sr  = new db_smetaRecord();

            sr.Code = lsd.Smeta.Code;

            sr.DateLoad = lsd.LoadTime;
            sr.Name     = lsd.Smeta.Name;
            sr.Object   = lsd.Smeta.Object;
            sr.Project  = lsd.Smeta.Project;
            sr.Loaded   = lsd.Loaded;
            dbr.Smeta   = sr;
            DB[index]   = dbr;
        }