コード例 #1
0
        protected override void DoNew()
        {
            EvidenceInfo frmForm = new EvidenceInfo();

            frmForm.FormState = "new";
            frmForm.ShowDialog();
            btnStatus(true);
            ShowData();
        }
コード例 #2
0
 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();
 }
コード例 #3
0
 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();
 }