Ejemplo n.º 1
0
 internal void RemoveBadgeIcon()
 {
     if (itemBadge != null)
     {
         itemBadge.Unparent();
         itemBadge.Dispose();
         itemBadge = null;
     }
 }
Ejemplo n.º 2
0
 internal void RemoveDeleteIcon()
 {
     if (deleteBadge != null)
     {
         deleteBadge.TouchEvent -= DeleteBadge_TouchEvent;
         deleteBadge.Unparent();
         deleteBadge.Dispose();
         deleteBadge = null;
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 internal void EnableBadge()
 {
     if (Badge <= 0)
     {
         return;
     }
     if (itemBadge == null)
     {
         itemBadge = new RotaryBadege(1);
         itemBadge.SetRightSide();
         itemBadge.SetBadgeNumber(Badge);
     }
     this.Add(itemBadge);
 }