private void simpleButton2_Click(object sender, EventArgs e) { citation c = new citation(); observateur o = new Enfant(s); c.Desabonnee(o); Random aleatoire = new Random(); i = aleatoire.Next(1, Data.Length); label1.Text = Data[i]; }
private void simpleButton1_Click(object sender, EventArgs e) { citation c = new citation(); observateur o = new Enfant(s); c.Abonnee(o); c.Notifier(); if (simpleButton1.Text == "S'abonner") { if (i < Data.Length) { label1.Text = Data[i]; i++; } } }