Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Use a ComboBoxCell to update textboxcell on a Binded Datagridview Pin
Henry Minute14-Dec-10 7:10
Henry Minute14-Dec-10 7:10 
GeneralRe: Use a ComboBoxCell to update textboxcell on a Binded Datagridview Pin
Henry Minute14-Dec-10 7:58
Henry Minute14-Dec-10 7:58 
GeneralRe: Use a ComboBoxCell to update textboxcell on a Binded Datagridview Pin
olibara14-Dec-10 23:30
olibara14-Dec-10 23:30 
QuestionEvent for checking if a delegate/anonymous method result changed Pin
hoernchenmeister14-Dec-10 3:40
hoernchenmeister14-Dec-10 3:40 
AnswerRe: Event for checking if a delegate/anonymous method result changed Pin
Abhinav S14-Dec-10 5:14
Abhinav S14-Dec-10 5:14 
GeneralRe: Event for checking if a delegate/anonymous method result changed Pin
hoernchenmeister14-Dec-10 5:45
hoernchenmeister14-Dec-10 5:45 
AnswerRe: Event for checking if a delegate/anonymous method result changed Pin
Ian Shlasko14-Dec-10 5:25
Ian Shlasko14-Dec-10 5:25 
GeneralRe: Event for checking if a delegate/anonymous method result changed Pin
hoernchenmeister14-Dec-10 5:43
hoernchenmeister14-Dec-10 5:43 
That sounds pretty good.

The reason for dealing with this is to have some kind of watcher that is able to be fed with Control objects in order to tell if
something has changed in one control or a group of controls and saving is required.

So I am dealing with List<Control> where Control does not provide the PropertyChanged interface.

I already implemented TextChanged for those Control objects to raise the "SomethingHasChangedEvent".

So far everything works fine.

The delegate option is an addon for cases where something else has to be watched instead of a Control object.
Let's assume a function that checks some DataGrid fields or whatever, cases where I do not want to register a lot of Controls to get a TextChanged handler attached.

After thinking about this for a while I recognized that asking the watcher if it is "dirty" and going through the delegate list for checking this might be enough.
On the other hand, why not providing this event, it might become useful later... yeah, and I like events too Wink | ;)

The timer-idea just does not feel well... I have no idea how many work these delegates actually perform, so performance might become an issue later.
GeneralRe: Event for checking if a delegate/anonymous method result changed Pin
Ian Shlasko14-Dec-10 6:07
Ian Shlasko14-Dec-10 6:07 
GeneralRe: Event for checking if a delegate/anonymous method result changed Pin
hoernchenmeister14-Dec-10 6:33
hoernchenmeister14-Dec-10 6:33 
GeneralRe: Event for checking if a delegate/anonymous method result changed Pin
Ian Shlasko14-Dec-10 7:30
Ian Shlasko14-Dec-10 7:30 
GeneralRe: Event for checking if a delegate/anonymous method result changed Pin
hoernchenmeister14-Dec-10 20:38
hoernchenmeister14-Dec-10 20:38 
QuestionDynamic Polymorphism Pin
Baji Jabbar13-Dec-10 23:31
Baji Jabbar13-Dec-10 23:31 
AnswerRe: Dynamic Polymorphism Pin
Hiren solanki13-Dec-10 23:48
Hiren solanki13-Dec-10 23:48 
AnswerRe: Dynamic Polymorphism Pin
Richard MacCutchan13-Dec-10 23:49
mveRichard MacCutchan13-Dec-10 23:49 
GeneralRe: Dynamic Polymorphism Pin
Hiren solanki13-Dec-10 23:57
Hiren solanki13-Dec-10 23:57 
GeneralRe: Dynamic Polymorphism Pin
Baji Jabbar14-Dec-10 0:00
Baji Jabbar14-Dec-10 0:00 
GeneralRe: Dynamic Polymorphism Pin
Pete O'Hanlon14-Dec-10 0:43
mvePete O'Hanlon14-Dec-10 0:43 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan14-Dec-10 1:02
mveRichard MacCutchan14-Dec-10 1:02 
Questionadding new data over ProcessLayer Pin
Erdinc2713-Dec-10 22:12
Erdinc2713-Dec-10 22:12 
AnswerRe: adding new data over ProcessLayer Pin
Hiren solanki13-Dec-10 23:17
Hiren solanki13-Dec-10 23:17 
GeneralRe: adding new data over ProcessLayer Pin
Erdinc2713-Dec-10 23:46
Erdinc2713-Dec-10 23:46 
AnswerRe: adding new data over ProcessLayer Pin
Hiren solanki13-Dec-10 23:55
Hiren solanki13-Dec-10 23:55 
GeneralRe: adding new data over ProcessLayer Pin
Erdinc2714-Dec-10 0:15
Erdinc2714-Dec-10 0:15 
AnswerRe: adding new data over ProcessLayer Pin
Hiren solanki14-Dec-10 0:23
Hiren solanki14-Dec-10 0:23 

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.