修改一些变量和界面
This commit is contained in:
@ -74,7 +74,7 @@ namespace DHSoftware.Views
|
||||
{
|
||||
InitializeComponent();
|
||||
InitTableColumns();
|
||||
InitData();
|
||||
//InitData();
|
||||
BindEventHandler();
|
||||
foreach (var item in MLModelTypes)
|
||||
{
|
||||
@ -85,63 +85,6 @@ namespace DHSoftware.Views
|
||||
|
||||
}
|
||||
|
||||
public bool IsEnabled
|
||||
{
|
||||
get => switchEnable.AutoCheck;
|
||||
set => switchEnable.AutoCheck = value;
|
||||
}
|
||||
// 模型路径属性
|
||||
public string ModelPath
|
||||
{
|
||||
get => Detection.ModelPath;
|
||||
set
|
||||
{
|
||||
Detection.ModelPath = value;
|
||||
tbModelpath.Text = value; // 更新到文本框
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public bool IsPicNGEnable
|
||||
{
|
||||
|
||||
get => sthSaveNGPic.AutoCheck;
|
||||
set => sthSaveNGPic.AutoCheck = value;
|
||||
}
|
||||
public bool IsPicEnable
|
||||
{
|
||||
|
||||
get => sthPic.AutoCheck;
|
||||
set => sthPic.AutoCheck = value;
|
||||
}
|
||||
//public MLModelType LModelType
|
||||
//{
|
||||
|
||||
//}
|
||||
|
||||
private string _picTag;
|
||||
|
||||
public string picTag
|
||||
{
|
||||
get => _picTag;
|
||||
set
|
||||
{
|
||||
_picTag = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private string _afterTag;
|
||||
|
||||
public string afterTag
|
||||
{
|
||||
get => _afterTag;
|
||||
set
|
||||
{
|
||||
_afterTag = value;
|
||||
}
|
||||
}
|
||||
private void InitTableColumns()
|
||||
{
|
||||
table_base.Columns = new ColumnCollection() {
|
||||
|
Reference in New Issue
Block a user