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(); } } }
public void RefreshImgListFromDb() { GetWarningId(); ImgList = WarningImgBLL.GetFilsNameListWithWarningId(warningId); RefreshImgList(); }