Exemplo n.º 1
0
 private void pnlimg1_Click(object sender, EventArgs e)
 {
     try
     {
         var f = new OpenFileDialog();
         if (f.ShowDialog() == DialogResult.OK)
         {
             Image      img  = Image.FromFile(f.FileName);
             string     str  = "";
             BLL.IGoods bllg = new BLL.Goods();
             bllg.UploadImage(img, out str);
             pnlimgA.Text            = str;
             pnlimgA.BackgroundImage = img;
         }
     }
     catch (Exception ex)
     {
         Program.frmMsg(ex.Message);
     }
 }