예제 #1
0
        private void btncompleteregisteration_Click(object sender, EventArgs e)
        {
            Boolean validationerror;

            validationerror = validatecontrol();
            if (!validationerror.Equals(true))
            {
                StringBuilder message       = new StringBuilder();
                Registration  registration  = populateDataObject();
                ServiceBroker servicebroker = new ServiceBroker();
                registration = servicebroker.CreateAccount(registration);
                DisableControl();
                message.Append("Registration Successfull!!!");
                message.AppendLine("");
                message.AppendLine("User ID: " + registration.userid);
                message.AppendLine("Password: "******"Please consider changing your password immediately");
                MessageBox.Show(message.ToString(), "Alert");
                lblregistration.Visible = true;
                lblregno.Text           = registration.userid;
                lblregno.Visible        = true;
            }
        }