Exemplo n.º 1
0
 private void btnSuaNV_Click(object sender, EventArgs e)
 {
     if (dgv_DSNhanVien.SelectedRows.Count == 1)
     {
         NhanVien_WCFClient nv_wcf = new NhanVien_WCFClient();
         int             id        = nv_wcf.GetID_by_Email(dgv_DSNhanVien.SelectedRows[0].Cells[6].Value.ToString().Trim());
         frmTextNhanVien ftnv      = new frmTextNhanVien(this, "Sửa Nhân Viên", id);
         ftnv.ShowDialog();
     }
     else
     {
         MessageBox.Show("Chọn 1 Nhân Viên Cần Sửa", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         return;
     }
 }
Exemplo n.º 2
0
        private void btnThemNV_Click(object sender, EventArgs e)
        {
            frmTextNhanVien ftnv = new frmTextNhanVien(this, "Thêm Nhân Viên");

            ftnv.ShowDialog();
        }