private void Refresh_Click(object sender, RoutedEventArgs e)
{
try
{
BitmapImage source = new BitmapImage();
source.BeginInit();
source.UriSource = new Uri(snapshot);
source.CacheOption = BitmapCacheOption.OnLoad;
source.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
source.EndInit();
SnapshotImg.Source = source;
}
catch (System.Exception ex1)
{
TaskDialog.Show("Error!", "exception: " + ex1);
}
}