Example #1
0
 private void posterPictureBox_DoubleClick(object sender, EventArgs e)
 {
     if (ChooseImage.ShowDialog() == DialogResult.OK)
     {
         posterPictureBox.Image = Image.FromFile(ChooseImage.FileName);
         label13.Visible        = false;
     }
 }
Example #2
0
 private void iconPictureBox_DoubleClick(object sender, EventArgs e)
 {
     if (ChooseImage.ShowDialog() == DialogResult.OK)
     {
         iconPictureBox.Image = Image.FromFile(ChooseImage.FileName);
         publishersBindingSource.EndEdit();
         Program.context.SaveChanges();
     }
 }
Example #3
0
 private void iconPictureBox_Click(object sender, EventArgs e)
 {
     if (ChooseImage.ShowDialog() != DialogResult.OK)
     {
         return;
     }
     iconPictureBox.Image = Image.FromFile(ChooseImage.FileName);
     online_protectionsBindingSource.EndEdit();
     Program.context.SaveChanges();
 }
Example #4
0
 private void pictureBox1_DoubleClick(object sender, EventArgs e)
 {
     if (state != 1)
     {
         return;
     }
     if (ChooseImage.ShowDialog() != DialogResult.OK)
     {
         return;
     }
     pictureBox1.Image = Image.FromFile(ChooseImage.FileName);
     label13.Visible   = false;
 }
 private void OpenImage()
 {
     ChooseImage.InitialDirectory = Path.GetDirectoryName(Preferences.CurrentImage);
     ChooseImage.FileName         = Preferences.CurrentImage;
     ChooseImage.Filter           = "Images|*.jpg;*.gif;*.png;*.jpeg";
     if (ChooseImage.ShowDialog() == DialogResult.OK)
     {
         var path     = ChooseImage.FileName;
         var images   = GetImages(path);
         var siblings = GetSiblings(path);
         _images   = images.Result;
         _siblings = siblings.Result;
         LoadImage(path);
     }
 }