private void btnUpdate_Click(object sender, EventArgs e) { Employees em = new Employees(txtUEName.Text, txtUEFName.Text, txtUEMName.Text, cmbUEGender.Text, cmbUEDepartment.Text, cmbUEDesignation.Text, txtUEPStatus.Text, txtUECStatus.Text, txtUEPNo.Text, txtUEEmail.Text, txtUEAddress.Text); em.imageLocation = imgLocation; try { em.UpdateEmployeesInfo(ID); if (em.Message == "") { View_Employees ve = new View_Employees(); this.Hide(); ve.Show(); } else { labelUMS.Text = em.Message; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void viewEmployeesToolStripMenuItem_Click(object sender, EventArgs e) { View_Employees ve = new View_Employees(); ve.Show(); }