Uncoupling Delegates/Objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • James Smyth

    Uncoupling Delegates/Objects

    I currently have a .NET Form application which has a seperate thread invoking
    delegates of the MainForm in order to have the main thread update the form's
    controls.

    I would like to move the secondary thread's behavior into another class, eg.
    MyClass, but I would like MyClass to be completely uncoupled from the form,
    so that it might be re-used in another application setting, eg. a service.

    What is the .NET paradigm for "communicat ing" between objects, so that I
    don't have to include, for instance, references to a delegate of a MainForm
    method within MyClass? Or am I ignorant of some feature of the .NET delegate
    paradigm?

    Any help, or directions to reading, would be greatly appreciated.

    --
    James Smyth
Working...