清理格式错误的注释

This commit is contained in:
tfarcraw 2026-07-16 01:43:04 +08:00
parent 6057298e11
commit 40a2df6687
17 changed files with 10 additions and 157 deletions

View File

@ -159,9 +159,6 @@ namespace PLCSharp.VVMs.Connects
private string _ReceiveInfo = "";
[NotMapped]
/// <summary>
/// 收到的信息
/// </summary>
public string ReceiveInfo
{
get { return _ReceiveInfo; }
@ -172,9 +169,6 @@ namespace PLCSharp.VVMs.Connects
private byte[] _ReceiveData;
[NotMapped]
/// <summary>
/// 收到的数据
/// </summary>
public byte[] ReceiveData
{
get { return _ReceiveData; }
@ -183,9 +177,6 @@ namespace PLCSharp.VVMs.Connects
private string _SendInfo;
[NotMapped]
/// <summary>
/// 要发送的信息
/// </summary>
public string SendInfo
{
get { return _SendInfo; }
@ -257,9 +248,6 @@ namespace PLCSharp.VVMs.Connects
/// 参数集合
/// </summary>
[NotMapped]
/// <summary>
/// 连接配置
/// </summary>
public ConnectParams Params
{
get
@ -279,9 +267,6 @@ namespace PLCSharp.VVMs.Connects
/// Clients
/// </summary>
[NotMapped]
/// <summary>
/// 连接 服务器 的 客户端
/// </summary>
public ObservableCollection<Connect> Clients
{
get { return _Clients; }
@ -528,9 +513,6 @@ namespace PLCSharp.VVMs.Connects
/// 提示
/// </summary>
[JsonIgnore]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }

View File

@ -41,9 +41,6 @@ namespace PLCSharp.VVMs.GlobalVariables
/// 值
/// </summary>
[NotMapped]
/// <summary>
/// 当前值
/// </summary>
public dynamic Value
{
get => _Value;
@ -86,9 +83,6 @@ namespace PLCSharp.VVMs.GlobalVariables
/// 默认值
/// </summary>
[NotMapped]
/// <summary>
/// 初始值
/// </summary>
public dynamic DefaultValue
{
get => _DefaultValue;
@ -127,9 +121,6 @@ namespace PLCSharp.VVMs.GlobalVariables
/// RetainPersistent
/// </summary>
[Column(TypeName = "INTEGER")]
/// <summary>
/// 保持
/// </summary>
public bool RetainPersistent { get; set; }
private static bool IsValidValue(dynamic value, VariableDataType type)
@ -210,9 +201,6 @@ namespace PLCSharp.VVMs.GlobalVariables
/// 值
/// </summary>
[NotMapped]
/// <summary>
/// 当前值
/// </summary>
public dynamic Value
{
get => _Value;
@ -255,9 +243,6 @@ namespace PLCSharp.VVMs.GlobalVariables
/// 默认值
/// </summary>
[NotMapped]
/// <summary>
/// 初始值
/// </summary>
public dynamic DefaultValue
{
get => _DefaultValue;
@ -296,9 +281,6 @@ namespace PLCSharp.VVMs.GlobalVariables
/// RetainPersistent
/// </summary>
[Column(TypeName = "INTEGER")]
/// <summary>
/// 保持
/// </summary>
public bool RetainPersistent { get; set; }
private static bool IsValidValue(dynamic value, VariableDataType type)

View File

@ -66,9 +66,6 @@ namespace PLCSharp.VVMs.Homepage
/// 提示
/// </summary>
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }
@ -149,9 +146,6 @@ namespace PLCSharp.VVMs.Homepage
/// </summary>
[JsonIgnore]
[NotMapped]
/// <summary>
/// 自定义控件属性
/// </summary>
public ControlParams Params
{
get
@ -172,9 +166,6 @@ namespace PLCSharp.VVMs.Homepage
/// RangeValues
/// </summary>
[NotMapped]
/// <summary>
/// 自定义控件属性
/// </summary>
public ObservableCollection<RangeValue> RangeValues
{
get { return _RangeValues; }

View File

@ -56,9 +56,6 @@ namespace PLCSharp.VVMs.MotionController
/// 提示
/// </summary>
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }
@ -113,9 +110,6 @@ namespace PLCSharp.VVMs.MotionController
/// PowerOn
/// </summary>
[NotMapped]
/// <summary>
/// 使能
/// </summary>
public bool PowerOn
{
get { return _PowerOn; }
@ -189,9 +183,6 @@ namespace PLCSharp.VVMs.MotionController
/// Interlock
/// </summary>
[NotMapped]
/// <summary>
/// 安全联锁
/// </summary>
public AxisLock Interlock
{
get { return _Interlock; }
@ -366,9 +357,6 @@ namespace PLCSharp.VVMs.MotionController
/// Velocity
/// </summary>
[NotMapped]
/// <summary>
/// 当前速度
/// </summary>
public double Velocity
{
get { return _Velocity; }
@ -391,9 +379,6 @@ namespace PLCSharp.VVMs.MotionController
/// 参数集合
/// </summary>
[NotMapped]
/// <summary>
/// 配置项
/// </summary>
public AxisParams Params
{
get
@ -487,9 +472,6 @@ namespace PLCSharp.VVMs.MotionController
/// Rate
/// </summary>
[JsonIgnore]
/// <summary>
/// 速率 1-100
/// </summary>
public double Rate
{
get { return _Rate; }

View File

@ -271,9 +271,6 @@ namespace PLCSharp.VVMs.MotionController
/// Rate
/// </summary>
[NotMapped]
/// <summary>
/// 速率 1-100
/// </summary>
public double Rate
{
get { return _Rate; }

View File

@ -412,9 +412,6 @@ namespace PLCSharp.VVMs.MotionController
/// 提示
/// </summary>
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }
@ -426,9 +423,6 @@ namespace PLCSharp.VVMs.MotionController
/// Online
/// </summary>
[NotMapped]
/// <summary>
/// 在线
/// </summary>
public bool Online
{
get { return _Online; }
@ -440,9 +434,6 @@ namespace PLCSharp.VVMs.MotionController
/// Connected
/// </summary>
[NotMapped]
/// <summary>
/// 连接成功
/// </summary>
public bool Connected
{
get { return _Connected; }
@ -528,9 +519,6 @@ namespace PLCSharp.VVMs.MotionController
/// 参数集合
/// </summary>
[NotMapped]
/// <summary>
/// 配置项
/// </summary>
public ControllerParams Params
{
get
@ -556,9 +544,6 @@ namespace PLCSharp.VVMs.MotionController
/// 提示
/// </summary>
[JsonIgnore]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }

View File

@ -27,9 +27,6 @@ namespace PLCSharp.VVMs.MotionController
/// </summary>
[NotMapped]
[ExcelIgnore]
/// <summary>
/// 所属的控制序号
/// </summary>
public ushort ControllerNo
{
get { return _ControllerNumber; }
@ -71,9 +68,6 @@ namespace PLCSharp.VVMs.MotionController
/// </summary>
[NotMapped]
[ExcelIgnore]
/// <summary>
/// 状态
/// </summary>
public bool Status
{
get { return _Status; }
@ -104,9 +98,6 @@ namespace PLCSharp.VVMs.MotionController
/// </summary>
[NotMapped]
[ExcelIgnore]
/// <summary>
/// 所属的控制序号
/// </summary>
public ushort ControllerNo
{
get { return _ControllerNumber; }
@ -148,9 +139,6 @@ namespace PLCSharp.VVMs.MotionController
/// </summary>
[ExcelIgnore]
[NotMapped]
/// <summary>
/// 状态
/// </summary>
public bool Status
{
get { return _Status; }

View File

@ -85,9 +85,6 @@ namespace PLCSharp.VVMs.MotionController
/// 提示
/// </summary>
[JsonIgnore]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }

View File

@ -135,9 +135,6 @@ namespace PLCSharp.VVMs.MotionController
/// 参数集合
/// </summary>
[NotMapped]
/// <summary>
/// 配置项
/// </summary>
public InterpolationGroupParams Params
{
get
@ -162,9 +159,6 @@ namespace PLCSharp.VVMs.MotionController
/// 提示
/// </summary>
[JsonIgnore]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }

View File

@ -65,9 +65,6 @@ namespace PLCSharp.VVMs.Recipe
/// 提示
/// </summary>
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }

View File

@ -139,9 +139,6 @@ namespace PLCSharp.VVMs.Robots
/// 提示
/// </summary>
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }
@ -165,9 +162,6 @@ namespace PLCSharp.VVMs.Robots
/// 状态信息
/// </summary>
[NotMapped]
/// <summary>
/// 状态信息
/// </summary>
public ObservableCollection<string> StatusInfo
{
get { return _StatusInfo; }

View File

@ -181,9 +181,6 @@ namespace PLCSharp.VVMs.Robots
/// Safe
/// </summary>
[NotMapped]
/// <summary>
/// 是否安全可运行
/// </summary>
public bool Safe { get; set; } = true;
/// <summary>

View File

@ -85,9 +85,6 @@ namespace PLCSharp.VVMs.Vision.Camera
/// </summary>
[JsonIgnore]
[NotMapped]
/// <summary>
/// 日志开关
/// </summary>
public bool LogSwitch
{
get { return _LogSwitch; }
@ -115,9 +112,6 @@ namespace PLCSharp.VVMs.Vision.Camera
/// </summary>
[JsonIgnore]
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }
@ -131,9 +125,6 @@ namespace PLCSharp.VVMs.Vision.Camera
/// </summary>
[JsonIgnore]
[NotMapped]
/// <summary>
/// 连接成功
/// </summary>
public bool Connected
{
get { return _Connected; }
@ -146,9 +137,6 @@ namespace PLCSharp.VVMs.Vision.Camera
/// </summary>
[JsonIgnore]
[NotMapped]
/// <summary>
/// 相机配置
/// </summary>
public CameraParams Params
{
get

View File

@ -48,9 +48,6 @@ namespace PLCSharp.VVMs.Vision
/// 提示
/// </summary>
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }

View File

@ -30,9 +30,6 @@ namespace PLCSharp.VVMs.Vision
private string _StrValue;
[JsonIgnore]
/// <summary>
/// 变量值的文本表示(UI 显示用,反序列化后自动计算)
/// </summary>
public string StrValue
{
get { return _StrValue; }

View File

@ -9,7 +9,6 @@ using PLCSharp.VVMs.Vision.VisionFlowHandler.Access;
using PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm;
using PLCSharp.VVMs.Vision.VisionFlowHandler.Processing;
using Prism.Mvvm;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@ -55,9 +54,6 @@ namespace PLCSharp.VVMs.Vision
/// 提示
/// </summary>
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }
@ -92,11 +88,18 @@ namespace PLCSharp.VVMs.Vision
get { return _ControlName; }
set { SetProperty(ref _ControlName, value); }
}
#region 结果
public Pos Pos { get; set; }
#endregion
[NotMapped]
/// <summary>
/// 编辑时显示的控件
/// </summary>
[NotMapped]
public ImageEdit EditImageEdit { get; set; }
@ -218,10 +221,10 @@ namespace PLCSharp.VVMs.Vision
{
var customControl = GlobalModel.GetCustomControl(ControlName);
if (customControl != null && Src!=null)
if (customControl != null && Src != null)
{
customControl.ShowMat(Src);
}
flow.Done = true;
@ -297,16 +300,10 @@ namespace PLCSharp.VVMs.Vision
};
[NotMapped]
/// <summary>
/// 全局模型
/// </summary>
public GlobalModel GlobalModel { get; set; }
[NotMapped]
/// <summary>
/// 绘制命令列表,用于在图像上绘制线条、圆形等图形
/// </summary>
public List<DrawCommand> DrawCommands { get; set; } = [];
public async Task RenderDrawAsync()
{

View File

@ -48,9 +48,6 @@ namespace PLCSharp.VVMs.Workflows
/// 提示
/// </summary>
[NotMapped]
/// <summary>
/// 提示
/// </summary>
public string Prompt
{
get { return _Prompt; }
@ -129,9 +126,6 @@ namespace PLCSharp.VVMs.Workflows
/// IsCompiled
/// </summary>
[NotMapped]
/// <summary>
/// 已编译
/// </summary>
public bool IsCompiled
{
get { return _IsCompiled; }
@ -160,9 +154,6 @@ namespace PLCSharp.VVMs.Workflows
/// Debug日志
/// </summary>
[NotMapped]
/// <summary>
/// 调试日志
/// </summary>
public string DebugLog
{
get { return _DebugLog; }
@ -175,9 +166,6 @@ namespace PLCSharp.VVMs.Workflows
/// 异常
/// </summary>
[NotMapped]
/// <summary>
/// 异常
/// </summary>
public bool Exception
{
get { return _Exception; }