void checkAndCopy(string destinationPath)
{
String[] Files;
Files = Directory.GetFileSystemEntries(destinationPath);
foreach (string patchdir in Files)
{
if (patchdir.ToLower().EndsWith("language"))
copyDirectory(Path.Combine(destinationPath, "language"), SkinInfo.mpPaths.langBasePath);
if (patchdir.ToLower().EndsWith("skin"))
copyDirectory(Path.Combine(destinationPath, "skin"), SkinInfo.mpPaths.skinBasePath);
if (patchdir.ToLower().EndsWith("thumbs"))
copyDirectory(Path.Combine(destinationPath, "thumbs"), SkinInfo.mpPaths.thumbsPath);
if (patchdir.ToLower().EndsWith("database"))
copyDirectory(Path.Combine(destinationPath, "database"), SkinInfo.mpPaths.databasePath);
}
if (patchProgressBar.Value <= 90)
patchProgressBar.Value += 10;
else
patchProgressBar.Value = 100;
}