private async void button2_Click_1Async(object sender, EventArgs e) { HttpClient client = new HttpClient(); string pw = EncryptionDecryption.ComputeSha256Hash(textBox3.Text); var uri = new Uri(string.Format("http://apupay.azurewebsites.net/api/Shop?username="******"&password="******"application/json")); response = client.GetAsync(uri).Result; if (response.StatusCode == System.Net.HttpStatusCode.Accepted) { string x = await response.Content.ReadAsStringAsync(); ShopMenu sm = new ShopMenu() { userID = userid, itemJson = x }; sm.Show(); this.Hide(); } }
public AddInventory(ShopMenu shopMenu) { InitializeComponent(); shop = shopMenu; }