private void ajouter_Click(object sender, EventArgs e) { if (Ouverture.ShowDialog() == DialogResult.OK) { Liste.Images.Add(Image.FromFile(Ouverture.FileName)); } }
private void ouvrir_Click(object sender, EventArgs e) { if (Ouverture.ShowDialog() == DialogResult.OK) { StreamReader sr = new StreamReader(Ouverture.FileName); texte.Text = sr.ReadToEnd(); sr.Close(); } }