refactor: 将Framework库和RT、UI放在同一个解决方案中。

This commit is contained in:
SL
2026-06-01 17:48:28 +08:00
parent 1948f4290d
commit b73d39a6b1
4331 changed files with 506148 additions and 49363 deletions
@@ -0,0 +1,42 @@
using MECF.Framework.Common.Communications;
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Temps
{
public abstract class StrongTempHandler : HandlerBase
{
public StrongTemp Device { get; }
protected StrongTempHandler(StrongTemp device, byte[] commandvalue) : base(commandvalue)
{
Device = device;
}
}
public class StrongTempQueryHandler : StrongTempHandler
{
public StrongTempQueryHandler(StrongTemp device, string name, byte[] commandvalue)
: base(device, commandvalue)
{
Name = name;//"Query Temp";
}
public override bool HandleMessage(MessageBase msg, out bool handled)
{
var result = msg as BinaryMessage;
handled = false;
if (result.IsError)
{
Device.ResponseError();
return false;
}
if (!result.IsComplete)
{
return false;
}
Device.ResponseQuery(Name, result.RawMessage);
return true;
}
}
}