private void FormMdiAcionamentoAgfa_FormClosed(object sender, FormClosedEventArgs e) { if (_Instance != null) { _Instance.Dispose(); _Instance = null; } }
private void acionamentosJosiltonToolStripMenuItem_Click(object sender, EventArgs e) { FormMdiAcionamentoAgfa formMdiAcionamentoAgfa = FormMdiAcionamentoAgfa.Instance; // Set the Parent Form of the Child window. formMdiAcionamentoAgfa.MdiParent = this; // Display the new form. formMdiAcionamentoAgfa.Show(); formMdiAcionamentoAgfa.Focus(); }