public bool Assign(IActionbarItem item) { this.item = item; ClearIcon(); SetIcon(item.Icon); return(true); }
public void SetItem(IActionbarItem item) { this.item = item; if (item != null) { Assign(item); } }
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); }