public ActionGroupInfo GetActionGroup(string name) { foreach (ActionGroupInfo w in groups) if (w.Name == name) return w; return null; }