void menu_OnMenuChange(object sender, EventArgs e) { XmlManager<Menu> xmlMenuManager = new XmlManager<Menu>(); menu.UnloadContent(); menu = xmlMenuManager.Load(menu.ID); menu.LoadContent(); menu.OnMenuChange += menu_OnMenuChange; menu.Transition(0.0f); foreach (MenuItem item in menu.Items) { item.Image.StoreEffects(); item.Image.ActivateEffect("FadeEffect"); } }
public MenuManager() { menu = new Menu(); menu.OnMenuChange += menu_OnMenuChange; }