private void DownloadAllMapsButton_OnClick(object sender, RoutedEventArgs e) { var messageBoxResult = MessageBox.Show( "Warning: As I haven't implemented threading yet, the UI will freeze while all maps download. This will take a long time but you will be notified when it's finished. Continue anyway?", "Continue?", MessageBoxButton.YesNo, MessageBoxImage.Warning); if (messageBoxResult == MessageBoxResult.No) { return; } foreach (var map in AppState.LethsMaps) { map.Download(); } LethamyrsMapsUserControl.RefreshChildren(); MessageBox.Show("All maps downloaded"); }
private void RefreshLethamyrsMaps() { AppState.RefreshLethsMaps(); LethamyrsMapsUserControl.RefreshListedMaps(AppState.LethsMaps); }