Esempio n. 1
0
        private void ShowPhotoBtn_Click(object sender, EventArgs e)
        {
            if (PhotoList.SelectedItems.Count != 1)
            {
                return;
            }

            var photo        = _photos[PhotoList.SelectedIndices[0]];
            var photoManager = new PhotoManager(photo);

            photoManager.Show();
        }
Esempio n. 2
0
        private void PhotoList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (PhotoList.SelectedItems.Count != 1)
            {
                return;
            }

            var photo        = _photos[PhotoList.SelectedIndices[0]];
            var photoManager = new PhotoManager(photo);

            photoManager.Show();
            Hide();
        }