예제 #1
0
        private void buttonQuery_Click(object sender, EventArgs e)
        {
            string  profile;
            JObject j;
            bool    verified = false;
            string  owner    = textBoxAccount.Text;

            if (owner.Contains("@"))
            {
                owner    = ProfileContractHelper.QueryOwner(owner);
                verified = true;
            }
            j       = ProfileContractHelper.QueryByAccount(owner);
            profile = j.ToString();
            string email = j["email"].AsString();

            if (email != "" && !verified)
            {
                JObject j1     = ProfileContractHelper.Query(email);
                string  email1 = j1["email"].AsString();
                verified = email1.Equals(email);
            }
            textBoxProfile.Text          = profile;
            labelVerificationStatus.Text = verified ? "Yes" : "No";
            textBoxAddress.Text          = owner;
        }
예제 #2
0
        private void RefreshCurrentAccountProfile()
        {
            string  owner    = comboBoxAccounts.Text;
            JObject j        = ProfileContractHelper.QueryByAccount(owner);
            string  profile  = j.ToString();
            string  email    = j["email"].AsString();
            bool    verified = false;

            if (email != "")
            {
                JObject j1     = ProfileContractHelper.Query(email);
                string  email1 = j1["email"].AsString();
                verified = email1.Equals(email);
            }
            textBoxProfile.Text          = profile;
            labelVerificationStatus.Text = verified ? "Yes" : "No";
            linkLabelVerifyLink.Visible  = !verified && email != "";
            if (linkLabelVerifyLink.Visible)
            {
                emailVerifyReqParams = new Dictionary <string, string>()
                {
                    { "email", email },
                    { "owner", owner },
                };
            }
        }