private bool ValidateValues()
        {
            var chorusAccount = GetChorusAccount();

            if (string.IsNullOrEmpty(chorusAccount.Username))
            {
                MessageDlg.Show(this, Resources.EditChorusAccountDlg_ValidateValues_Username_cannot_be_blank);
                textUsername.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(chorusAccount.ServerUrl))
            {
                MessageDlg.Show(this, Resources.EditChorusAccountDlg_ValidateValues_Server_cannot_be_blank);
                textServerURL.Focus();
                return(false);
            }
            if (chorusAccount.GetKey() != _originalAccount.GetKey())
            {
                if (_existing.Select(existing => existing.GetKey()).Contains(chorusAccount.GetKey()))
                {
                    MessageDlg.Show(this, string.Format(Resources.EditChorusAccountDlg_ValidateValues_There_is_already_an_account_defined_for_the_user__0__on_the_server__1_, chorusAccount.Username, chorusAccount.ServerUrl));
                }
            }
            try
            {
                var uri = new Uri(chorusAccount.ServerUrl, UriKind.Absolute);
                if (uri.Scheme != "https" && uri.Scheme != "http") // Not L10N
                {
                    MessageDlg.Show(this, Resources.EditChorusAccountDlg_ValidateValues_Server_URL_must_start_with_https____or_http___);
                    textServerURL.Focus();
                    return(false);
                }
            }
            catch
            {
                MessageDlg.Show(this, Resources.EditChorusAccountDlg_ValidateValues_Invalid_server_URL_);
                textServerURL.Focus();
                return(false);
            }
            return(true);
        }