private void btnDetails_Click(object sender, EventArgs e) { int id = int.Parse(dgvEmloyees.SelectedRows[0].Cells[0].Value.ToString()); EmployeeDetails employeeDetails = new EmployeeDetails(db, startForm, this, id); employeeDetails.Show(); this.Hide(); }
private void btnDetails_Click(object sender, EventArgs e) { EmployeeDetails employeeDetails = new EmployeeDetails(db); employeeDetails.Show(); }