コード例 #1
0
 public void DownloadList()
 {
     try
     {
         Message = "Download online plugin informations";
         List <PluginInfo> infos = new List <PluginInfo>();
         var urls = _client.DownloadString(OnlineFileList).Split('\n');
         foreach (var url in urls)
         {
             using (MemoryStream stream = new MemoryStream(_client.DownloadData(url)))
             {
                 var res = PluginCollection.Load(stream);
                 infos.AddRange(res.Items);
             }
         }
         Message = "Download done";
     }
     catch (Exception ex)
     {
         Message  = "Error download list " + ex.Message;
         Progress = 0;
     }
 }