Exemple #1
0
 private void BtnOpen_Click(object sender, EventArgs e)
 {
     try
     {
         selectMenu.ShowDialog();
         if (selectMenu.IsLocal)
         {
             PbImagePreview.Image    = new Bitmap(selectMenu.GetImageLocalPath());
             PbImagePreview.SizeMode = PictureBoxSizeMode.StretchImage;
         }
         else
         {
             PbImagePreview.Image    = new Bitmap(selectMenu.GetPathFromWeb());
             PbImagePreview.SizeMode = PictureBoxSizeMode.StretchImage;
         }
     }
     catch (ArgumentNullException)
     {
     }
 }