Click here to Skip to main content
16,005,038 members
Home / Discussions / C#
   

C#

 
AnswerRe: horizontal scroll bar move event... Pin
stancrm28-Jul-09 21:43
stancrm28-Jul-09 21:43 
GeneralRe: horizontal scroll bar move event... Pin
spalanivel28-Jul-09 22:00
spalanivel28-Jul-09 22:00 
GeneralRe: horizontal scroll bar move event... Pin
spalanivel29-Jul-09 0:53
spalanivel29-Jul-09 0:53 
AnswerRe: horizontal scroll bar move event... Pin
Alan N29-Jul-09 2:03
Alan N29-Jul-09 2:03 
QuestionOOP approach, static method Pin
Raybarg28-Jul-09 20:46
professionalRaybarg28-Jul-09 20:46 
AnswerRe: OOP approach, static method Pin
Christian Graus28-Jul-09 21:00
protectorChristian Graus28-Jul-09 21:00 
AnswerRe: OOP approach, static method Pin
DaveyM6928-Jul-09 22:41
professionalDaveyM6928-Jul-09 22:41 
GeneralRe: OOP approach, static method Pin
Raybarg28-Jul-09 23:04
professionalRaybarg28-Jul-09 23:04 
Since I got 2 replies already saying its "weird" to have static method like that, I changed it.

Now instead of simply calling TheDocument.Print(...); I first have to create instance oobject of it;
TheDocument doc = new TheDocument(TheList);
doc.Print();

And I already feel more confident that this is more "proper". Atleast with this approach I can in the future derive from IDisposable interface if I ever need, and this approach more easily yields to using. I guess.

For the sake of making it more readable to "end user of the class" should I consider using a property for "the list", like .WhateverThisListIs = TheList?
GeneralRe: OOP approach, static method Pin
DaveyM6928-Jul-09 23:39
professionalDaveyM6928-Jul-09 23:39 
AnswerRe: OOP approach, static method Pin
PIEBALDconsult29-Jul-09 4:58
mvePIEBALDconsult29-Jul-09 4:58 
QuestionAttach User Entered Data with word Document while saving Pin
mandar77728-Jul-09 20:41
mandar77728-Jul-09 20:41 
QuestionTreeView NodeMouseHover Event Pin
vhassan28-Jul-09 20:15
vhassan28-Jul-09 20:15 
QuestionDisplay Image from Path Pin
nudma28-Jul-09 19:47
nudma28-Jul-09 19:47 
AnswerRe: Display Image from Path Pin
Christian Graus28-Jul-09 20:10
protectorChristian Graus28-Jul-09 20:10 
AnswerRe: Display Image from Path Pin
Blikkies28-Jul-09 20:14
professionalBlikkies28-Jul-09 20:14 
GeneralRe: Display Image from Path Pin
nudma28-Jul-09 21:15
nudma28-Jul-09 21:15 
GeneralRe: Display Image from Path Pin
Blue_Boy29-Jul-09 0:45
Blue_Boy29-Jul-09 0:45 
GeneralRe: Display Image from Path Pin
Blikkies29-Jul-09 1:32
professionalBlikkies29-Jul-09 1:32 
GeneralRe: Display Image from Path Pin
nudma29-Jul-09 4:08
nudma29-Jul-09 4:08 
GeneralRe: Display Image from Path Pin
Blue_Boy29-Jul-09 7:38
Blue_Boy29-Jul-09 7:38 
GeneralRe: Display Image from Path Pin
Blikkies29-Jul-09 8:26
professionalBlikkies29-Jul-09 8:26 
AnswerRe: Display Image from Path Pin
Blue_Boy28-Jul-09 20:23
Blue_Boy28-Jul-09 20:23 
AnswerRe: Display Image from Path Pin
Christian Graus28-Jul-09 21:01
protectorChristian Graus28-Jul-09 21:01 
QuestionApp with Crystal Reports Pin
CodingYoshi28-Jul-09 11:00
CodingYoshi28-Jul-09 11:00 
AnswerRe: App with Crystal Reports Pin
Ennis Ray Lynch, Jr.28-Jul-09 15:19
Ennis Ray Lynch, Jr.28-Jul-09 15:19 

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.