private void AddEmployeeButton_Click(object sender, EventArgs e) { AddEmployeeForm form = new AddEmployeeForm(); form.ShowDialog(); DataBind(); }
private void EditButtonToolStrip_Click(object sender, EventArgs e) { int index = int.Parse(EmployeeDataGridView.Rows[EmployeeDataGridView.CurrentRow.Index].Cells[0].Value.ToString()); AddEmployeeForm form = new AddEmployeeForm(index); form.ShowDialog(); DataBind(); }