private void ListToBrowser() { PhotoBrowser.Clear(); foreach (Photo P in ListPhoto) { PhotoBrowser.AddPhoto(P); } }
private void AddNewPhoto_Click(object sender, EventArgs e) { AjouterPhoto dlg = new AjouterPhoto(); dlg.User = Logged_User; if (dlg.ShowDialog() == DialogResult.OK) { PhotoBrowser.AddPhoto(dlg.photo); LoadPhoto(); } }