Esempio n. 1
0
 private void ReadImage()
 {
     if (!String.IsNullOrEmpty(imgFileName))
     {
         if (File.Exists(appPath + imgFileName))
         {
             pictureBox1.ImageLocation = appPath + imgFileName;
             pictureBox1.Show();
             _lbFileName.Text = imgFileName;
         }
         else
         {
             pictureBox1.Image =
                 GetImageByBytes(WarningImgBLL.GetImageWithWarningIdAndFileName(_parent.warningId, imgFileName));
             pictureBox1.Show();
         }
     }
 }
Esempio n. 2
0
 public void RefreshImgListFromDb()
 {
     GetWarningId();
     ImgList = WarningImgBLL.GetFilsNameListWithWarningId(warningId);
     RefreshImgList();
 }