void OnOptions_Click(object sender, EventArgs e) { var form = new OptionsForm(new ConfigOpt(host.CustomConfig)); UIUtil.ShowDialogAndDestroy(form); }