This commit is contained in:
parent
c9b118bbe0
commit
4c1cf28f31
4 changed files with 33 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ using System.IO.Ports;
|
||||||
|
|
||||||
namespace DMX2
|
namespace DMX2
|
||||||
{
|
{
|
||||||
public class DriverBoitierV1 : DriverDMX
|
public class DriverBoitierV1 : DriverDMX, IEventProvider
|
||||||
{
|
{
|
||||||
// tampons Entrée/Sortie
|
// tampons Entrée/Sortie
|
||||||
byte[] inputbuffer = new byte[1];
|
byte[] inputbuffer = new byte[1];
|
||||||
|
|
@ -134,6 +134,35 @@ namespace DMX2
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region IEventProvider implementation
|
||||||
|
bool IEventProvider.Bind (string eventId)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void IEventProvider.Unbind (string eventId)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException ();
|
||||||
|
}
|
||||||
|
|
||||||
|
Gtk.Menu IEventProvider.GetProviderSubMenu (EventManager.EventMenuData state, Gtk.ButtonPressEventHandler handler)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException ();
|
||||||
|
}
|
||||||
|
|
||||||
|
void IEventProvider.ProcessEvents (EventManagerCallback callback)
|
||||||
|
{
|
||||||
|
throw new System.NotImplementedException ();
|
||||||
|
}
|
||||||
|
|
||||||
|
string IEventProvider.MenuName {
|
||||||
|
get {
|
||||||
|
return "Boitier V1";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace DMX2
|
||||||
public interface IEventProvider
|
public interface IEventProvider
|
||||||
{
|
{
|
||||||
string MenuName{ get; }
|
string MenuName{ get; }
|
||||||
ICollection<string> GetEventList();
|
//ICollection<string> GetEventList();
|
||||||
bool Bind (string eventId);
|
bool Bind (string eventId);
|
||||||
void Unbind (string eventId);
|
void Unbind (string eventId);
|
||||||
Gtk.Menu GetProviderSubMenu( EventManager.EventMenuData state, Gtk.ButtonPressEventHandler handler );
|
Gtk.Menu GetProviderSubMenu( EventManager.EventMenuData state, Gtk.ButtonPressEventHandler handler );
|
||||||
|
|
|
||||||
|
|
@ -42,10 +42,10 @@ namespace DMX2
|
||||||
|
|
||||||
|
|
||||||
#region IEventProvider implementation
|
#region IEventProvider implementation
|
||||||
ICollection<string> IEventProvider.GetEventList ()
|
/*ICollection<string> IEventProvider.GetEventList ()
|
||||||
{
|
{
|
||||||
return eventlist.Keys;
|
return eventlist.Keys;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
bool IEventProvider.Bind (string eventId)
|
bool IEventProvider.Bind (string eventId)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -478,7 +478,6 @@ namespace DMX2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO : implementer commandes seqmaitre
|
|
||||||
static System.Text.RegularExpressions.Regex regexCommand1 = new System.Text.RegularExpressions.Regex(
|
static System.Text.RegularExpressions.Regex regexCommand1 = new System.Text.RegularExpressions.Regex(
|
||||||
@"(?<effet>\d+)(t(?<transition>\d+))?",
|
@"(?<effet>\d+)(t(?<transition>\d+))?",
|
||||||
System.Text.RegularExpressions.RegexOptions.Compiled);
|
System.Text.RegularExpressions.RegexOptions.Compiled);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue