IO板卡系统优化
This commit is contained in:
@@ -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()
|
||||
|
||||
12
UIShare/PubEvent/SilenceBuzzerEvent.cs
Normal file
12
UIShare/PubEvent/SilenceBuzzerEvent.cs
Normal 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>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user