Пример #1
0
 private void btnThemNV_Click(object sender, EventArgs e)
 {
     f.txtMaNV.Text             = DataProvider.Instance.executeScalar("select dbo.TAOMANV()").ToString();
     f.txtMaNV.Enabled          = false;
     f.txtTenNV.Text            = "";
     f.txtNgaySinh.CustomFormat = " ";
     f.txtSDT.Text      = "";
     f.txtDiaChi.Text   = "";
     f.txtGioiTinh.Text = "";
     f.txtLuong.Text    = "";
     f.txtChucVu.Text   = "";
     f.btnLuuNV.Text    = "Thêm NV";
     f.ShowDialog();
     dtgvNV.DataSource = DAO.NhanVienDAO.Instance.GetListNV();
 }
Пример #2
0
 private void btnAddNV_Click(object sender, EventArgs e)
 {
     using (Add_NhanVien tt = new Add_NhanVien())
     {
         tt.ShowDialog();
     }
 }
        private void btnSuaNV_Click(object sender, EventArgs e)
        {
            Add_NhanVien nv = new Add_NhanVien();

            nv.ShowDialog();
        }
 private void btnThemNV_Click(object sender, EventArgs e)
 {
     using (Add_NhanVien f = new Add_NhanVien())
         f.ShowDialog();
 }