private void FillFilesToListView() { List <CustomFileInfo> FileInfoList = new List <CustomFileInfo>(); foreach (string item in FilesFromFolders) { CustomFileInfo file = new CustomFileInfo(new FileInfo(item)); FileInfoList.Add(file); } FileListView.ItemsSource = FileInfoList; }
private void DisplayFiles(List <string> FilesToDisplay) { List <CustomFileInfo> FileInfoList = new List <CustomFileInfo>(); foreach (string item in FilesToDisplay) { CustomFileInfo file = new CustomFileInfo(new FileInfo(item)); FileInfoList.Add(file); } MedCont = new MediaPlayerController(this, myMedia, FilesToDisplay, 0); FilesFromFolders2 = FilesToDisplay; FileListView.ItemsSource = FileInfoList; }
private void ChangeCommonMediaInfo() { try { lbTitle.Content = Path.GetFileName(FilesFromFolders2[SelectedIndexListView]); CustomFileInfo cs = new CustomFileInfo(FilesFromFolders[SelectedIndexListView]); lbFileInfo4.Content = cs.Creation.ToString(); lbFileInfo6.Content = cs.Modification.ToString(); lbFileInfo1.Content = cs.FileSize.ToString(); lbFileInfo3.Content = cs.extension; } catch { } }