예제 #1
0
 private static void selectionStarted(object sender, HitInfo hitInfo, CancelEventArgs cancelArgs)
 {
     if (hitInfo.IsOverImage() || hitInfo.CustomButtonIndex >= 0)
     {
         cancelArgs.Cancel = true;
     }
 }
예제 #2
0
		private static Card getCard(MtgLayoutView view, HitInfo hitInfo)
		{
			if (!hitInfo.IsOverImage() && hitInfo.CustomButtonIndex < 0)
				return null;

			var card = (Card) view.FindRow(hitInfo.RowHandle);
			return card;
		}
예제 #3
0
        private static Card getCard(MtgLayoutView view, HitInfo hitInfo)
        {
            if (!hitInfo.IsOverImage() && hitInfo.CustomButtonIndex < 0)
            {
                return(null);
            }

            var card = (Card)view.GetRow(hitInfo.RowHandle);

            return(card);
        }