예제 #1
0
 public override void OnSingleClick(Mobile from)
 {
     if (m_Board == null || m_Board.Deleted)
     {
         Delete();
     }
     else if (!IsChildOf(m_Board))
     {
         m_Board.DropItem(this);
     }
     else
     {
         base.OnSingleClick(from);
     }
 }
예제 #2
0
 public override bool OnDragLift(Mobile from)
 {
     if (m_Board == null || m_Board.Deleted)
     {
         Delete();
         return(false);
     }
     else if (!IsChildOf(m_Board))
     {
         m_Board.DropItem(this);
         return(false);
     }
     else
     {
         return(true);
     }
 }