Exemple #1
0
        private void ListToBrowser()
        {
            PhotoBrowser.Clear();

            foreach (Photo P in ListPhoto)
            {
                PhotoBrowser.AddPhoto(P);
            }
        }
Exemple #2
0
        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();
            }
        }