Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can I retrieve values ​​from a textBox in another screen after the user set / send it Pin
marszheng28-Jun-11 15:03
marszheng28-Jun-11 15:03 
GeneralRe: how can I retrieve values ​​from a textBox in another screen after the user set / send it Pin
Not Active28-Jun-11 15:45
mentorNot Active28-Jun-11 15:45 
AnswerRe: how can I retrieve values ​​from a textBox in another screen after the user set / send it Pin
BobJanova28-Jun-11 22:33
BobJanova28-Jun-11 22:33 
QuestionProblem with reteriving xml data from sql data base. Pin
prasadbuddhika28-Jun-11 0:23
prasadbuddhika28-Jun-11 0:23 
AnswerRe: Problem with reteriving xml data from sql data base. Pin
abhinish28-Jun-11 0:35
abhinish28-Jun-11 0:35 
QuestionProblem with Process.HasExited Pin
Nigel Mackay27-Jun-11 23:52
Nigel Mackay27-Jun-11 23:52 
AnswerRe: Problem with Process.HasExited PinPopular
BobJanova27-Jun-11 23:55
BobJanova27-Jun-11 23:55 
GeneralRe: Problem with Process.HasExited Pin
Nigel Mackay28-Jun-11 0:08
Nigel Mackay28-Jun-11 0:08 
QuestionCode style [modified] Pin
Lutosław27-Jun-11 23:43
Lutosław27-Jun-11 23:43 
AnswerRe: Code style Pin
V.27-Jun-11 23:50
professionalV.27-Jun-11 23:50 
AnswerRe: Code style [modified] Pin
Pete O'Hanlon28-Jun-11 0:00
mvePete O'Hanlon28-Jun-11 0:00 
GeneralRe: Code style Pin
BobJanova28-Jun-11 0:06
BobJanova28-Jun-11 0:06 
GeneralRe: Code style Pin
Pete O'Hanlon28-Jun-11 0:30
mvePete O'Hanlon28-Jun-11 0:30 
GeneralRe: Code style Pin
Lutosław28-Jun-11 0:54
Lutosław28-Jun-11 0:54 
GeneralRe: Code style Pin
Pete O'Hanlon28-Jun-11 1:07
mvePete O'Hanlon28-Jun-11 1:07 
GeneralRe: Code style Pin
Lutosław28-Jun-11 1:17
Lutosław28-Jun-11 1:17 
GeneralRe: Code style Pin
BobJanova28-Jun-11 2:41
BobJanova28-Jun-11 2:41 
AnswerRe: Code style Pin
BobJanova28-Jun-11 0:05
BobJanova28-Jun-11 0:05 
GeneralRe: Code style Pin
Lutosław28-Jun-11 1:03
Lutosław28-Jun-11 1:03 
AnswerRe: Code style PinPopular
Keith Barrow28-Jun-11 0:23
professionalKeith Barrow28-Jun-11 0:23 
GeneralRe: Code style Pin
Pete O'Hanlon28-Jun-11 0:34
mvePete O'Hanlon28-Jun-11 0:34 
GeneralRe: Code style Pin
Lutosław28-Jun-11 0:45
Lutosław28-Jun-11 0:45 
GeneralRe: Code style Pin
Keith Barrow28-Jun-11 1:22
professionalKeith Barrow28-Jun-11 1:22 
Jacek Gajek wrote:
1. First of all, it doesn't compile because neither NoteBeamPen nor Brushes.X are constant.

I didn't copile it as I don't know which namespaces you are using, just describing the princple. Perhaps I should have made this clear.


Jacek Gajek wrote:
2. It is not clear what 'factors' RenderHead(drawingContext) are. I
don't see why factor '1' should be 'more default' than, e.g. 0 or 10 or 1.5 or
whatever.

This defaults to the "empty" version, but that is all they are defaults. You could default to whatever you feel safest, but defaulting to the one that scales at 1 makes the most sense to me.

For both the points above,you can drop the defaults totally and pass these in makes you feel any better, without altering the key point I made.

Jacek Gajek wrote:
Additionally, drawingContext.DrawEllipse is not actually redutant code. It can
change to 'DrawGeometry' or other stuff in future, and then it would require
refactoring if different geometry was used in these methods.


I didn't say that was redundant, just that you have repeated code, as other posters have pointed this out to you too. Further refactoring is unlikely be a huge chore, and you'd only need to do code on one place most probably. In any case I also question the wisdom of future-proofing against "geometry changes" unless they are reasonably certain to change. On this last point, if these are likely to change, how we we be able to tell, answer: we can't wihtout you letting us know your requirements.

GeneralRe: Code style Pin
Lutosław28-Jun-11 1:50
Lutosław28-Jun-11 1:50 
GeneralRe: Code style Pin
Keith Barrow28-Jun-11 1:57
professionalKeith Barrow28-Jun-11 1: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.