Beispiel #1
0
 private void FormMdiAgendaTelefonica_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (_Instance != null)
     {
         _Instance.Dispose();
         _Instance = null;
     }
 }
Beispiel #2
0
        private void agendaTelefônicaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormMdiAgendaTelefonica formMdiAgendaTelefonica = FormMdiAgendaTelefonica.Instance;

            // Set the Parent Form of the Child window.
            formMdiAgendaTelefonica.MdiParent = this;
            // Display the new form.
            formMdiAgendaTelefonica.Show();
            formMdiAgendaTelefonica.Focus();
        }