Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            add_editNVForm add = new add_editNVForm(new NhanVien(), DatabaseConnection.ADD);

            add.ShowDialog();
            load();
        }
Ejemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            selected.Ten      = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            selected.ViTri1   = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            selected.MaNV1    = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            selected.MatKhau1 = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            add_editNVForm edit = new add_editNVForm(selected, DatabaseConnection.EDIT);

            edit.ShowDialog();
            load();
        }