public void SetCategory(string newCategory) { if (categoriesMap.ContainsKey(newCategory)) { currentCategory = newCategory; hideAll (); currentManager = categoriesMap [newCategory]; currentManager.reset (); currentManager.showCurrent (); } }