Exemplo n.º 1
0
 private async static void downloadImage(string url, string name)
 {
     var client = new WebClient();
     var stream = await client.OpenReadTaskAsync(new Uri(url, UriKind.Absolute));
     var bytes = ReadFully(stream);
     DataSaver<byte[]>.Remove(name);
     DataSaver<byte[]>.Save(name, bytes);
     Update();
 }
Exemplo n.º 2
0
 public static void Update()
 {
     DataSaver<SavedData>.Save("SavedData", SavedData);
 }