Example #1
0
 private void btnSearchImage_Click(object sender, EventArgs e)
 {
     if (_MenuItemSelected == null) return;
     using (frmImageSelector frm = new frmImageSelector())
     {
         frm.Populate(m_MenuImageList);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             this.pictureBoxImage.Image = frm.SelectedImage;
             _MenuItemSelected.NodeSelectedImageIndex = frm.SelectedImageIndex;
         }
     }
 //    string imgFile = Helper.OpenFile(ImageFilter);
 //    if (String.IsNullOrEmpty(imgFile)) return;
 //    this.pictureBoxImage.Image = Image.FromFile(imgFile);
 //    m_Image_Extension = System.IO.Path.GetExtension(imgFile);
 }
Example #2
0
 private void btnSearchImage_Click(object sender, EventArgs e)
 {
     if (_MenuItemSelected == null)
     {
         return;
     }
     using (frmImageSelector frm = new frmImageSelector())
     {
         frm.Populate(m_MenuImageList);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             this.pictureBoxImage.Image = frm.SelectedImage;
             _MenuItemSelected.NodeSelectedImageIndex = frm.SelectedImageIndex;
         }
     }
     //    string imgFile = Helper.OpenFile(ImageFilter);
     //    if (String.IsNullOrEmpty(imgFile)) return;
     //    this.pictureBoxImage.Image = Image.FromFile(imgFile);
     //    m_Image_Extension = System.IO.Path.GetExtension(imgFile);
 }