Example #1
0
        public void Refresh(string filepath)
        {
            DetailMovie models = new DetailMovie();

            models.filepath = filepath;
            FileInfo fileInfo = new FileInfo(filepath);

            //获取创建日期
            string createDate = "";

            try { createDate = fileInfo.CreationTime.ToString("yyyy-MM-dd HH:mm:ss"); }
            catch { }
            if (createDate == "")
            {
                createDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            }

            models.id        = Identify.GetFanhao(fileInfo.Name);
            models.vediotype = (int)Identify.GetVedioType(models.id);
            models.scandate  = createDate;
            models.filesize  = fileInfo.Length;
            if (models != null)
            {
                DetailMovie = models;
            }
        }