IO板卡系统优化

This commit is contained in:
hsc
2026-07-13 15:10:49 +08:00
parent b6b767cf0a
commit 3318c720b7
9 changed files with 95 additions and 13 deletions

View File

@@ -47,22 +47,48 @@ namespace UIShare.GlobalVariable
{
Category = ParameterCategory.Input,
Type = typeof(int),
Name = "继电器占位1",
Name = "单相充电",
Value = 0,
IsEditable=false
},
new ParameterVM
{
Category = ParameterCategory.Input,
Type = typeof(int),
Name = "继电器占位2",
Name = "抛负载",
Value = 1,
},
IsEditable=false
},
new ParameterVM
{
Category = ParameterCategory.Input,
Type = typeof(int),
Name = "短路测试",
Value = 0,
IsEditable=false
}, new ParameterVM
{
Category = ParameterCategory.Input,
Type = typeof(int),
Name = "初始化供电",
Value = 0,
IsEditable=false
},
new ParameterVM
{
Category = ParameterCategory.Input,
Type = typeof(int),
Name = "蜂鸣器",
Value = 1,
IsEditable=false
},
new ParameterVM
{
Category = ParameterCategory.Input,
Type = typeof(int),
Name = "CAN通道",
Value = 0,
IsEditable=false
},
new ParameterVM
{
@@ -70,6 +96,7 @@ namespace UIShare.GlobalVariable
Type = typeof(int),
Name = "示波器通道",
Value = 0,
IsEditable=false
},
new ParameterVM
{
@@ -77,6 +104,7 @@ namespace UIShare.GlobalVariable
Type = typeof(int),
Name = "功率分析仪通道1",
Value = 0,
IsEditable=false
},
new ParameterVM
{
@@ -84,6 +112,7 @@ namespace UIShare.GlobalVariable
Type = typeof(int),
Name = "功率分析仪通道2",
Value = 0,
IsEditable=false
},
};
// public ObservableCollection<DeviceInfoVM> DeviceList { get; set; } = new()

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UIShare.PubEvent
{
public class SilenceBuzzerEvent:PubSubEvent<string>
{
}
}

View File

@@ -44,6 +44,12 @@ namespace UIShare.UIViewModel
{
get => _isVisible;
set => SetProperty(ref _isVisible, value);
}
private bool _isEditable = true;
public bool IsEditable
{
get => _isEditable;
set => SetProperty(ref _isEditable, value);
}
private string _name;