8 using System.ComponentModel.Composition;
11 using B2SServerPluginInterface;
14 using System.Windows.Forms;
20 namespace B2SServerSamplePluginCSharp
32 [Export(typeof(IDirectPlugin))]
36 #region IDirectPlugin Members
52 Version V =System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
54 DateTime BuildDate =
new DateTime(2000, 1, 1).AddDays(V.Build).AddSeconds(V.Revision * 2);
56 return string.Format(
"Sample Plugin C# (V: {0} as of {1})",V.ToString(), BuildDate.ToString(
"yyyy.MM.dd hh:mm"));
67 public void PluginInit(
string TableFilename,
string RomName)
92 public void DataReceive(
char TableElementTypeChar,
int Number,
int Value)
99 #region IDirectPluginPinMame Members
130 #region IDirectPluginFrontend Members
143 foreach (Form F
in Application.OpenForms)
145 if (F.GetType() == typeof(
Frontend))
170 #region Constructor of the class