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); } }