private void PosGroups() { using (GroupForm form = new GroupForm()) { if (form.Init()) { if (Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(null, form, false) == DialogResult.OK) { SetCurrentGroup(); } } } }