一些优化:CAN和PLC地址的优化
This commit is contained in:
@@ -288,7 +288,7 @@ namespace CapMachine.Shared.Controls
|
||||
{
|
||||
//HandValueParameter 此时无法更新到最新的值(旧值),可能因为RaisePropertyChanged在ViewModel上,不受这边的控制了,所以直接取控件的数据
|
||||
//HandValueParameter 没有使用,直接取控件的值,HandValueParameter作为初始值使用
|
||||
if (int.TryParse(HandValueMV.Text, out int Result))
|
||||
if (double.TryParse(HandValueMV.Text, out double Result))
|
||||
{
|
||||
//把整个控件打包发送过去,无法访问Textbox的值,那么直接传送模型的数据给ViewModel
|
||||
HandValueCommand.Execute(new MeterChannelValue() { Name = MeterName, Value = Result,Type="MV" });
|
||||
|
||||
Reference in New Issue
Block a user