예제 #1
0
 public override void UpdateItems()
 {
     _itemsList.Clear();
     for (int i = 0; i < _items.Count; i++)
     {
         ActionListItem listItem = new ActionListItem(_items[i]);
         listItem.AdditionalProperties[KEY_IS_UP_BUTTON_FOCUSED]   = i == _lastUpIndex;
         listItem.AdditionalProperties[KEY_IS_DOWN_BUTTON_FOCUSED] = i == _lastDownIndex;
         _itemsList.Add(listItem);
     }
     _itemsList.FireChange();
 }
예제 #2
0
 public void EditAction(ActionListItem item)
 {
     _actionProxy = new ActionProxy(item.GroupAction);
     NavigatePush(STATE_ACTION_EDIT);
 }
예제 #3
0
 public void MoveActionDown(ActionListItem item)
 {
     MoveItem(item.GroupAction, 1);
 }
예제 #4
0
 public void MoveActionUp(ActionListItem item)
 {
     MoveItem(item.GroupAction, -1);
 }