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); }
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); }
public static List <Cliente> SearchClientByNIF(StandContainer standContainer, string searchNIF) { return((from Cliente in standContainer.Clientes where Cliente.NIF.Contains(searchNIF) select Cliente).ToList()); }
private void window_Load(object sender, EventArgs e) { standContainer = new StandContainer(); UpdateStatusBar(sender, e); }