private void employeeTableGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { EmployeeModal employeeModal = new EmployeeModal(0); employeeModal.Identifire = this.employeeTableGridView.CurrentRow.Cells[0].Value.ToString(); employeeModal.nameTextBox.Text = this.employeeTableGridView.CurrentRow.Cells[1].Value.ToString(); employeeModal.addressTextBox.Text = this.employeeTableGridView.CurrentRow.Cells[2].Value.ToString(); employeeModal.passwordTextBox.Text = this.employeeTableGridView.CurrentRow.Cells[3].Value.ToString(); employeeModal.statusTextBox.Text = this.employeeTableGridView.CurrentRow.Cells[4].Value.ToString(); employeeModal.ShowDialog(); }
private void employeeAddButton_Click(object sender, EventArgs e) { EmployeeModal employee = new EmployeeModal(1); employee.Visible = true; }