/// <summary> /// Helper form so that above form only has one instance at a time. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void uvf_FormClosed(object sender, FormClosedEventArgs e) { uvf = null; //throw new NotImplementedException(); }
private void updateVisitToolStripMenuItem_Click(object sender, EventArgs e) { if (UserSecurityController.AdminLoggedIn != null) { MessageBox.Show("You are not authorized to access this. ", "Access denied"); } else { if (uvf == null) { uvf = new UpdateVisitForm(); uvf.MdiParent = this; uvf.FormClosed += new FormClosedEventHandler(uvf_FormClosed); uvf.Show(); } else { uvf.Activate(); } } }