Exemplo n.º 1
0
        private void FillingList()
        {
            FileSizeConverter fileSizeConverter = new FileSizeConverter();

            foreach (string sFileName in fileDialog.FileNames)
            {
                videoDataTempleteList.Add(new VideoDataTemplete()
                {
                    Directory    = sFileName,
                    VideoName    = RemoveSlash(sFileName),
                    Size         = fileSizeConverter.FileSizeConvert(new FileInfo(sFileName).Length),
                    CreationTime = new FileInfo(sFileName).CreationTime
                });
            }
            IListViewIndex.FillingListView(DataListView, videoDataTempleteList);
        }