private IEnumerable <FileInfo> GetCommonFiles()
 {
     try
     {
         CommonFolder.Refresh();
         return(CommonFolder.EnumerateFiles("*", SearchOption.AllDirectories));
     }
     catch (Exception ex)
     {
         MessageBox.Show(Framework.StringFormat.Format(Functions.SLM.Translate(nameof(Properties.Resources.SteamApp_GetCommonFilesError)), new { AppName, CommonFolderFullPath = CommonFolder.FullName, ExceptionMessage = ex.Message }));
         return(null);
     }
 }
Exemplo n.º 2
0
 public List <FileInfo> GetCommonFiles()
 {
     try
     {
         CommonFolder.Refresh();
         return(CommonFolder.EnumerateFiles("*", SearchOption.AllDirectories).ToList());
     }
     catch (Exception ex)
     {
         MessageBox.Show($"An error happened while populating files at common directory for game: {AppName} - Directory:\n{CommonFolder.FullName}\nError:\n{ex.Message}");
         return(null);
     }
 }