Example #1
0
 private void setSmetaDescriptionArguments(ref ust_LogSmetaDescription lsd)
 {
     lsd = isLoaded(lsd);
     if (lsd.Loaded)
     {
         lsd.LoadTime = DateTime.Parse(lsd.Smeta.Time);
     }
 }
Example #2
0
        private ust_LogSmetaDescription isLoaded(ust_LogSmetaDescription lsd)
        {
            string loaded = "Загружен";

            if (lsd.Smeta.Status == loaded)
            {
                lsd.Loaded = true;
            }
            else
            {
                lsd.Loaded = false;
            }
            return(lsd);
        }
Example #3
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;
        }