private void DoConfig() { Form.FormEnabled = false; ConfigDialog Dialog = new ConfigDialog(Form); Dialog.ShowDialog(); Dialog.Dispose(); Form.FormEnabled = true; }