private void btConfig_Click(object sender, EventArgs e) { if (config == null) { config = new formConfig(); config.MdiParent = this; config.Show(); config.FormClosed += new FormClosedEventHandler(fecharConfig); } }
private void fecharConfig(object sender, EventArgs e) { config = null; }