Beispiel #1
0
 private void DeleteSelectedPicBtn_Click(object sender, EventArgs e)
 {
     try
     {
         UpdateListPicturebox();
         StaticAlbum.DelatePic(SelectedPicListBox.SelectedIndex);
         UpdateListBox();
     }
     catch (ArgumentOutOfRangeException)
     {
     }
 }
Beispiel #2
0
 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 SelectedPicListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     StaticAlbum.DelatePic(SelectedPicListBox.SelectedIndex);
 }