private void addEmployeeButton_Click(object sender, EventArgs e)
        {
            var AddEmployeeForm = new AddEmployeeForm(service);

            AddEmployeeForm.Show();
        }
Exemple #2
0
        private void addEmployeeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (UserSecurityController.NurseLoggedIn != null)
            {
                MessageBox.Show("You are not authorized to access this. ", "Access denied");
            }
            else
            {

                if (aef == null)
                {
                    aef = new AddEmployeeForm();
                    aef.MdiParent = this;
                    aef.FormClosed += new FormClosedEventHandler(aef_FormClosed);
                    aef.Show();

                }
                else
                {
                    aef.Activate();
                }
            }
        }
 public void Show()
 {
     employeeForm.Show();
     employeeEvents();
 }