コード例 #1
0
        private void LbSearchresulltListbox_SelectedIndexChanged(object sender, EventArgs e)
        {
            string  name = lbSearchresulltListbox.SelectedItem.ToString();
            Picture pic  = StaticAlbum.GetPicture(name);

            StaticPicture.CopyActualPicture(pic);
            Update();
        }
コード例 #2
0
        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);
        }
コード例 #3
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)
     {
     }
 }
コード例 #4
0
 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)
     {
     }
 }