Example #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 utf_FormClosed(object sender, FormClosedEventArgs e)
 {
     utf = null;
     //throw new NotImplementedException();
 }
Example #2
0
        private void updateTestToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            if (UserSecurityController.NurseLoggedIn != null)
            {
                MessageBox.Show("You are not authorized to access this. ", "Access denied");
            }
            else
            {

            if (utf == null)
            {
                utf = new UpdateTestForm();
                utf.MdiParent = this;
                utf.FormClosed += new FormClosedEventHandler(utf_FormClosed);
                utf.Show();

            }
            else
            {
                utf.Activate();
            }

            }
        }