예제 #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 up_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.up = null;
     //throw new NotImplementedException();
 }
예제 #2
0
        /// <summary>
        /// Opens the Update Patient Form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void updatePatientToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (UserSecurityController.AdminLoggedIn != null)
            {
                MessageBox.Show("You are not authorized to access this. ", "Access denied");
            }
            else
            {

            if (up == null)
            {
                up = new UpdatePatientForm();
                up.MdiParent = this;
                this.up.FormClosed += up_FormClosed;

                up.Show();

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