using TeamAAS.Communication.Interfaces; namespace TeamAAS.Communication.UI { /// /// 通讯设备调试页约定:宿主(设置页的通讯管理)选中通讯设备后,把运行中的设备实例绑定给页面。 /// 想为某个品牌/型号定制专属调试页,让页面(FrameworkElement 子类)实现此接口, /// 并在该设备类的 [Communication] 特性上通过 指定即可。 /// 未指定时宿主使用通用的通讯测试面板。 /// public interface ICommunicationDebugPage { /// 绑定通讯设备实例(选中该设备/页面被装载时调用)。 void BindCommunication(ICommunication communication); /// 解绑通讯设备实例(切换设备/页面被卸载时调用,页面应停止使用设备并清理界面状态)。 void UnbindCommunication(); } }