Commit 65f73b68 authored by 潘栩锋's avatar 潘栩锋 🚴

修复 边界查找界面 单一材料功能 没有实现

parent e4c86d07
......@@ -188,6 +188,10 @@ namespace FLY.Thick.Base.UI
/// </summary>
public bool Enable { get; set; }
/// <summary>
/// 单一材料
/// </summary>
public bool IsOneMaterial { get; set; }
/// <summary>
/// 边界拐点检测,找到的边界更加精确
/// </summary>
......@@ -271,6 +275,8 @@ namespace FLY.Thick.Base.UI
chart1 = chart;
Misc.BindingOperations.SetBinding(BorderSearchService, nameof(BorderSearchService.Enable), this, nameof(Enable));
Misc.BindingOperations.SetBinding(BorderSearchService, nameof(BorderSearchService.IsOneMaterial), this, nameof(IsOneMaterial));
Misc.BindingOperations.SetBinding(BorderSearchService, nameof(BorderSearchService.IsBreakDetect),this, nameof(IsBreakDetect));
Misc.BindingOperations.SetBinding(BorderSearchService, nameof(BorderSearchService.Valid), ()=> {
Valid = new Range(BorderSearchService.Valid);
......@@ -297,7 +303,7 @@ namespace FLY.Thick.Base.UI
}
private void MInitParamService_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == "PosLength")
if (e.PropertyName == nameof(InitParamService.PosLength))
{
UpdateX();
}
......@@ -306,12 +312,12 @@ namespace FLY.Thick.Base.UI
private void MBorderSearchService_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == "UpdateTime")
if (e.PropertyName == nameof(BorderSearch.UpdateTime))
{
getView();
}
else if ((e.PropertyName == "TempAD") ||
(e.PropertyName == "TempRange"))
else if ((e.PropertyName == nameof(BorderSearch.TempAD)) ||
(e.PropertyName == nameof(BorderSearch.TempRange)))
{
chart1.Invalidate();
}
......@@ -350,6 +356,7 @@ namespace FLY.Thick.Base.UI
return;
BorderSearchService.Enable = Enable;
BorderSearchService.IsOneMaterial = IsOneMaterial;
BorderSearchService.IsBreakDetect = IsBreakDetect;
BorderSearchService.Valid = Valid.ToStruct();
BorderSearchService.TempADBySet = TempADBySet;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment