Click here to Skip to main content
15,902,299 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionRe: Code portability - .NET/Unix Pin
vsyam19-Nov-08 8:46
vsyam19-Nov-08 8:46 
RantRe: Code portability - .NET/Unix Pin
vsyam19-Nov-08 9:00
vsyam19-Nov-08 9:00 
GeneralRe: Code portability - .NET/Unix Pin
Wendelius19-Nov-08 9:14
mentorWendelius19-Nov-08 9:14 
AnswerRe: Code portability - .NET/Unix Pin
Wendelius19-Nov-08 9:05
mentorWendelius19-Nov-08 9:05 
Questionone questions about Builder Pattern Pin
Ahmed R El Bohoty18-Nov-08 17:12
Ahmed R El Bohoty18-Nov-08 17:12 
AnswerRe: one questions about Builder Pattern Pin
CodingYoshi18-Nov-08 18:23
CodingYoshi18-Nov-08 18:23 
QuestionWorkflow Services Pin
Mycroft Holmes17-Nov-08 14:33
professionalMycroft Holmes17-Nov-08 14:33 
QuestionLoading objects Pin
CodingYoshi15-Nov-08 8:01
CodingYoshi15-Nov-08 8:01 
A common task we always have to accomplish is to allow users to edit objects from the UI. For example, lets say I have an employee class with the regular properties. The UI will have textboxes and other controls to display the properties. A user can select an employee by name from a listbox, treeview, combobox or whatever (not important to this question) and the form will display the employee. These are different approaches I have been taking to display the employee and I was wondering which is a better approach or if you can recommend one:

1. Create a property within the employeeForm called Employee and when it is set the form will call its private ReLoad() method and display the employee.

2. Create a property as mentioned in 1, but do not ReLoad in the setter, instead make the ReLoad method public and clients should call the ReLoad method after setting the employee.

3. Forget the property altogether and just have a method called Load(Employee emp). This is basically a method which takes employee as a parameter and then displays it.

What do you think?
AnswerRe: Loading objects Pin
led mike17-Nov-08 5:06
led mike17-Nov-08 5:06 
GeneralRe: Loading objects Pin
CodingYoshi18-Nov-08 8:26
CodingYoshi18-Nov-08 8:26 
QuestionRe: Loading objects Pin
led mike18-Nov-08 8:28
led mike18-Nov-08 8:28 
AnswerRe: Loading objects Pin
CodingYoshi18-Nov-08 18:56
CodingYoshi18-Nov-08 18:56 
Questiondesigning a good way enable/disable controls [modified] Pin
giddy_guitarist12-Nov-08 15:18
giddy_guitarist12-Nov-08 15:18 
AnswerRe: designing a good way enable/disable controls Pin
Pete O'Hanlon12-Nov-08 22:30
mvePete O'Hanlon12-Nov-08 22:30 
AnswerRe: designing a good way enable/disable controls Pin
Giorgi Dalakishvili13-Nov-08 0:46
mentorGiorgi Dalakishvili13-Nov-08 0:46 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist13-Nov-08 4:39
giddy_guitarist13-Nov-08 4:39 
GeneralRe: designing a good way enable/disable controls Pin
Ray Cassick14-Nov-08 9:56
Ray Cassick14-Nov-08 9:56 
AnswerRe: designing a good way enable/disable controls Pin
Jani Giannoudis15-Nov-08 5:32
mvaJani Giannoudis15-Nov-08 5:32 
GeneralRe: designing a good way enable/disable controls Pin
Mycroft Holmes15-Nov-08 23:31
professionalMycroft Holmes15-Nov-08 23:31 
AnswerRe: designing a good way enable/disable controls Pin
CodingYoshi15-Nov-08 7:38
CodingYoshi15-Nov-08 7:38 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist15-Nov-08 19:27
giddy_guitarist15-Nov-08 19:27 
GeneralRe: designing a good way enable/disable controls Pin
CodingYoshi15-Nov-08 22:12
CodingYoshi15-Nov-08 22:12 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist15-Nov-08 22:25
giddy_guitarist15-Nov-08 22:25 
QuestionDatabase Engine Independant Data Modelling Pin
Brady Kelly7-Nov-08 5:03
Brady Kelly7-Nov-08 5:03 
AnswerRe: Database Engine Independant Data Modelling Pin
User 17164927-Nov-08 8:00
professionalUser 17164927-Nov-08 8: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.