protected override void OnShow()
{
string gamePath = ConfigurationManager.GetGamePath(ProfileManager.CurrentProfile.GameModel);
if (Directory.Exists(gamePath + SCREENSHOTS_DIR))
{
if (Directory.GetFiles(gamePath + SCREENSHOTS_DIR, "*.jpg").Length > 0)
{
if (!IsGalleryInitialized || GalleryModel.Count() != Directory.GetFiles(gamePath + SCREENSHOTS_DIR, "*.jpg").Length)
{
UpdateThumbs(gamePath);
EmptyText.Visibility = System.Windows.Visibility.Hidden;
}
return;
}
}
EmptyText.Visibility = System.Windows.Visibility.Visible;
}