protected override bool ChampsValides() { if (RequetesSQL.SQLLireCompte(textBoxCompteId.Text) != null) { return(true); } return(false); }
public static bool OuvrirSession(string p_matricule) { try { compte = RequetesSQL.SQLLireCompte(p_matricule); return(true); } catch { return(false); } }
private void textBoxCompteId_TextChanged(object sender, EventArgs e) { BoutonOK.Enabled = IsDigitsOnly(textBoxCompteId.Text) && RequetesSQL.SQLLireCompte(textBoxCompteId.Text) != null; }
public Compte Extraire() => RequetesSQL.SQLLireCompte(textBoxCompteId.Text == "" ? listBoxTousLesComptes.SelectedItem.GetHashCode().ToString() : textBoxCompteId.Text);