private void dgvForEMail_DoubleClick(object sender, EventArgs e) { if (dgvForEMail.Rows.Count > 0) { int intOpen = PSSClass.General.OpenForm(typeof(FinalReports)); if (intOpen == 1) { PSSClass.General.CloseForm(typeof(FinalReports)); } FinalReports childForm = new FinalReports(); childForm.Text = "FINAL REPORTS"; childForm.MdiParent = this.MdiParent; childForm.nRptNo = Convert.ToInt32(dgvForEMail.Rows[dgvForEMail.CurrentCell.RowIndex].Cells[0].Value); childForm.nLSw = 3; childForm.Show(); } }
private void dgvFile_DoubleClick(object sender, EventArgs e) { if (dgvFile.Rows.Count > 0 && dgvFile.CurrentCell.OwningColumn.Name == "RptNo" && dgvFile.CurrentCell.Value.ToString() != "") { //strAccess = GISClass.General.UserFileAccess(LogIn.nUserID, "FinalReports"); //if (strAccess == "") // return; int intOpen = GISClass.General.OpenForm(typeof(FinalReports)); if (intOpen == 1) { GISClass.General.CloseForm(typeof(FinalReports)); } FinalReports childForm = new FinalReports(); childForm.Text = "FINAL REPORTS"; childForm.MdiParent = this.MdiParent; childForm.nRptNo = Convert.ToInt32(dgvFile.CurrentCell.Value); childForm.nLSw = 1; childForm.Show(); } }