Пример #1
0
 private void Profil_Load_1(object sender, System.EventArgs e)
 {
     Task.Run(() =>
     {
         Task <string> result = Requetes.GetInfo(Properties.Settings.Default.SERVER.ToString() + "/Utilisateur/GetById/" + id);
         JObject json         = JObject.Parse(result.Result);
         this.Invoke(new MethodInvoker(delegate
         {
             mail_value.Text   = json["MAIL"].ToString();
             pseudo_value.Text = json["PSEUDO"].ToString();
             pictureBox1.Image = Inscription.BytetoImage(Convert.FromBase64String(json["AVATAR"].ToString()));
         }));
     });
 }