private void bOptions_Click(object sender, EventArgs e) { using (FrmSettings frm = new FrmSettings()) { if (frm.ShowDialog() == DialogResult.OK) { Options.Instance.DefaultProject = frm.DefProjLoc; } } }