Click here to Skip to main content
15,888,461 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
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 
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 
led mike wrote:
How are any of the options you posted in your first post, part of the MVC design?


I never said my options had anything to do with MVC pattern. I use MVC pattern but in this case my question is not about MVC. My question is closely related to the observer pattern. You have an object of a class which is being observed by the form by subscribing to its events. Now when the user selects a different object from a treeview (or whatever), this class will become the new object the form is observing and the form should display its data. But the form can only do so once the object fires the event. But the object will fire the event when its state changes so the form has to wait until the user changes the state of the object. So now we are stuck because this is what has been happening so far:

First an object was selected from the treeview. The object is sent to the form. The form subscribes to its events. The events are not fired so how do we display it?

The solution I came up with is to trigger the event through a public method--just like we can trigger events in .NET by calling OnPaint. Now the form can display the data.

So I think the answer to my question is to set the property and send a reference of the object to the form. Afterwards, force the objects event by triggering it through a public method. But I am still not sure if this a good solution.
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
Jani 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 
AnswerRe: Database Engine Independant Data Modelling Pin
Eduardo B16-Nov-08 13:51
Eduardo B16-Nov-08 13:51 
GeneralPart One of a Series on Replicating Validation Logic Between Client and Server [modified] Pin
Brady Kelly7-Nov-08 3:42
Brady Kelly7-Nov-08 3:42 
QuestionHi there :) Please help me Pin
viashivan5-Nov-08 5:05
viashivan5-Nov-08 5:05 
AnswerRe: Hi there :) Please help me Pin
Vimalsoft(Pty) Ltd17-Nov-08 19:55
professionalVimalsoft(Pty) Ltd17-Nov-08 19:55 

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.