Exemplo n.º 1
0
        /// <summary>
        /// Get file details
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        private ImageHistroy GetFileInfo(string path)
        {
            var ih = new ImageHistroy
            {
                ImageName = Path.GetFileName(path),
                Location  = Path.GetFullPath(path),
                OldSize   = new FileInfo(path).Length
            };

            return(ih);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get file details
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        private ImageHistroy GetFileInfo(string path)
        {
            var ih = new ImageHistroy
            {
                ImageName = Path.GetFileName(path),
                Location = Path.GetFullPath(path),
                OldSize = new FileInfo(path).Length
            };

            return ih;
        }