void MenuItems_AfterItemAdd(Component item) { CheckMenuItem ci = (CheckMenuItem)item; if (ci.Group.IsEmpty()) { ci.Group = this.ClientID; } }