private void btnSend_Click(object sender, EventArgs e) { btnSend.Enabled = false; PostPackageBuilder postVars = new PostPackageBuilder(); postVars.AddVariable("name", txtMessage.Text); if (!http.IsBusy) { http.Post(txtAddress.Text, postVars); } }
private void btnSendTest2_Click(object sender, EventArgs e) { btnSendTest2.Enabled = false; PostPackageBuilder postVars = new PostPackageBuilder(); string code = rsa.Encrypt(txtMessage2.Text); postVars.AddVariable("code", code); txtEncrypted2.Text = code; if (!http2.IsBusy) { http2.Post(txtAddress2.Text, postVars); } }