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