Click here to Skip to main content
15,906,816 members
Home / Discussions / C#
   

C#

 
QuestionDataset Accept change is not working Pin
Shahzad.Aslam5-May-10 20:04
Shahzad.Aslam5-May-10 20:04 
AnswerRe: Dataset Accept change is not working Pin
Peace ON5-May-10 21:13
Peace ON5-May-10 21:13 
Questioni m in need of application code Pin
manila dahal5-May-10 18:06
manila dahal5-May-10 18:06 
AnswerRe: i m in need of application code Pin
riced5-May-10 21:11
riced5-May-10 21:11 
AnswerRe: i m in need of application code Pin
Eddy Vluggen6-May-10 1:03
professionalEddy Vluggen6-May-10 1:03 
QuestionUpdating controls on another form Pin
gmhanna5-May-10 17:57
gmhanna5-May-10 17:57 
AnswerRe: Updating controls on another form Pin
Peace ON5-May-10 21:23
Peace ON5-May-10 21:23 
GeneralRe: Updating controls on another form Pin
DaveyM695-May-10 23:40
professionalDaveyM695-May-10 23:40 
You should never couple a child object to the parent like this when it's possible the child could exist without the parent. Doing so makes the child non reusable. The correct way to do this is for the child to raise events.

Also, you should not expose fields as public. Fields should be private and exposed via a public/internal/protected property as appropriate. This allows for validation and other logic as required later plus the use of locks for multithreading etc...
Dave

If this helped, please vote & accept answer!


Binging is like googling, it just feels dirtier. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

AnswerRe: Updating controls on another form Pin
DaveyM695-May-10 23:29
professionalDaveyM695-May-10 23:29 
QuestionRead certificate from USB Pin
Maurinho05-May-10 12:34
Maurinho05-May-10 12:34 
AnswerRe: Read certificate from USB Pin
AspDotNetDev5-May-10 15:15
protectorAspDotNetDev5-May-10 15:15 
QuestionAdding text box input to a dataset table Pin
mprice2145-May-10 11:34
mprice2145-May-10 11:34 
AnswerRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 11:57
professionalDr.Walt Fair, PE5-May-10 11:57 
GeneralRe: Adding text box input to a dataset table Pin
mprice2145-May-10 12:13
mprice2145-May-10 12:13 
GeneralRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 15:10
professionalDr.Walt Fair, PE5-May-10 15:10 
GeneralRe: Adding text box input to a dataset table [modified] Pin
mprice2145-May-10 15:45
mprice2145-May-10 15:45 
GeneralRe: Adding text box input to a dataset table Pin
Dr.Walt Fair, PE5-May-10 16:47
professionalDr.Walt Fair, PE5-May-10 16:47 
QuestionMessage Removed Pin
5-May-10 9:16
professionalN_tro_P5-May-10 9:16 
QuestionEnum logic problem [modified] Pin
venomation5-May-10 8:02
venomation5-May-10 8:02 
AnswerRe: Enum logic problem Pin
Ian Shlasko5-May-10 8:19
Ian Shlasko5-May-10 8:19 
AnswerRe: Enum logic problem Pin
venomation5-May-10 8:24
venomation5-May-10 8:24 
Questiondocument code Pin
toto_20105-May-10 7:13
toto_20105-May-10 7:13 
AnswerRe: document code Pin
dan!sh 5-May-10 7:24
professional dan!sh 5-May-10 7:24 
AnswerRe: document code Pin
Richard MacCutchan5-May-10 7:26
mveRichard MacCutchan5-May-10 7:26 
AnswerRe: document code Pin
Pete O'Hanlon5-May-10 9:26
mvePete O'Hanlon5-May-10 9:26 

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.