Beispiel #1
0
        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");
        }
Beispiel #2
0
 private void RefreshLethamyrsMaps()
 {
     AppState.RefreshLethsMaps();
     LethamyrsMapsUserControl.RefreshListedMaps(AppState.LethsMaps);
 }