Exemplo n.º 1
0
    public override bool Assign(Object source)
    {
        ActionbarSlot other = source as ActionbarSlot;

        if (other == null)
        {
            return(false);
        }
        return(Assign(other.item));
    }
Exemplo n.º 2
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);
    }