public BoiteReception(int i, Accueil a, int btn) { InitializeComponent(); this.i = i; this.a = a; this.btn = btn; }
private void bcon_Click(object sender, EventArgs e) { compte a = reche(); if (a != null && tmdp.Text == a.mdps) { m = temail.Text; // MessageBox.Show("Bienvenue"); temail.Clear(); tmdp.Clear(); Accueil at = new Accueil(m); at.ShowDialog(); } else if (a != null && a.mdps != tmdp.Text) { MessageBox.Show("mot de pass incorrect"); } else { MessageBox.Show("Ce compte n'existe pas"); } }
public Profil(Accueil a) { InitializeComponent(); this.a = a; }