Exemple #1
0
 private void gvIdCardChecked_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
 {
     if (e.Clicks == 2)
     {
         IdCardCertificationModelGet idCardCertificationModelGet =
             gvIdCardChecked.GetFocusedRow() as IdCardCertificationModelGet;
         if (idCardCertificationModelGet != null)
         {
             SubformIdCardCertification subformIdCardCertification = new SubformIdCardCertification();
             subformIdCardCertification.IdCardCertificationModelGet = idCardCertificationModelGet;
             subformIdCardCertification.SubformType = SubformType.Show;
             subformIdCardCertification.ShowDialog();
         }
     }
 }
Exemple #2
0
 private void gvIdCardCheck_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
 {
     if (e.Clicks == 2)
     {
         IdCardCertificationModelGet idCardCertificationModelGet =
             gvIdCardCheck.GetFocusedRow() as IdCardCertificationModelGet;
         if (idCardCertificationModelGet != null)
         {
             SubformIdCardCertification subformIdCardCertification = new SubformIdCardCertification();
             subformIdCardCertification.IdCardCertificationModelGet = idCardCertificationModelGet;
             subformIdCardCertification.SubformType = SubformType.Edit;
             if (subformIdCardCertification.ShowDialog() == DialogResult.Yes)
             {
                 dgvIdCardCheck.DataSource = idCardCertificationModelGets.Where(n => n.State == "0").ToList();
                 gvIdCardCheck.RefreshData();
                 dgvIdCardChecked.DataSource = idCardCertificationModelGets.Where(n => n.State != "0").ToList();
                 gvIdCardChecked.RefreshData();
             }
         }
     }
 }