Exemple #1
0
 private void ResetMemberGroupBox()
 {
     FirstNameValue.Clear();
     LastNameValue.Clear();
     EmailValue.Clear();
     CellphoneValue.Clear();
 }
 public TechnicianDTO(Guid technicianId, PersonNameValue name, PersonNameValue lastname, string cI, PhoneNumberValue phone, EmailValue email)
 {
     TechnicianId = technicianId;
     Name         = name;
     Lastname     = lastname;
     CI           = cI;
     Phone        = phone;
     Email        = email;
 }
Exemple #3
0
 public Technician(PersonNameValue name, PersonNameValue lastname, string ci, PhoneNumberValue phone, EmailValue email)
 {
     CheckRule(new NotNullRule <string>(ci));
     TechnicianId = Guid.NewGuid();
     Name         = name;
     Lastname     = lastname;
     CI           = ci;
     Phone        = phone;
     Email        = email;
 }
Exemple #4
0
 public Client(PersonNameValue name, PersonNameValue lastname, PhoneNumberValue phone, EmailValue email, string address)
 {
     CheckRule(new NotNullRule <string>(address));
     ClientId = Guid.NewGuid();
     Name     = name;
     Lastname = lastname;
     Phone    = phone;
     Email    = email;
     Address  = address;
 }
Exemple #5
0
 public void StringValidationCompleted(object param)
 {
     if (Regex.IsMatch(EmailValue.ToString(), EmailValidationString))
     {
         ValidationBorderBrush = Brushes.Transparent;
         AddLog("Validated : " + EmailValue.ToString() + " (Valid Input)");
     }
     else
     {
         ValidationBorderBrush = Brushes.Red;
         AddLog("Validated : " + EmailValue.ToString() + " (InValid Input)");
     }
 }
Exemple #6
0
 public Tecnico(
     string nombres,
     string apellidos,
     string ci,
     string profesion,
     string telefono,
     string correo)
 {
     Id        = Guid.NewGuid();
     Nombres   = nombres;
     Apellidos = apellidos;
     Ci        = ci;
     Profesion = profesion;
     Telefono  = telefono;
     Correo    = correo;
 }