Exemple #1
0
 /// <summary>
 /// Helper form so that above form only has one instance at a time.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void atf_FormClosed(object sender, FormClosedEventArgs e)
 {
     atf = null;
     //throw new NotImplementedException();
 }
Exemple #2
0
        private void addTestToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (UserSecurityController.NurseLoggedIn != null)
            {
                MessageBox.Show("You are not authorized to access this. ", "Access denied");
            }
            else
            {

                if (atf == null)
                {
                    atf = new AddTestForm();
                    atf.MdiParent = this;
                    atf.FormClosed += new FormClosedEventHandler(atf_FormClosed);
                    atf.Show();

                }
                else
                {
                    atf.Activate();
                }
            }
        }