private void btnViewImg_Click(object sender, EventArgs e) { try { Frm_ImgDoc a = new Frm_ImgDoc(DocID, "Report"); a.ShowDialog(); } catch (Exception) { } }
private void btnImageView_Click(object sender, EventArgs e) { if (txtID.Text.Equals("")) { MessageBox.Show("الرجاء اختيار مستند محدد"); } else { try { Frm_ImgDoc a = new Frm_ImgDoc(txtID.Text, "Management"); a.ShowDialog(); } catch (Exception) { } } }