Exemple #1
0
 private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (FrmSingleStuInfo frm = new FrmSingleStuInfo())
     {
         DialogResult dialogResult = frm.ShowDialog();
         if (dialogResult == DialogResult.Yes)
         {
             this.BindStuInfoes();
         }
     }
 }
Exemple #2
0
 private void btnUpdate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (this.gridView.RowCount > 0)
     {
         X_Student stu = this.gridView.GetFocusedRow() as X_Student;
         using (FrmSingleStuInfo frmSingleProduct = new FrmSingleStuInfo(stu))
         {
             DialogResult dialogResult = frmSingleProduct.ShowDialog();
             if (dialogResult == DialogResult.Yes)
             {
                 this.BindStuInfoes();
             }
         }
     }
 }