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