private static void CreateGroup() { CreateGroupForm dlg = new CreateGroupForm(); dlg.StartPosition = FormStartPosition.CenterParent; if (dlg.ShowDialog() == DialogResult.OK) { GroupInfo info = GroupInfo.Create(dlg.GroupName); Workbench.AddGroup(info.Key, info.Name); } }