private void LbSearchresulltListbox_SelectedIndexChanged(object sender, EventArgs e) { string name = lbSearchresulltListbox.SelectedItem.ToString(); Picture pic = StaticAlbum.GetPicture(name); StaticPicture.CopyActualPicture(pic); Update(); }
private void AllPicsListBox_SelectedIndexChanged(object sender, EventArgs e) { string name = AllPicsListBox.SelectedItem.ToString(); Picture pic = StaticAlbum.GetPicture(name); LittlePictureBox.Image = pic.Bitmap; SelectedPicListBox.Items.Add(AllPicsListBox.SelectedItem); StaticAlbum.AddSelecctedPic(name); }
private void SelectedPicListBox_SelectedIndexChanged(object sender, EventArgs e) { try { string name = SelectedPicListBox.SelectedItem.ToString(); Picture pic = StaticAlbum.GetPicture(name); LittlePictureBox.Image = pic.Bitmap; StaticAlbum.DelatePic(SelectedPicListBox.SelectedIndex); } catch (ArgumentOutOfRangeException) { } }
private void LbPictureListBox_SelectedIndexChanged(object sender, EventArgs e) { try { string name = lbPictureListBox.SelectedItem.ToString(); Picture pic = StaticAlbum.GetPicture(name); StaticPicture.CopyActualPicture(pic); Update(); } catch (NullReferenceException) { } }