/// <summary> /// Risale nella gerarchia del menù. /// </summary> protected void AscendMenu() { if (upperItem == null) { curLevelItems = rtLevelItems; } else { List <MenuItem> l = upperItem.getChildren(); curLevelItems = l; upperItem = upperItem.fatherItem; } pointer = 0; updateText(); }
/// <summary> /// Apre l'item puntato, modificando eventualmente il menù. /// </summary> protected void OpenItem() { MenuItem chosen = getItem(pointer); List <MenuItem> l = chosen.getChildren(); if (l.Count != 0) { curLevelItems = l; pointer = 0; upperItem = chosen.fatherItem; updateText(); } else { HandleChoice(chosen); } }