/// <summary> /// Updates the URL text control based on the values in this form's controls. /// </summary> private void UpdateUrlText() { try { txtUrl.Text = _requestService.BuildUrl(txtHost.Text, cmbApiVersion.Text, (int)cmbEndpoint.SelectedValue, txtApiKey.Text, chkUseSsl.Checked); } catch (Exception ex) { MessageBox.Show(ex.Message); } }