Click here to Skip to main content
15,898,371 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Design Pattern Seminar in Europe Pin
Spithas17-Aug-07 21:47
Spithas17-Aug-07 21:47 
GeneralRe: Design Pattern Seminar in Europe Pin
martin_hughes20-Aug-07 5:50
martin_hughes20-Aug-07 5:50 
AnswerRe: Design Pattern Seminar in Europe Pin
t!bast30-Aug-07 3:22
t!bast30-Aug-07 3:22 
GeneralKeyboard Wedge Barcode Scanner Pin
Brady Kelly7-Aug-07 23:32
Brady Kelly7-Aug-07 23:32 
QuestionChange CSS according to Browser? Pin
chand107-Aug-07 21:30
chand107-Aug-07 21:30 
AnswerRe: Change CSS according to Browser? Pin
Pete O'Hanlon7-Aug-07 21:54
mvePete O'Hanlon7-Aug-07 21:54 
QuestionRefactoring Properties into Classes Pin
Leslie Sanford7-Aug-07 6:52
Leslie Sanford7-Aug-07 6:52 
AnswerRe: Refactoring Properties into Classes Pin
Luc Pattyn7-Aug-07 7:43
sitebuilderLuc Pattyn7-Aug-07 7:43 
Hi Leslie,

I did not completely follow the story here.

Count first was a property, I am not sure what it is intended for.

If it counts the number of IWidgets, I guess you would like to have a private static
count variable, and a public static property; but then interfaces don't allow for
static things. And you would not need a setter, the constructor should be the only
one modifying it.

Now if you attempt to solve the static issue by making an explicit Counter class and object,
that's fine except it de-encapsulates things: you are now responsible for passing
the right counter to each of the Widget constructors.

You could solve that by adding another class I think.

But maybe I misunderstood you and you want something completely different...

Smile | :)



Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


GeneralRe: Refactoring Properties into Classes Pin
Leslie Sanford7-Aug-07 8:00
Leslie Sanford7-Aug-07 8:00 
GeneralRe: Refactoring Properties into Classes Pin
Luc Pattyn7-Aug-07 14:34
sitebuilderLuc Pattyn7-Aug-07 14:34 
AnswerRe: Refactoring Properties into Classes Pin
Pete O'Hanlon7-Aug-07 22:00
mvePete O'Hanlon7-Aug-07 22:00 
GeneralRe: Refactoring Properties into Classes Pin
Heavy Storm15-Aug-07 8:11
Heavy Storm15-Aug-07 8:11 
AnswerRe: Refactoring Properties into Classes Pin
originSH7-Aug-07 23:05
originSH7-Aug-07 23:05 
GeneralOff-site Backup Service [modified] Pin
Brady Kelly7-Aug-07 4:52
Brady Kelly7-Aug-07 4:52 
GeneralRe: Off-site Backup Service Pin
led mike7-Aug-07 5:37
led mike7-Aug-07 5:37 
GeneralRe: Off-site Backup Service Pin
Luc Pattyn7-Aug-07 5:41
sitebuilderLuc Pattyn7-Aug-07 5:41 
GeneralRe: Off-site Backup Service Pin
Brady Kelly7-Aug-07 5:45
Brady Kelly7-Aug-07 5:45 
GeneralRe: Off-site Backup Service Pin
led mike7-Aug-07 6:02
led mike7-Aug-07 6:02 
GeneralRe: Off-site Backup Service Pin
Brady Kelly7-Aug-07 6:14
Brady Kelly7-Aug-07 6:14 
GeneralRe: Off-site Backup Service Pin
led mike7-Aug-07 6:34
led mike7-Aug-07 6:34 
GeneralRe: Off-site Backup Service Pin
Brady Kelly7-Aug-07 22:18
Brady Kelly7-Aug-07 22:18 
QuestionPOS discount headache Pin
dazfuller6-Aug-07 4:29
dazfuller6-Aug-07 4:29 
AnswerRe: POS discount headache Pin
led mike6-Aug-07 4:57
led mike6-Aug-07 4:57 
GeneralRe: POS discount headache Pin
dazfuller6-Aug-07 5:23
dazfuller6-Aug-07 5:23 
AnswerRe: POS discount headache Pin
originSH6-Aug-07 5:00
originSH6-Aug-07 5:00 

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.