void UpdatePictureListBox() { lbPictureListBox.Items.Clear(); foreach (string name in StaticAlbum.ShowNames()) { lbPictureListBox.Items.Add(name); } }
private void LbPictureListBox_MouseHover(object sender, EventArgs e) { lbPictureListBox.Items.Clear(); foreach (string name in StaticAlbum.ShowNames()) { lbPictureListBox.Items.Add(name); } }
void UpdateListPicturebox() { AllPicsListBox.Items.Clear(); foreach (string name in StaticAlbum.ShowNames()) { AllPicsListBox.Items.Add(name); } SelectedPicListBox.Items.Clear(); foreach (string name in StaticAlbum.ShowSelectedNames()) { SelectedPicListBox.Items.Add(name); } }
private void AllPicsListBox_MouseHover(object sender, EventArgs e) { AllPicsListBox.Items.Clear(); foreach (string name in StaticAlbum.ShowNames()) { AllPicsListBox.Items.Add(name); } SelectedPicListBox.Items.Clear(); foreach (string name in StaticAlbum.ShowSelectedNames()) { SelectedPicListBox.Items.Add(name); } }
//PICTURE SUBMENU EVENTS----------------------------------------------------------------------------------------------------------------------- private void LbPictureListBox_MouseHover(object sender, EventArgs e) { try { lbPictureListBox.Items.Clear(); foreach (string name in StaticAlbum.ShowNames()) { lbPictureListBox.Items.Add(name); } } catch (NullReferenceException) { } }