S
SteveR
Based on Tom Shelton's recommendation to use an interface class to manage
multiple .dll's, I started to write one but got stuck when it came to the
event. I have the following event in my .dll's:
public event EventHandler<PlayStateArgs> PlayStateEvent;
public class PlayStateArgs : EventArgs
{
private readonly string _strData;
public PlayStateArgs(string strData)
{
_strData = strData;
}
public string strData { get { return _strData; }}
}
I can create the event in the interface like:
public interface IVideo
{
event EventHandler PlayStateEvent;
}
But I don't know what to do about the <PlayStateArgs> part... How do you
write this?
multiple .dll's, I started to write one but got stuck when it came to the
event. I have the following event in my .dll's:
public event EventHandler<PlayStateArgs> PlayStateEvent;
public class PlayStateArgs : EventArgs
{
private readonly string _strData;
public PlayStateArgs(string strData)
{
_strData = strData;
}
public string strData { get { return _strData; }}
}
I can create the event in the interface like:
public interface IVideo
{
event EventHandler PlayStateEvent;
}
But I don't know what to do about the <PlayStateArgs> part... How do you
write this?