Friday, April 28, 2006

Event Manager Code - EventManagerArgs.cs

These are two minor argument classes that are used to send information from the event publisher to the subscriber. The args are sent as the third parameter in the EventManager.Fire() function.


using System;

namespace Magmasystems.EventManager
{
///
/// Summary description for EventManagerArgs.
///

public class EventManagerArgs : EventArgs
{
public EventManagerArgs()
{
}
}

// This is used to pass string data between the publisher and subscriber
public class EventManagerMessageArgs : EventManagerArgs
{
private string _message;

public EventManagerMessageArgs(string msg)
{
this._message = msg;
}

public string Message
{
get { return this._message; }
}
}
}



©2006 Marc Adler - All Rights Reserved

No comments: