Ejemplo n.º 1
0
 private void CleanControls()
 {
     UsernameTextBox.Text  = string.Empty;
     PasswordTextBox.Text  = string.Empty;
     FirstnameTextBox.Text = string.Empty;
     LastnameTextBox.Text  = string.Empty;
     DNITextBox.Text       = string.Empty;
     EmailTextBox.Text     = string.Empty;
     client = Domain.Users.Client.CreateClient();
     client.Credentials.IsActive = true;
 }
Ejemplo n.º 2
0
        private void GetClientData(DataTable clientInfo)
        {
            var row = clientInfo.Rows[0];

            client = Domain.Users.Client.CreateClient(row["id_cliente"].ToString(),
                                                      row["nombre_cliente"].ToString(), row["apellido_cliente"].ToString(), row["DNI"].ToString());
            client.Credentials.UserId            = row["id_usuario"].ToString();
            client.Credentials.Username          = row["username"].ToString();
            client.Credentials.Password          = row["password"].ToString();
            client.Credentials.EncriptedPassword = row["password"].ToString();
            client.Credentials.Email             = row["Email"].ToString();
            client.Credentials.IsActive          = int.Parse(row["is_active"].ToString()) == (int)UserStatus.Active;
            client.Profile.ProfileId             = int.Parse(row["id_rol"].ToString());
            client.Profile.ProfileName           = row["Rol"].ToString();
        }