Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
GeneralRe: desable a menustrip item Pin
phil.o21-Dec-10 5:02
professionalphil.o21-Dec-10 5:02 
GeneralRe: desable a menustrip item Pin
fjdiewornncalwe21-Dec-10 5:10
professionalfjdiewornncalwe21-Dec-10 5:10 
GeneralRe: desable a menustrip item Pin
OriginalGriff21-Dec-10 5:26
mveOriginalGriff21-Dec-10 5:26 
GeneralRe: desable a menustrip item [modified] Pin
phil.o21-Dec-10 6:07
professionalphil.o21-Dec-10 6:07 
GeneralRe: desable a menustrip item Pin
fjdiewornncalwe21-Dec-10 9:59
professionalfjdiewornncalwe21-Dec-10 9:59 
GeneralRe: desable a menustrip item Pin
phil.o21-Dec-10 21:28
professionalphil.o21-Dec-10 21:28 
GeneralRe: desable a menustrip item Pin
musefan21-Dec-10 6:31
musefan21-Dec-10 6:31 
GeneralRe: desable a menustrip item Pin
fjdiewornncalwe21-Dec-10 9:51
professionalfjdiewornncalwe21-Dec-10 9:51 
Hey musefan,

The difference is the coupling between classes. The static configuration class has an application level scope, so the two UI form classes are complete decoupled with no knowledge of each other and that is the ideal way to develop forms like this. Granted that in the question here, we are dealing with a really simple scenario which is definitely satisfied by form1 setting a value in form2 directly. If and when the project grows, will Form1 have to know about Form2 and Form3 and Form4, but not Form5? Is the setting being changed in each form, or only 1, or 2? With a static configuration class Form1 only has to know about updating one ui based property in it and any class that needs knowledge of that value can simply read it when they need it. It makes for a much cleaner, stable, sustainable, and quicker executing code base.
I wasn't, now I am, then I won't be anymore.

GeneralRe: desable a menustrip item Pin
musefan22-Dec-10 2:29
musefan22-Dec-10 2:29 
GeneralRe: desable a menustrip item Pin
fjdiewornncalwe22-Dec-10 3:35
professionalfjdiewornncalwe22-Dec-10 3:35 
GeneralRe: desable a menustrip item Pin
musefan22-Dec-10 4:06
musefan22-Dec-10 4:06 
AnswerRe: desable a menustrip item Pin
AussieLew21-Dec-10 13:08
AussieLew21-Dec-10 13:08 
QuestionSTUN/NAT Traversal -> Connecting Problem Pin
softwarejaeger21-Dec-10 2:08
softwarejaeger21-Dec-10 2:08 
AnswerRe: STUN/NAT Traversal -> Connecting Problem Pin
Pete O'Hanlon21-Dec-10 3:05
mvePete O'Hanlon21-Dec-10 3:05 
Questionshowing more than one row in a single cell in datagridview Pin
Erdinc2720-Dec-10 23:35
Erdinc2720-Dec-10 23:35 
AnswerRe: showing more than one row in a single cell in datagridview Pin
Eddy Vluggen21-Dec-10 7:56
professionalEddy Vluggen21-Dec-10 7:56 
GeneralRe: showing more than one row in a single cell in datagridview Pin
Erdinc2721-Dec-10 22:16
Erdinc2721-Dec-10 22:16 
GeneralRe: showing more than one row in a single cell in datagridview Pin
Eddy Vluggen22-Dec-10 0:38
professionalEddy Vluggen22-Dec-10 0:38 
GeneralRe: showing more than one row in a single cell in datagridview [modified] Pin
Erdinc2722-Dec-10 21:35
Erdinc2722-Dec-10 21:35 
GeneralRe: showing more than one row in a single cell in datagridview Pin
Eddy Vluggen23-Dec-10 22:37
professionalEddy Vluggen23-Dec-10 22:37 
QuestionToolStripControlHost Info? [modified] Pin
Rafone20-Dec-10 13:40
Rafone20-Dec-10 13:40 
AnswerRe: ToolStripControlHost Info? Pin
Abhinav S20-Dec-10 17:19
Abhinav S20-Dec-10 17:19 
AnswerRe: ToolStripControlHost Info? Pin
RaviRanjanKr20-Dec-10 18:41
professionalRaviRanjanKr20-Dec-10 18:41 
Newstell me Pin
mohammed alshaweesh20-Dec-10 12:17
mohammed alshaweesh20-Dec-10 12:17 
GeneralRe: tell me [REPOST] Pin
Henry Minute20-Dec-10 13:35
Henry Minute20-Dec-10 13:35 

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.