Ejemplo n.º 1
0
        /// <summary>
        /// Initial window that opens when the program runs
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void displayOpenIncidentsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (oi == null)
            {
                oi = new OpenIncidents();
                oi.MdiParent = this;
                oi.FormClosed += new FormClosedEventHandler(oi_FormClosed);
                oi.Show();
            }

            else oi.Activate();
        }
Ejemplo n.º 2
0
 void oi_FormClosed(object sender, FormClosedEventArgs e)
 {
     oi = null;
 }