private void mFrmMainSettings_Click(object sender, EventArgs e) { frmSettings settingsForm = new frmSettings(); settingsForm.ShowDialog(); settingsForm.Dispose(); GC.Collect(); }
private void mSettings_Click(object sender, EventArgs e) { using (frmSettings settings = new frmSettings()) { settings.ShowDialog(); } }