2004-10-28, 07:44 AM
Hi,
I'm trying to develop a LCD plugin (LIS VL Sytem display), I did the whole display part (in Delphi, as it's my world), but now I trying to get the events working. For that, I modified the Comics Plugin to add event notifications, but after many tries (It's my third day in C#) I don't realy know what to modify (I read other threads about notifications, but it does not help me at all). I try to write a string when receiving events (I play a net radio or a mp3 file in music library for that).
Thanks for showing me the good way.
Bzh
=========================================
using System;
...
namespace GBPVR.Public
{
public enum EventTypes
{
CurrentAudioTrack,
CurrentVideoTrack,
CurrentTrackDuration,
CurrentChannelNumber,
CurrentChannelName,
};
public interface IEventNotification
{
void Notify(EventTypes eventType, string eventText);
}
}
namespace ComicPlugin
{
...
public void Notify(EventTypes eventType, string eventText)
{
System.Diagnostics.Debug.WriteLine("Event"
}
...
}
=========================================
I'm trying to develop a LCD plugin (LIS VL Sytem display), I did the whole display part (in Delphi, as it's my world), but now I trying to get the events working. For that, I modified the Comics Plugin to add event notifications, but after many tries (It's my third day in C#) I don't realy know what to modify (I read other threads about notifications, but it does not help me at all). I try to write a string when receiving events (I play a net radio or a mp3 file in music library for that).
Thanks for showing me the good way.
Bzh
=========================================
using System;
...
namespace GBPVR.Public
{
public enum EventTypes
{
CurrentAudioTrack,
CurrentVideoTrack,
CurrentTrackDuration,
CurrentChannelNumber,
CurrentChannelName,
};
public interface IEventNotification
{
void Notify(EventTypes eventType, string eventText);
}
}
namespace ComicPlugin
{
...
public void Notify(EventTypes eventType, string eventText)
{
System.Diagnostics.Debug.WriteLine("Event"
}
...
}
=========================================