コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 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 { }
 }