Exemple #1
0
        private void btnXemDiem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmDiemSinhVien f = new frmDiemSinhVien();

            f.MaSV  = tbMaSV.Text;
            f.TenSV = tbHoSV.Text + " " + tbTenSV.Text;
            f.loadInfo();
            f.Show();
        }
Exemple #2
0
        private void btnXemDiem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            nbcDSLop.OptionsNavPane.NavPaneState = DevExpress.XtraNavBar.NavPaneState.Collapsed;
            nbcLop.OptionsNavPane.NavPaneState   = DevExpress.XtraNavBar.NavPaneState.Expanded;
            frmDiemSinhVien f = new frmDiemSinhVien();

            f.MaSV  = gvLop.GetFocusedRowCellValue(colMaSV).ToString();
            f.TenSV = gvLop.GetFocusedRowCellValue(colTenSV).ToString();
            f.loadInfo();
            f.Show();
        }
 private void btnXemDiem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gvSV.FocusedRowHandle >= 0)
     {
         frmDiemSinhVien f = new frmDiemSinhVien();
         f.MaSV  = gvSV.GetFocusedRowCellValue(colMaSV).ToString();
         f.TenSV = gvSV.GetFocusedRowCellValue(colTenSV).ToString();
         f.loadInfo();
         f.Show();
     }
     else
     {
         MessageBox.Show("Chọn sinh viên cần xem!");
     }
 }