public frmPhanCong()
 {
     InitializeComponent();
     this.cbbManv.DataSource = NhanVienController.GetListNV();
     //this.cbbMada.DataSource = DAController.GetListDA();
     foreach (var da in DAController.GetListDA())
     {
         this.checkedListBox1.Items.Add(da);
     }
     ClearControls();
     ShowData();
 }
Esempio n. 2
0
        private void ShowData()
        {
            BindingSource src = new BindingSource();

            src.DataSource    = NhanVienController.GetListNV();
            dataNV.DataSource = src;
            this.dataNV.Columns[9].Visible  = false;
            this.dataNV.Columns[8].Visible  = false;
            this.dataNV.Columns[10].Visible = false;
            this.dataNV.Columns[11].Visible = false;
            this.dataNV.Columns[12].Visible = false;
        }