public PlaylistItem() { dtStartReal = DateTime.MinValue; dtStopReal = DateTime.MinValue; _cAdvertSCR = null; _cClipSCR = null; bFileExist = true; bFileIsImage = false; }
public Clip[] ClipsSCRGet(Clip[] aClips) { List<Clip> aRetVal = new List<Clip>(); DBInteract cDBI = new DBInteract(); string sClipsPath = "NULL"; (new Logger()).WriteDebug("ClipsSCRGet: [in_count:" + aClips.Length + "]"); try { //List<Clip> aSource = cDBI.ClipsSCRGet(); userspace.Helper cHelper = new userspace.Helper(); sClipsPath = _ahStoragesSCR.Values.FirstOrDefault(o => o.Contains("clips")); if (sClipsPath != null) foreach (Clip cClip in aClips) { if (cHelper.FileExist(sClipsPath + cClip.sFilename)) { cClip.sDuration = cClip.nFramesQty.ToFramesString(); cClip.bLocked = cClip.sRotation == "Стоп" ? true : false; //PREFERENCES cClip.sStoragePath = sClipsPath; //PREFERENCES aRetVal.Add(cClip); } } } catch (Exception ex) { (new Logger()).WriteError(ex); } (new Logger()).WriteDebug("ClipsSCRGet: [out_count:" + aRetVal.Count + "][path:" + sClipsPath + "]"); return aRetVal.ToArray(); }