Example #1
0
 private static void selectionStarted(object sender, HitInfo hitInfo, CancelEventArgs cancelArgs)
 {
     if (hitInfo.IsOverImage() || hitInfo.CustomButtonIndex >= 0)
     {
         cancelArgs.Cancel = true;
     }
 }
Example #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;
		}
Example #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);
        }