Click here to Skip to main content
15,911,711 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating events for another control to process; how may I? Pin
Eddy Vluggen11-Apr-09 22:05
professionalEddy Vluggen11-Apr-09 22:05 
QuestionTransactionScope vs oConn.BeginTransaction Pin
devvvy11-Apr-09 16:03
devvvy11-Apr-09 16:03 
AnswerRe: TransactionScope vs oConn.BeginTransaction Pin
S. Senthil Kumar11-Apr-09 20:23
S. Senthil Kumar11-Apr-09 20:23 
QuestionBest practice for using Registry - UAC Issues Pin
Brad Wick11-Apr-09 15:04
Brad Wick11-Apr-09 15:04 
AnswerRe: Best practice for using Registry - UAC Issues Pin
Mycroft Holmes11-Apr-09 15:50
professionalMycroft Holmes11-Apr-09 15:50 
AnswerRe: Best practice for using Registry - UAC Issues Pin
Luc 64801111-Apr-09 17:00
Luc 64801111-Apr-09 17:00 
QuestionWhat's the best method for calling a random function? Pin
tylocook11-Apr-09 13:43
tylocook11-Apr-09 13:43 
AnswerRe: What's the best method for calling a random function? Pin
PIEBALDconsult11-Apr-09 15:57
mvePIEBALDconsult11-Apr-09 15:57 
Hmmm... interesting... there are many ways.

Perhaps the Plant (IPlant interface?) could have an Update method? And in the Update method you generate a random number and use a switch to determine what should happen to the individual Plant?

Or perhaps you could have a facility to apply some other class (Decorator Pattern?) to the Plant. So you have a Plant and then do something like myPlants [ i ].Infestations.Add ( new InsectInfestation() ) ;

At any rate, the effects of the infestation should be handled by the Plant, not by an outside agency.
Questionhow to access sound card Pin
fitsum argaw11-Apr-09 13:18
fitsum argaw11-Apr-09 13:18 
AnswerRe: how to access sound card Pin
Henry Minute12-Apr-09 1:41
Henry Minute12-Apr-09 1:41 
Questionhow to use ctrl+v for pasting a image in the rich text box Pin
Jeweel11-Apr-09 10:30
Jeweel11-Apr-09 10:30 
AnswerRe: how to use ctrl+v for pasting an image in the rich text box Pin
Luc 64801111-Apr-09 11:16
Luc 64801111-Apr-09 11:16 
AnswerRe: i got the solution..... Pin
Jeweel11-Apr-09 11:56
Jeweel11-Apr-09 11:56 
Questionhow can I deny delete access to a folder/file using FileSystemWatcher Pin
leshu11-Apr-09 8:14
leshu11-Apr-09 8:14 
AnswerRe: how can I deny delete access to a folder/file using FileSystemWatcher Pin
Colin Angus Mackay11-Apr-09 8:45
Colin Angus Mackay11-Apr-09 8:45 
JokeRe: how can I deny delete access to a folder/file using FileSystemWatcher Pin
Mycroft Holmes11-Apr-09 15:46
professionalMycroft Holmes11-Apr-09 15:46 
GeneralRe: how can I deny delete access to a folder/file using FileSystemWatcher Pin
leshu11-Apr-09 18:43
leshu11-Apr-09 18:43 
GeneralRe: how can I deny delete access to a folder/file using FileSystemWatcher Pin
Colin Angus Mackay11-Apr-09 23:47
Colin Angus Mackay11-Apr-09 23:47 
GeneralRe: how can I deny delete access to a folder/file using FileSystemWatcher Pin
leshu12-Apr-09 18:41
leshu12-Apr-09 18:41 
AnswerRe: how can I deny delete access to a folder/file using FileSystemWatcher Pin
Giorgi Dalakishvili12-Apr-09 1:25
mentorGiorgi Dalakishvili12-Apr-09 1:25 
QuestionTCP/IP Hates me and wants me to fail. Pin
jas0n2311-Apr-09 7:36
jas0n2311-Apr-09 7:36 
AnswerRe: TCP/IP Hates me and wants me to fail. Pin
Colin Angus Mackay11-Apr-09 7:41
Colin Angus Mackay11-Apr-09 7:41 
GeneralRe: TCP/IP Hates me and wants me to fail. Pin
jas0n2311-Apr-09 8:27
jas0n2311-Apr-09 8:27 
GeneralRe: TCP/IP Hates me and wants me to fail. Pin
Colin Angus Mackay11-Apr-09 8:33
Colin Angus Mackay11-Apr-09 8:33 
GeneralRe: TCP/IP Hates me and wants me to fail. Pin
jas0n2311-Apr-09 8:50
jas0n2311-Apr-09 8:50 

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.