private static void GetFiles(string dir, string pattern, IsolatedStorageFile storeFile)
{
string fileString = System.IO.Path.GetFileName(pattern);
string[] files = storeFile.GetFileNames(pattern);
try
{
for (int i = 0; i < storeFile.GetFileNames(dir + "/" + fileString).Length; i++)
{
//Files are prefixed with "--"
//Add to the list
//listDir.Add("--" + dir + "/" + storeFile.GetFileNames(dir + "/" + fileString)[i]);
Debug.WriteLine("--" + dir + "/" + storeFile.GetFileNames(dir + "/" + fileString)[i]);
}
}
catch (IsolatedStorageException ise)
{
Debug.WriteLine("An IsolatedStorageException exception has occurred: " + ise.InnerException);
}
catch (Exception e)
{
Debug.WriteLine("An exception has occurred: " + e.InnerException);
}
}