示例#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 rf_FormClosed(object sender, FormClosedEventArgs e)
 {
     rf = null;
     //throw new NotImplementedException();
 }
示例#2
0
 private void reportsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (UserSecurityController.NurseLoggedIn != null)
         {
             MessageBox.Show("You are not authorized to access this. ", "Access denied");
         }
         else
         {
         if (rf == null)
         {
             rf = new ReportForm();
             rf.MdiParent = this;
             rf.FormClosed += new FormClosedEventHandler(rf_FormClosed);
             rf.Show();
         }
         else
         {
             rf.Activate();
         }
     }
 }