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

C#

 
GeneralRe: why my ticks always the same, please help thanks very much. Pin
Luc Pattyn25-Jun-08 6:48
sitebuilderLuc Pattyn25-Jun-08 6:48 
GeneralRe: why my ticks always the same, please help thanks very much. Pin
Dan Neely25-Jun-08 7:08
Dan Neely25-Jun-08 7:08 
AnswerRe: why my ticks always the same, please help thanks very much. Pin
Dan Neely25-Jun-08 5:45
Dan Neely25-Jun-08 5:45 
GeneralRe: why my ticks always the same, please help thanks very much. Pin
matthew_net25-Jun-08 6:02
matthew_net25-Jun-08 6:02 
QuestionGDI / FPS Question Pin
Harvey Saayman25-Jun-08 4:32
Harvey Saayman25-Jun-08 4:32 
AnswerRe: GDI / FPS Question Pin
leppie25-Jun-08 5:00
leppie25-Jun-08 5:00 
GeneralRe: GDI / FPS Question Pin
Dan Neely25-Jun-08 5:12
Dan Neely25-Jun-08 5:12 
GeneralRe: GDI / FPS Question Pin
Harvey Saayman25-Jun-08 5:14
Harvey Saayman25-Jun-08 5:14 
hey leppie

mayb useing the term FPS was wrong...

what this panel does in a nutshell is paint a clock(the circle, lines for hours, the numbers everything) and some data in the form of lines(start and end times) and pies(durations).

the animationTimer is used for only one of the situations this control will handel, when activated a pie(duration) will sweep in between two lines(start and stop). The idea of that is to visually represent an employees lunch break in the case that he has a "Windowed Break", lets say from 10am to 2pm to have a 30min break.

the calculateAndUpdateDrawingVariables() method basically increments the DateTime values(these later go though a timeToDegrees() method so that a getPointOnCircle() method can be called). there are also a few ifs to check that the pie isnt sweeping over its "window lines" and another if to switch a bool value that determines if its sweeping left or right.

now the reason the animation timer is 10ms is because thats a nice speed for the pie to move at.

no i have no idea how this will perform on a much slower pc like a users...


leppie wrote:
Can you cache the result of the function given the same variables


i belive it can be cached because the pie sweeps left and right all the time. but how'd i do that?

any other comments given the info i just gave you?

thanx

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL

you.suck = (you.passion != Programming)

GeneralRe: GDI / FPS Question Pin
User 665825-Jun-08 5:25
User 665825-Jun-08 5:25 
GeneralRe: GDI / FPS Question Pin
Harvey Saayman25-Jun-08 7:41
Harvey Saayman25-Jun-08 7:41 
AnswerRe: GDI / FPS Question Pin
User 665825-Jun-08 5:19
User 665825-Jun-08 5:19 
GeneralRe: GDI / FPS Question Pin
Harvey Saayman25-Jun-08 7:48
Harvey Saayman25-Jun-08 7:48 
QuestionHow to count Startup Services and Processes using C# Pin
Neeraj Kr25-Jun-08 3:56
Neeraj Kr25-Jun-08 3:56 
AnswerRe: How to count Startup Services and Processes using C# Pin
Manas Bhardwaj25-Jun-08 5:11
professionalManas Bhardwaj25-Jun-08 5:11 
AnswerRe: How to count Startup Services and Processes using C# Pin
Neeraj Kr25-Jun-08 20:15
Neeraj Kr25-Jun-08 20:15 
GeneralRe: How to count Startup Services and Processes using C# Pin
Manas Bhardwaj25-Jun-08 22:40
professionalManas Bhardwaj25-Jun-08 22:40 
GeneralRe: How to count Startup Services and Processes using C# Pin
Neeraj Kr25-Jun-08 22:44
Neeraj Kr25-Jun-08 22:44 
AnswerRe: How to count Startup Services and Processes using C# Pin
Neeraj Kr25-Jun-08 22:40
Neeraj Kr25-Jun-08 22:40 
Question[Message Deleted] Pin
mabby21625-Jun-08 3:05
mabby21625-Jun-08 3:05 
AnswerRe: Write entries to a text file--Need Help!! Pin
Ashfield25-Jun-08 3:17
Ashfield25-Jun-08 3:17 
GeneralRe: Write entries to a text file--Need Help!! Pin
mabby21625-Jun-08 3:27
mabby21625-Jun-08 3:27 
GeneralRe: Write entries to a text file--Need Help!! Pin
leppie25-Jun-08 3:29
leppie25-Jun-08 3:29 
GeneralRe: Write entries to a text file--Need Help!! Pin
mabby21625-Jun-08 3:43
mabby21625-Jun-08 3:43 
GeneralRe: Write entries to a text file--Need Help!! Pin
leppie25-Jun-08 3:52
leppie25-Jun-08 3:52 
GeneralRe: Write entries to a text file--Need Help!! Pin
Ashfield25-Jun-08 3:48
Ashfield25-Jun-08 3:48 

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.