public async void ExecuteRestart_Click(object sender, EventArgs e) { OperationsPanel.Enabled = false; CredentialsPanel.Enabled = false; Response.Text = "Waiting for response.."; Status.Text = "Executing.."; Bolt myBolt = new Bolt(ApiKey.Text.Trim(), DeviceId.Text.Trim()); RequestURL.Text = BuildRequestUrl("restart", new List <string> { }, new List <string> { }); Response response = await myBolt.Restart(); Response.Text = response.ResponseString; Status.Text = "Ready"; OperationsPanel.Enabled = true; CredentialsPanel.Enabled = true; }