예제 #1
0
        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);
            }
        }
예제 #2
0
        private void viewEmployeesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            View_Employees ve = new View_Employees();

            ve.Show();
        }