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

C#

 
GeneralRe: More than one table in DataSet Pin
Meysam Mahfouzi30-Aug-03 17:40
Meysam Mahfouzi30-Aug-03 17:40 
GeneralRe: More than one table in DataSet Pin
Andres Manggini31-Aug-03 13:09
Andres Manggini31-Aug-03 13:09 
GeneralRe: More than one table in DataSet Pin
Mazdak31-Aug-03 20:37
Mazdak31-Aug-03 20:37 
GeneralRe: More than one table in DataSet Pin
james-cxx3-Sep-03 13:05
james-cxx3-Sep-03 13:05 
GeneralRe: More than one table in DataSet Pin
Mazdak3-Sep-03 20:26
Mazdak3-Sep-03 20:26 
GeneralImplementing an Object.OnChange event Pin
bzurer30-Aug-03 1:25
bzurer30-Aug-03 1:25 
GeneralRe: Implementing an Object.OnChange event Pin
Philip Fitzsimons30-Aug-03 3:34
Philip Fitzsimons30-Aug-03 3:34 
GeneralRe: Implementing an Object.OnChange event Pin
bzurer30-Aug-03 8:15
bzurer30-Aug-03 8:15 
Maybe I was too vague. Clearly the overall architecture would have to use delegates and/or events. The problem is how to centralize the code which winds up calling them.

Assume that the ancesctor class Publisher maintans an internal list of Subscribers. Each time something changes the Publisher descendent calls NotifySubscribers(). Each subscriber is instructed to fire a delegate with a specified signature. This is the Observer pattern.

If I have an object with two properties

public class MyObject : Publisher
{
private object propA
public object PropA
{
get{return propA;}
set
{
NotifySubscribers{this); <-- I Don't want this here
propA = value;
)
}
private object propB
public object PropB
{
get{return propA;}
set
{
NotifySubscribers{this); <-- because it has to be repeated here and everywhere else
propA = value;
)
}
}

What I am asking is I think deeper into the .Net Framework than I have gone.

Robert Zurer
GeneralRe: Implementing an Object.OnChange event Pin
Philip Fitzsimons30-Aug-03 9:55
Philip Fitzsimons30-Aug-03 9:55 
GeneralRe: Implementing an Object.OnChange event Pin
bzurer30-Aug-03 10:43
bzurer30-Aug-03 10:43 
QuestionHow to get the Focused Form...? Pin
EvanChen99929-Aug-03 21:33
EvanChen99929-Aug-03 21:33 
Generalclass not showing up Pin
Member 50926229-Aug-03 17:14
Member 50926229-Aug-03 17:14 
GeneralRe: class not showing up Pin
TigerNinja_29-Aug-03 19:32
TigerNinja_29-Aug-03 19:32 
GeneralRe: class not showing up Pin
Member 50926230-Aug-03 15:42
Member 50926230-Aug-03 15:42 
GeneralRe: class not showing up Pin
TigerNinja_29-Aug-03 20:26
TigerNinja_29-Aug-03 20:26 
GeneralProject settings do not seem to save /unsafe compiler switch Pin
cognitive_psych29-Aug-03 12:58
cognitive_psych29-Aug-03 12:58 
GeneralRe: Project settings do not seem to save /unsafe compiler switch Pin
leppie29-Aug-03 13:44
leppie29-Aug-03 13:44 
GeneralRe: Project settings do not seem to save /unsafe compiler switch Pin
cognitive_psych29-Aug-03 16:26
cognitive_psych29-Aug-03 16:26 
Generalxml to DB c# Pin
Member 42486029-Aug-03 11:48
Member 42486029-Aug-03 11:48 
GeneralRe: xml to DB c# Pin
TigerNinja_29-Aug-03 19:36
TigerNinja_29-Aug-03 19:36 
GeneralProgress Bar Pin
Felipe Rezende29-Aug-03 9:48
Felipe Rezende29-Aug-03 9:48 
GeneralRe: Progress Bar Pin
leppie29-Aug-03 14:25
leppie29-Aug-03 14:25 
GeneralRe: Progress Bar Pin
David Stone29-Aug-03 20:11
sitebuilderDavid Stone29-Aug-03 20:11 
QuestionInstance of struct = Object? Pin
Alvaro Mendez29-Aug-03 9:07
Alvaro Mendez29-Aug-03 9:07 
AnswerRe: Instance of struct = Object? Pin
David Stone29-Aug-03 10:27
sitebuilderDavid Stone29-Aug-03 10:27 

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.