Example #1
0
        private void btnMonsters_RetrieveList_Click(object sender, RoutedEventArgs e)
        {
            Status("Retrieving monster list from DDI Compendium...");
            DisableAll();
            CustomWebClient client = new CustomWebClient();

            client.DownloadFileCompleted   += new AsyncCompletedEventHandler(DownloadCompleted);
            client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(DownloadProgressChanged);
            client.DownloadFileAsync(new Uri(URL_LIST_MONSTER), Directory.GetCurrentDirectory() + "\\monster_list.xml");
        }
 private void btnMonsters_RetrieveList_Click(object sender, RoutedEventArgs e)
 {
     Status("Retrieving monster list from DDI Compendium...");
     DisableAll();
     CustomWebClient client = new CustomWebClient();
     client.DownloadFileCompleted += new AsyncCompletedEventHandler(DownloadCompleted);
     client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(DownloadProgressChanged);
     client.DownloadFileAsync(new Uri(URL_LIST_MONSTER), Directory.GetCurrentDirectory() + "\\monster_list.xml");
 }