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

C#

 
QuestionMultiThread and File process Pin
AlexB4715-Jan-10 2:54
AlexB4715-Jan-10 2:54 
AnswerRe: MultiThread and File process Pin
Ilia Blank15-Jan-10 3:50
Ilia Blank15-Jan-10 3:50 
GeneralRe: MultiThread and File process Pin
AlexB4715-Jan-10 4:04
AlexB4715-Jan-10 4:04 
GeneralRe: MultiThread and File process Pin
Ilia Blank15-Jan-10 4:12
Ilia Blank15-Jan-10 4:12 
GeneralRe: MultiThread and File process Pin
AlexB4715-Jan-10 4:19
AlexB4715-Jan-10 4:19 
GeneralRe: MultiThread and File process Pin
Ilia Blank15-Jan-10 4:29
Ilia Blank15-Jan-10 4:29 
GeneralRe: MultiThread and File process Pin
AlexB4715-Jan-10 4:45
AlexB4715-Jan-10 4:45 
GeneralRe: MultiThread and File process Pin
Ilia Blank15-Jan-10 5:33
Ilia Blank15-Jan-10 5:33 
Assuming that you have three files with full history of the race for each horse from start to finish and you are requested to create animation that simulates the race while preserving proper timing of the race. That what I would do

1. Load each file into corresponding list. Each list element represents position of the horse and timing of this position. Each list is sorted by time.
2. Merge three arrays into one list. Each list element represent time and position of all three horses at this time. The list is sorted by time.
3. Develop UI control that is capable of painting one race frame based on individual element from array created on step 2. Development of such control might be challenging but in general you have to assure that method called to draw particular frame “HorseRaceArenaControl::DrawRaceFrame (horse1Position, horse2Position, horse3Position ) “ can be called from arbitrary thread. The topics that you have to explore are Control::Invoke, Control::OnPaint, “implementing own-drown control”,
4. To call DrawRaceFrame method for each element in the list created in step 2. The method has to be called with time intervals as recorded in each element. You can use .Net System.Threading.Timer class to assure proper timing.
I realize that this is not detailed instruction but rather general guidelines. Hopefully it can serve as starting point.
GeneralRe: MultiThread and File process Pin
AlexB4717-Jan-10 20:42
AlexB4717-Jan-10 20:42 
GeneralRe: MultiThread and File process Pin
Ilia Blank18-Jan-10 4:53
Ilia Blank18-Jan-10 4:53 
GeneralRe: MultiThread and File process Pin
AlexB4718-Jan-10 4:58
AlexB4718-Jan-10 4:58 
GeneralRe: MultiThread and File process Pin
Ilia Blank18-Jan-10 5:04
Ilia Blank18-Jan-10 5:04 
AnswerRe: MultiThread and File process Pin
wjp_auhtm15-Jan-10 3:54
wjp_auhtm15-Jan-10 3:54 
GeneralRe: MultiThread and File process Pin
AlexB4715-Jan-10 4:06
AlexB4715-Jan-10 4:06 
GeneralRe: MultiThread and File process Pin
wjp_auhtm16-Jan-10 2:29
wjp_auhtm16-Jan-10 2:29 
GeneralRe: MultiThread and File process Pin
Luc Pattyn15-Jan-10 5:13
sitebuilderLuc Pattyn15-Jan-10 5:13 
AnswerRe: MultiThread and File process Pin
Alaric Dailey15-Jan-10 6:00
Alaric Dailey15-Jan-10 6:00 
GeneralRe: MultiThread and File process Pin
AlexB4717-Jan-10 20:45
AlexB4717-Jan-10 20:45 
GeneralRe: MultiThread and File process Pin
Alaric Dailey18-Jan-10 4:37
Alaric Dailey18-Jan-10 4:37 
QuestionSystem.InvalidCastException Query Pin
DwR15-Jan-10 2:45
DwR15-Jan-10 2:45 
AnswerRe: System.InvalidCastException Query Pin
DwR16-Jan-10 2:45
DwR16-Jan-10 2:45 
AnswerRe: System.InvalidCastException Query Pin
Eddy Vluggen17-Jan-10 10:50
professionalEddy Vluggen17-Jan-10 10:50 
GeneralRe: System.InvalidCastException Query Pin
FenixTX10-Feb-10 3:52
FenixTX10-Feb-10 3:52 
GeneralRe: System.InvalidCastException Query Pin
Eddy Vluggen10-Feb-10 4:18
professionalEddy Vluggen10-Feb-10 4:18 
QuestionTrap and Read magnetic tripe card reader [modified] Pin
Kaikus14-Jan-10 23:57
Kaikus14-Jan-10 23:57 

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.