Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
GeneralRe: Finding gap between Date ranges Pin
Łukasz Nowakowski20-Sep-10 22:19
Łukasz Nowakowski20-Sep-10 22:19 
AnswerRe: Finding gap between Date ranges Pin
DJ24520-Sep-10 23:16
DJ24520-Sep-10 23:16 
QuestionLinq question - what wrong with my code ? Pin
Yanshof20-Sep-10 19:13
Yanshof20-Sep-10 19:13 
AnswerRe: Linq question - what wrong with my code ? [modified] Pin
Pete O'Hanlon20-Sep-10 22:13
mvePete O'Hanlon20-Sep-10 22:13 
AnswerRe: Linq question - what wrong with my code ? Pin
PIEBALDconsult21-Sep-10 3:13
mvePIEBALDconsult21-Sep-10 3:13 
QuestionAdd row to DataGridView [Solved] Pin
Deepak.Prahlad20-Sep-10 18:31
Deepak.Prahlad20-Sep-10 18:31 
Questiongraph not drawing properly? Pin
stephen.darling20-Sep-10 15:54
stephen.darling20-Sep-10 15:54 
AnswerRe: graph not drawing properly? Pin
Luc Pattyn20-Sep-10 16:33
sitebuilderLuc Pattyn20-Sep-10 16:33 
Hi Steve,

1.
are you and "Member 7455306" one and the same? there is another ECG thread on this page! It is getting confusing...

2.
I can't tell for sure what is right or wrong in the code shown as there are a lot of magic constants which may or may not be OK.

3.
the x your code is using is probably ranging from 1 to ecgDisplay.Width+1 inclusive, so you are not having it point into the first column (x=0), and it is pointing in two columns that are beyond the ecgDisplay (width, and width+1).

4.
if and when x wraps back to 1, there will emerge a backward line from px=width+1 to x=1 which is probably the thing you see and don't like.

5.
a potential problem: if ECGArray would be partially filled, i.e. contain fewer than ECGArray.Length actual values, the remainder would be zero, and also get plotted.

6.
I find your erasure strategy a bit weird; instead of
e.Graphics.DrawRectangle(blackpen, 0, 0, x + 1, ecgDisplay.Height);

I would go along this line (the hor coordinate may be off by 1):
e.Graphics.DrawLine(blackpen, x+1, 0, x + 1, ecgDisplay.Height-1);


That's it for now.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


Questionwhy they don't show up Pin
neverpleat20-Sep-10 14:50
neverpleat20-Sep-10 14:50 
AnswerRe: why they don't show up Pin
Luc Pattyn20-Sep-10 15:02
sitebuilderLuc Pattyn20-Sep-10 15:02 
GeneralRe: why they don't show up Pin
neverpleat20-Sep-10 15:20
neverpleat20-Sep-10 15:20 
GeneralRe: why they don't show up Pin
Luc Pattyn20-Sep-10 15:36
sitebuilderLuc Pattyn20-Sep-10 15:36 
GeneralRe: why they don't show up [modified] Pin
neverpleat20-Sep-10 17:17
neverpleat20-Sep-10 17:17 
AnswerRe: why they don't show up Pin
Abhinav S20-Sep-10 18:17
Abhinav S20-Sep-10 18:17 
AnswerRe: why they don't show up Pin
phil.o21-Sep-10 0:08
professionalphil.o21-Sep-10 0:08 
Questionwhere to manage my picture box control Pin
Member 745530620-Sep-10 10:53
Member 745530620-Sep-10 10:53 
AnswerRe: where to manage my picture box control [modified] Pin
Luc Pattyn20-Sep-10 11:38
sitebuilderLuc Pattyn20-Sep-10 11:38 
QuestionWPF Database Wrapping Pin
eddieangel20-Sep-10 6:25
eddieangel20-Sep-10 6:25 
AnswerRe: WPF Database Wrapping Pin
Chris Trelawny-Ross20-Sep-10 9:19
Chris Trelawny-Ross20-Sep-10 9:19 
GeneralRe: WPF Database Wrapping Pin
eddieangel20-Sep-10 10:49
eddieangel20-Sep-10 10:49 
AnswerRe: WPF Database Wrapping Pin
Patrick Fox20-Sep-10 9:24
Patrick Fox20-Sep-10 9:24 
QuestionA question on SOAP and web services Pin
Dewald20-Sep-10 4:04
Dewald20-Sep-10 4:04 
AnswerRe: A question on SOAP and web services Pin
Pete O'Hanlon20-Sep-10 4:54
mvePete O'Hanlon20-Sep-10 4:54 
AnswerRe: A question on SOAP and web services Pin
T M Gray20-Sep-10 11:47
T M Gray20-Sep-10 11:47 
QuestionHow to find all the rectangle in point collection ? Pin
Yanshof20-Sep-10 2:50
Yanshof20-Sep-10 2: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.