public void DisplayImage() { string fileName = this.dgvDetails.CurrentCell.Value.ToString(); if (fileName.Trim().Length == 0) { return; } Image img = BusinessRuler.ImageManage.GetImageFromServer(fileName); FrmViewImage frmViewImage = new FrmViewImage(img); frmViewImage.Show(); }
private void dgvDetails_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex != 7) { return; } string fileName = this.dgvDetails.CurrentCell.Value.ToString(); if (fileName.Trim().Length > 0) { Image img = BusinessRuler.ImageManage.GetImageFromServer(fileName); FrmViewImage frmViewImage = new FrmViewImage(img); frmViewImage.Show(); } }