示例#1
0
        private void bbiAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            NHAN_VIEN nhan_vien = new NHAN_VIEN();

            nhan_vien.TEN_NV   = txtTenNV.TextName;
            nhan_vien.DIA_CHI  = txtDiaChi.TextName;
            nhan_vien.EMAIL    = txtEmail.TextName;
            nhan_vien.USERNAME = txtUser.TextName;
            byte[] pass = Encoding.ASCII.GetBytes(txtPass.TextName);
            nhan_vien.PASSWORD = pass;
            nhanvien.Add(nhan_vien);
            load();
            ResetText();
        }