protected override void DoNew() { EvidenceInfo frmForm = new EvidenceInfo(); frmForm.FormState = "new"; frmForm.ShowDialog(); btnStatus(true); ShowData(); }
protected override void DoEdit() { if (dgvEvidenceList.RowCount > 0) { EvidenceInfo frmForm = new EvidenceInfo(); frmForm.FormState = "edit"; frmForm.EvidenceID = dgvEvidenceList.Rows[SelectRowIndex].Cells[colEvidenceID.Name].Value.ToString(); frmForm.ShowDialog(); btnStatus(true); } ShowData(); }
private void dgvEvidenceList_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (dgvEvidenceList.RowCount > 0) { EvidenceInfo frmForm = new EvidenceInfo(); frmForm.FormState = "edit"; frmForm.EvidenceID = dgvEvidenceList.Rows[SelectRowIndex].Cells[colEvidenceID.Name].Value.ToString(); frmForm.ShowDialog(); btnStatus(true); } ShowData(); }