修改config
This commit is contained in:
19
DH.Process/DH.Process.csproj
Normal file
19
DH.Process/DH.Process.csproj
Normal file
@ -0,0 +1,19 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<BaseOutputPath>..\</BaseOutputPath>
|
||||
<AppendTargetFrameworkToOutputPath>output</AppendTargetFrameworkToOutputPath>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<Platforms>AnyCPU;x64</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DH.Commons.Devies\DH.Commons.Devies.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
49
DH.Process/XKRS.Process.cs
Normal file
49
DH.Process/XKRS.Process.cs
Normal file
@ -0,0 +1,49 @@
|
||||
using DH.Commons.Enums;
|
||||
using DH.Devices.Devices;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing.Design;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace DH.Process
|
||||
{
|
||||
|
||||
public class ProcessConfigBase
|
||||
{
|
||||
[JsonPropertyName("station_code")]
|
||||
public string StationCode { get; set; }
|
||||
|
||||
|
||||
#region 设备配置
|
||||
[Category("设备配置")]
|
||||
[Description("相机配置")]
|
||||
[DisplayName("相机配置")]
|
||||
[JsonPropertyName("camera_config_collection")]
|
||||
//[TypeConverter(typeof(CollectionCountConvert))]
|
||||
//[Editor(typeof(InitialConfigCollectionEditor<CameraInitialConfigBase>), typeof(UITypeEditor))]
|
||||
public List<CameraBase> CameraConfigCollection { get; set; } = new List<CameraBase>();
|
||||
|
||||
|
||||
[Category("设备配置")]
|
||||
[Description("模型配置")]
|
||||
[DisplayName("模型配置")]
|
||||
[JsonPropertyName("detection_config_collection")]
|
||||
//[TypeConverter(typeof(CollectionCountConvert))]
|
||||
//[Editor(typeof(InitialConfigCollectionEditor<CameraInitialConfigBase>), typeof(UITypeEditor))]
|
||||
public List<DetectionConfig> DetectionConfigCollection { get; set; } = new List<DetectionConfig>();
|
||||
|
||||
// [Category("设备配置")]
|
||||
// [Description("PLC配置")]
|
||||
// [DisplayName("PLC配置")]
|
||||
// [TypeConverter(typeof(CollectionCountConvert))]
|
||||
// [Editor(typeof(InitialConfigCollectionEditor<PLCInitialConfigBase>), typeof(UITypeEditor))]
|
||||
// public List<IInitialConfig> PLCConfigCollection { get; set; } = new List<IInitialConfig>();
|
||||
|
||||
// [Category("设备配置")]
|
||||
// [Description("其他设备配置")]
|
||||
// [DisplayName("其他设备配置")]
|
||||
// [TypeConverter(typeof(CollectionCountConvert))]
|
||||
// [Editor(typeof(InitialConfigCollectionEditor<InitialConfigBase>), typeof(UITypeEditor))]
|
||||
// public List<IInitialConfig> DeviceConfigs { get; set; } = new List<IInitialConfig>();
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user