Пример #1
0
 private void FormMdiconexaoBD_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (_Instance != null)
     {
         _Instance.Dispose();
         _Instance = null;
     }
 }
Пример #2
0
        private void dadosDeConexõesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormMdiConexaoBD formMdiConexaoBD = FormMdiConexaoBD.Instance;

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