コード例 #1
0
 public void RemoveDeleteIcon()
 {
     if (deleteBadge != null)
     {
         deleteBadge.TouchEvent -= DeleteBadge_TouchEvent;
         deleteBadge.Unparent();
         deleteBadge.Dispose();
         deleteBadge = null;
     }
 }
コード例 #2
0
 public void AddDeleteIcon(int idx)
 {
     if (!IsDeleteAble)
     {
         return;
     }
     if (deleteBadge == null)
     {
         deleteBadge = new RotaryDeleteBadege();
     }
     //if(idx % Common.ApplicationConstants.MAX_ITEM_COUNT <= 4)
     {
         deleteBadge.SetRightSide();
     }
     //else
     {
         // deleteBadge.SetLeftSide();
     }
     deleteBadge.TouchEvent += DeleteBadge_TouchEvent;
     this.Add(deleteBadge);
 }