private void btnEmpAddNew_Click(object sender, EventArgs e) { //addEmployee EmployeeFormA = new addEmployee(); //EmployeeFormA.Show(); DialogResult openForm = new addEmployee().ShowDialog(); if (openForm == DialogResult.OK) { try { // MessageBox.Show("UPDATED"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
private void btnEmpAddNew_Click(object sender, EventArgs e) { //addEmployee EmployeeFormA = new addEmployee(); //EmployeeFormA.Show(); DialogResult openForm = new addEmployee().ShowDialog(); if (openForm == DialogResult.OK) { try { // MessageBox.Show("UPDATED"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }