Exemplo n.º 1
0
        public void BindApplicationToUpdate()
        {
            AgentInfoSetupModel ModelAgent;

            ModelAgent = client.GetAgentByID(ApplicationID);
            if (ModelAgent != null)
            {
                txtsurname.Text       = ModelAgent.Surname;
                txtfullname.Text      = ModelAgent.Fullname;
                txtpercentage.Text    = ModelAgent.percentage.ToString("#,0.00");
                txtcontactnumber.Text = ModelAgent.ContactNumber;
                txtcode.Text          = ModelAgent.Code;
                txtEmail.Text         = ModelAgent.Email;
                txtaddress1.Text      = ModelAgent.Address1;
                txtaddress2.Text      = ModelAgent.Address2;
                txtaddress3.Text      = ModelAgent.Address3;
                txtaddress4.Text      = ModelAgent.Address4;
            }
            btnSubmite.Text = "Update";
        }