foreach (PlayingCard cardShuffled in cards) { cardShuffled.Click += card_Click; . . .
Quote:System.ArgumentException: "The specified Visual object is already a child of another Visual object or the root of CompositionTarget."
foreach (PlayingCard cardShuffled in cards) { cardShuffled.MouseDoubleClick += card_Click; cardShuffled.Click += card_Click;
bool
OnClick{ if (processing) return; processing= true; try { // Do it } _finally { procssing= false; }}
OnClick { if (this.processing) return; this.processing= true; try { // Do the work here } _finally { this.procssing= false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)