private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { Amr_Verification amr_verfication = new Amr_Verification(); String s = amr_verfication.verifier(int.Parse(comboBox1.SelectedItem.ToString())); richTextBox1.Text = s; }
static void Main(string[] args) { String DateComplete; int year; Console.Write("Ecrire la date de naissance SVP dans cette foramte dd-MM-yyyy : \n"); DateComplete = Console.ReadLine(); String[] split = DateComplete.Split('-'); int.TryParse(split[2], out year); Amr_Verification verifi = new Amr_Verification(); String s = verifi.verifier(year); Console.WriteLine(s); Console.ReadKey(); }