void update_employee_Click(object sender, EventArgs e) { pnlops.Controls.Clear(); emp_update eu = new emp_update(); eu.Width = pnlops.Width; eu.Height = pnlops.Height; eu.emp = Global.CURRENT_USER; pnlops.Controls.Add(eu); //throw new NotImplementedException(); }
private void updateInfoToolStripMenuItem_Click(object sender, EventArgs e) { if (lv.SelectedItems.Count > 0) { String id = lv.SelectedItems[0].SubItems[1].Text; //MessageBox.Show(id); Employee emp, emp1 = new Employee(); emp1.empid = id; emp = emp1.SELECT_BY_ID(); emp.GET_BASIC_PAY(); emp.GET_BRANCH_ASSIGNMENT(); emp.GET_EMPLOYMENT_STATUS(); emp.GET_IMAGE_BY_ID(); emp.GET_CURRENT_POSITION(); pnlops.Controls.Clear(); emp_update c = new emp_update(); c.emp = emp; c.Width = pnlops.Width; pnlops.Height = c.Height; pnlops.Controls.Add(c); } }