internal void RemoveBadgeIcon() { if (itemBadge != null) { itemBadge.Unparent(); itemBadge.Dispose(); itemBadge = null; } }
internal void RemoveDeleteIcon() { if (deleteBadge != null) { deleteBadge.TouchEvent -= DeleteBadge_TouchEvent; deleteBadge.Unparent(); deleteBadge.Dispose(); deleteBadge = null; } }
internal void AddDeleteIcon(int idx) { if (!IsDeleteAble) { return; } if (deleteBadge == null) { deleteBadge = new RotaryBadege(0); deleteBadge.SetRightSide(); deleteBadge.TouchEvent += DeleteBadge_TouchEvent; } this.Add(deleteBadge); }
internal void EnableBadge() { if (Badge <= 0) { return; } if (itemBadge == null) { itemBadge = new RotaryBadege(1); itemBadge.SetRightSide(); itemBadge.SetBadgeNumber(Badge); } this.Add(itemBadge); }