Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Observer Design Pattern (Delegates/Events)

, 9 Aug 2009 CPOL
This article uses Delegates/Events to implement an Observer Design Pattern.
ObserverDP_src.zip
www.askbargains.com
www.askbargains.com.ObserverDesignPartternClient
bin
Debug
www.askbargains.com.ObserverDesignPartternClient.exe
www.askbargains.com.ObserverDesignPartternClient.pdb
www.askbargains.com.ObserverDesignPartternClient.vshost.exe
www.askbargains.com.ObserverDesignPartternClient.vshost.exe.manifest
www.askbargains.com.ObserverDesignPartternLib.dll
www.askbargains.com.ObserverDesignPartternLib.pdb
obj
Debug
ResolveAssemblyReference.cache
TempPE
www.askbargains.com.ObserverDesignPartternClient.exe
www.askbargains.com.ObserverDesignPartternClient.pdb
Properties
www.askbargains.com.ObserverDesignPartternLib
bin
Debug
www.askbargains.com.ObserverDesignPartternLib.dll
www.askbargains.com.ObserverDesignPartternLib.pdb
obj
Debug
TempPE
www.askbargains.com.ObserverDesignPartternLib.dll
www.askbargains.com.ObserverDesignPartternLib.pdb
ObserverClassDiagram.cd
Properties
www.askbargains.com.suo
Observer_src.zip
www.askbargains.com.ObserverDesignPartternClient.exe
www.askbargains.com.ObserverDesignPartternClient.vshost.exe
www.askbargains.com.ObserverDesignPartternClient.vshost.exe.manifest
www.askbargains.com.ObserverDesignPartternLib.dll
www.askbargains.com.ObserverDesignPartternLib.dll
www.askbargains.com.ObserverDesignPartternLib.pdb
Refactor
www.askbargains.com.ObserverDesignPartternLib.dll
www.askbargains.com.ObserverDesignPartternLib.dll
www.askbargains.com.ObserverDesignPartternLib.pdb
ObserverClassDiagram.cd
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("www.askbargains.com.ObserverDesignPartternLib")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("www.askbargains.com.ObserverDesignPartternLib")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2009")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("a7fbf13c-fe68-4d2b-9d8a-c0adbdfe0b63")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers 
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Allen _ Wang
Architect
United States United States
Sr Software Architect.Microsoft Certified Solutions Developer (MCSD).

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 9 Aug 2009
Article Copyright 2009 by Allen _ Wang
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid