修改一点界面
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
using System.ComponentModel;
|
||||
using System.Drawing.Imaging;
|
||||
using AntdUI;
|
||||
using DH.Commons.Enums;
|
||||
using OpenCvSharp;
|
||||
|
||||
namespace DH.Commons.Base
|
||||
@ -10,11 +11,13 @@ namespace DH.Commons.Base
|
||||
{
|
||||
// 私有字段 + 带通知的属性(与DetectionLabel风格一致)
|
||||
private bool _isEnabled = false;
|
||||
private bool _isallPicEnabled = true;//默认全画幅
|
||||
private bool _isContinueMode = false;
|
||||
private bool _isSavePicEnabled = false;
|
||||
private string _imageSaveDirectory;
|
||||
private EnumCamType _CamType;
|
||||
private ImageFormat _imageFormat = ImageFormat.Jpeg;
|
||||
private bool _isHardwareTrigger = false;
|
||||
private bool _isHardwareTrigger = true;
|
||||
private string _serialNumber = string.Empty;
|
||||
private string _cameraName = string.Empty;
|
||||
private string _cameraIP = string.Empty;
|
||||
@ -56,7 +59,16 @@ namespace DH.Commons.Base
|
||||
OnPropertyChanged(nameof(IsEnabled));
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool IsAllPicEnabled
|
||||
{
|
||||
get => _isallPicEnabled;
|
||||
set
|
||||
{
|
||||
if (_isallPicEnabled == value) return;
|
||||
_isallPicEnabled = value;
|
||||
OnPropertyChanged(nameof(IsAllPicEnabled));
|
||||
}
|
||||
}
|
||||
public virtual bool IsSavePicEnabled
|
||||
{
|
||||
get => _isSavePicEnabled;
|
||||
@ -95,6 +107,19 @@ namespace DH.Commons.Base
|
||||
OnPropertyChanged(nameof(ImageFormat));
|
||||
}
|
||||
}
|
||||
[Category("设备配置")]
|
||||
[DisplayName("相机类型")]
|
||||
[Description("相机类型")]
|
||||
public EnumCamType CamType
|
||||
{
|
||||
get => _CamType;
|
||||
set
|
||||
{
|
||||
if (_CamType == value) return;
|
||||
_CamType = value;
|
||||
OnPropertyChanged(nameof(CamType));
|
||||
}
|
||||
}
|
||||
|
||||
[Category("采图模式")]
|
||||
[DisplayName("硬触发")]
|
||||
|
12
DH.Commons/Base/GloablConfig.cs
Normal file
12
DH.Commons/Base/GloablConfig.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DH.Commons.Base
|
||||
{
|
||||
internal class GloablConfig
|
||||
{
|
||||
}
|
||||
}
|
@ -36,7 +36,14 @@ namespace DH.Commons.Enums
|
||||
infernce
|
||||
|
||||
}
|
||||
|
||||
public enum EnumCamType
|
||||
{
|
||||
[Description("度申相机")]
|
||||
度申Do3think = 0,
|
||||
[Description("海康相机")]
|
||||
海康hik ,
|
||||
|
||||
}
|
||||
|
||||
|
||||
public enum EnumPLCType
|
||||
@ -93,7 +100,11 @@ namespace DH.Commons.Enums
|
||||
工件最小值=27,
|
||||
工具最大值=28,
|
||||
启用心跳=29,
|
||||
心跳地址=30
|
||||
心跳地址=30,
|
||||
挡料电机回原点,
|
||||
挡料电机回原点速度,
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user