private void ajouterToolStripMenuItem_Click(object sender, EventArgs e) { Suivi s = new Suivi(int.Parse(textBox1.Text), Double.Parse(textBox2.Text), dateTimePicker1.Value, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text); Program.sui.Ls1.Add(s); vide(); }
private void button5_Click(object sender, EventArgs e) { if (radioButton1.Checked == true) { Suivi s = new Suivi(int.Parse(textBox1.Text), Double.Parse(textBox2.Text), dateTimePicker1.Value, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text); Program.sui.Ls1.Add(s); label10.Visible = false; vide(); } else if (radioButton2.Checked == true) { { Suivi s = new Suivi(int.Parse(textBox1.Text), Double.Parse(textBox2.Text), dateTimePicker1.Value, textBox3.Text, textBox4.Text, textBox5.Text); Program.sui.Ls1.Add(s); label8.Visible = false; textBox6.Visible = false; vide(); } } }