Beispiel #1
0
        private void btnAddEmp_Click(object sender, System.EventArgs e)
        {
            //FrmEmployee fEmployee = new FrmEmployee("a");
            FrmEmployee fEmployee = new FrmEmployee(_menuTag);

            if (fEmployee.ShowDialog() == DialogResult.OK)
            {
                this.ShowEmployee();
            }
        }
Beispiel #2
0
        private void btnEditEmp_Click(object sender, System.EventArgs e)
        {
            if (this.lstEmployee.SelectedItems.Count != 0)
            {
                object objEmployeeId = lstEmployee.SelectedItems[0].Tag;
//				FrmEmployee fEmployee = new FrmEmployee("a",Convert.ToInt32(lstEmployee.SelectedItems[0].Tag));
                FrmEmployee fEmployee = new FrmEmployee(_menuTag, Convert.ToInt32(lstEmployee.SelectedItems[0].Tag));
                fEmployee.Text = "编辑人员";
                if (fEmployee.ShowDialog() == DialogResult.OK)
                {
                    this.ShowEmployee(objEmployeeId);
                }
            }
        }
Beispiel #3
0
        private void BtnEmployee_Click(object sender, EventArgs e)
        {
            FrmEmployee Employee = new FrmEmployee();

            Employee.ShowDialog();
        }