Exemplo n.º 1
0
        private void frm_nhacc_Load(object sender, EventArgs e)
        {
            DataTable dtNhanCC = new DataTable();

            dtNhanCC             = ncc.getData();
            dtgvNhacc.DataSource = dtNhanCC;
            bingding();
        }
Exemplo n.º 2
0
        private void load_ncc()
        {
            NhaCCctrl khctr = new NhaCCctrl();

            txtNhacc.DataSource    = khctr.getData();
            txtNhacc.DisplayMember = "TenNCC";
            txtNhacc.ValueMember   = "MaNhaCC";
            txtNhacc.SelectedIndex = 0;
        }
Exemplo n.º 3
0
        private void LoadcboNhacc()
        {
            NhaCCctrl khctr = new NhaCCctrl();

            cboKh.DataSource    = khctr.getData();
            cboKh.DisplayMember = "TenNCC";
            cboKh.ValueMember   = "MaNhaCC";
            cboKh.SelectedIndex = 0;
        }