コード例 #1
0
 private void loadThongTin()
 {
     balNhanVien = new BANhanVien();
     try
     {
         if (balNhanVien.LayListNhanVien().Tables[0].Rows.Count != 0)
         {
             this.gridControl1.DataSource = balNhanVien.LayListNhanVien().Tables[0];
             hienthi();
         }
     }
     catch (Exception error)
     {
         MessageBox.Show(error.Message, "Loi", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #2
0
        private void LoadNV()
        {
            try
            {
                if (balNhanVien.LayListNhanVien().Tables[0].Rows.Count != 0)
                {
                    this.gridControl1.DataSource = balNhanVien.LayListNhanVien().Tables[0];
                    load();
                }
            }
            catch (Exception error)
            {
                MessageBox.Show(error.Message, "Loi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            btnBrowse.Enabled = false;
            HienThiThongTin(false);

            HienThiChucNang(true);
            HienThiHanhDong(false);
        }