Commit 96a1aa4d authored by 潘栩锋's avatar 潘栩锋 🚴

修改 FlyADIODefine 使用方式

parent 0a2abf41
...@@ -9,7 +9,7 @@ namespace FLY.Thick.FilmCasting.Common ...@@ -9,7 +9,7 @@ namespace FLY.Thick.FilmCasting.Common
{ {
public class FlyADIODefine : FLY.Thick.Base.Common.FlyADIODefine public class FlyADIODefine : FLY.Thick.Base.Common.FlyADIODefine
{ {
public static new FlyADIODefine Instance { get; } = new FlyADIODefine(); public static new FlyADIODefine Instance => (FlyADIODefine)instance;
protected override List<string> GetInputPropertyNames() protected override List<string> GetInputPropertyNames()
{ {
...@@ -32,12 +32,5 @@ namespace FLY.Thick.FilmCasting.Common ...@@ -32,12 +32,5 @@ namespace FLY.Thick.FilmCasting.Common
nameof(OutNo_Alarm) nameof(OutNo_Alarm)
}; };
} }
public override void SerVersion(int version)
{
base.SerVersion(version);
FLY.Thick.Base.Common.FlyADIODefine.Instance.SerVersion(version);
}
} }
} }
...@@ -394,6 +394,7 @@ namespace FLY.Thick.FilmCasting.Server ...@@ -394,6 +394,7 @@ namespace FLY.Thick.FilmCasting.Server
flyAd.Connect(); flyAd.Connect();
Misc.BindingOperations.SetBinding(flyAd, nameof(flyAd.HardwareVersion), () => { Misc.BindingOperations.SetBinding(flyAd, nameof(flyAd.HardwareVersion), () => {
FlyADIODefine.SetInstance(new FlyADIODefine());
FlyADIODefine.Instance.SerVersion(flyAd.HardwareVersion); FlyADIODefine.Instance.SerVersion(flyAd.HardwareVersion);
}); });
......
Subproject commit 0733b5933b497a657888c12eca4c185006ed3eb1 Subproject commit 8a75715ab789e1ce34bf259776ea6ad9eb5dc68b
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment