using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace AiControlRequest { /// /// 脚本执行返回数据类型 /// public enum CallbackDataType { /// /// 执行脚本命令 /// Command, /// /// 返回数据 /// ReturnData, /// /// 其他信息 /// Info, /// /// 进度信息 /// Progress, /// /// 参数错误信息 /// ParameterError } /// /// function:ControlData,用于接收异步后台控件更新数据 /// author :lbf /// date :2020/5/20 15:27:42 /// public class ControlData { /// /// 控件 /// public Control Control { get; set; } /// /// 返回结果时,带的索引 /// public int Index { get; set; } /// /// 返回数据类型 /// public CallbackDataType CallbackDataType { get; set; } /// /// 返回数据,根据CallbackDataType,数据分为不同类型 /// public string DataString { get; set; } } /// /// 检测参数 /// public class DetectParams { /// /// 带状横竖参数 /// [JsonProperty(PropertyName = "YGXG-DZ")] public YGXG_DZ YGXG_DZ { get; set; } } /// /// 带状横竖参数,h横向,v竖向 /// public class YGXG_DZ { public string direction { get; set; } } }