Esempio n. 1
0
 public static bool CheckDuplicateNIF(StandContainer standContainer, string NIF)
 {
     if ((from Cliente in standContainer.Clientes
          where Cliente.NIF.Equals(NIF)
          select Cliente).Count() >= 1 || NIF.Length != 9)
     {
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public static bool CheckDuplicatePhoneNumber(StandContainer standContainer, string phoneNumber)
 {
     if ((from Cliente in standContainer.Clientes
          where Cliente.Contacto.Equals(phoneNumber)
          select Cliente).Count() >= 1 || phoneNumber.Length != 9)
     {
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
 public static List <Cliente> SearchClientByNIF(StandContainer standContainer, string searchNIF)
 {
     return((from Cliente in standContainer.Clientes
             where Cliente.NIF.Contains(searchNIF)
             select Cliente).ToList());
 }
Esempio n. 4
0
 private void window_Load(object sender, EventArgs e)
 {
     standContainer = new StandContainer();
     UpdateStatusBar(sender, e);
 }