Click here to Skip to main content
15,913,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 4:03
Tony Pottier15-Jan-09 4:03 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 4:16
Tony Pottier15-Jan-09 4:16 
GeneralRe: Drawing cards from a deck Pin
benjymous15-Jan-09 4:55
benjymous15-Jan-09 4:55 
GeneralRe: Drawing cards from a deck Pin
Guffa15-Jan-09 5:56
Guffa15-Jan-09 5:56 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 5:38
sitebuilderLuc Pattyn15-Jan-09 5:38 
GeneralRe: Drawing cards from a deck Pin
Guffa15-Jan-09 6:32
Guffa15-Jan-09 6:32 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 6:40
Tony Pottier15-Jan-09 6:40 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 6:42
sitebuilderLuc Pattyn15-Jan-09 6:42 
Hi Guffa,

I didn't see your code until now; if you have an array, rather than a vague collection, swapping cards out of sight as you did is the right way to go IMO. Reinserting the chosen ones would mean: undo the swaps (which you should do in reverse order of course). The advantage now is you are restoring
the exact state the array had to begin with without touching things that hadn't changed in the process.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text (not TextBoxes), and PictureBoxes for pictures (not drawings).


modified on Friday, June 10, 2011 12:23 PM

GeneralRe: Drawing cards from a deck Pin
Guffa15-Jan-09 6:55
Guffa15-Jan-09 6:55 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 6:59
sitebuilderLuc Pattyn15-Jan-09 6:59 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 7:27
Tony Pottier15-Jan-09 7:27 
AnswerRe: Drawing cards from a deck [modified] Pin
Luc Pattyn15-Jan-09 7:31
sitebuilderLuc Pattyn15-Jan-09 7:31 
AnswerRe: Drawing cards from a deck Pin
Henry Minute15-Jan-09 12:34
Henry Minute15-Jan-09 12:34 
GeneralRe: Drawing cards from a deck Pin
Tony Pottier15-Jan-09 12:42
Tony Pottier15-Jan-09 12:42 
QuestionWildcards Pin
boiDev15-Jan-09 2:15
boiDev15-Jan-09 2:15 
AnswerRe: Wildcards Pin
SeMartens15-Jan-09 2:24
SeMartens15-Jan-09 2:24 
AnswerRe: Wildcards [modified] PinPopular
EliottA15-Jan-09 2:52
EliottA15-Jan-09 2:52 
GeneralRe: Jerkface Pin
EliottA15-Jan-09 3:09
EliottA15-Jan-09 3:09 
GeneralRe: Jerkface Pin
DaveyM6915-Jan-09 3:30
professionalDaveyM6915-Jan-09 3:30 
GeneralRe: Jerkface Pin
EliottA15-Jan-09 3:36
EliottA15-Jan-09 3:36 
GeneralRe: Jerkface Pin
DaveyM6915-Jan-09 3:40
professionalDaveyM6915-Jan-09 3:40 
GeneralRe: Jerkface Pin
Pete O'Hanlon15-Jan-09 3:47
mvePete O'Hanlon15-Jan-09 3:47 
QuestionCalling optional parameterized method in c# Pin
Krishnaraj Barvathaya B15-Jan-09 1:40
Krishnaraj Barvathaya B15-Jan-09 1:40 
AnswerRe: Calling optional parameterized method in c# Pin
DaveyM6915-Jan-09 3:36
professionalDaveyM6915-Jan-09 3:36 
GeneralRe: Calling optional parameterized method in c# Pin
Dave Kreskowiak15-Jan-09 4:39
mveDave Kreskowiak15-Jan-09 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.