Пример #1
0
 public bool Assign(IActionbarItem item)
 {
     this.item = item;
     ClearIcon();
     SetIcon(item.Icon);
     return(true);
 }
Пример #2
0
 public void SetItem(IActionbarItem item)
 {
     this.item = item;
     if (item != null)
     {
         Assign(item);
     }
 }
Пример #3
0
    public override bool PerformSlotSwap(Object source)
    {
        ActionbarSlot other = source as ActionbarSlot;

        if (other == null)
        {
            return(false);
        }
        IActionbarItem otherItem = other.item;
        bool           assign1   = other.Assign(item);
        bool           assign2   = Assign(otherItem);

        return(assign1 && assign2);
    }