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

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

parent e4c86d07
...@@ -188,6 +188,10 @@ namespace FLY.Thick.Base.UI ...@@ -188,6 +188,10 @@ namespace FLY.Thick.Base.UI
/// </summary> /// </summary>
public bool Enable { get; set; } public bool Enable { get; set; }
/// <summary>
/// 单一材料
/// </summary>
public bool IsOneMaterial { get; set; }
/// <summary> /// <summary>
/// 边界拐点检测,找到的边界更加精确 /// 边界拐点检测,找到的边界更加精确
/// </summary> /// </summary>
...@@ -271,6 +275,8 @@ namespace FLY.Thick.Base.UI ...@@ -271,6 +275,8 @@ namespace FLY.Thick.Base.UI
chart1 = chart; chart1 = chart;
Misc.BindingOperations.SetBinding(BorderSearchService, nameof(BorderSearchService.Enable), this, nameof(Enable)); 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.IsBreakDetect),this, nameof(IsBreakDetect));
Misc.BindingOperations.SetBinding(BorderSearchService, nameof(BorderSearchService.Valid), ()=> { Misc.BindingOperations.SetBinding(BorderSearchService, nameof(BorderSearchService.Valid), ()=> {
Valid = new Range(BorderSearchService.Valid); Valid = new Range(BorderSearchService.Valid);
...@@ -297,7 +303,7 @@ namespace FLY.Thick.Base.UI ...@@ -297,7 +303,7 @@ namespace FLY.Thick.Base.UI
} }
private void MInitParamService_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) private void MInitParamService_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{ {
if (e.PropertyName == "PosLength") if (e.PropertyName == nameof(InitParamService.PosLength))
{ {
UpdateX(); UpdateX();
} }
...@@ -306,12 +312,12 @@ namespace FLY.Thick.Base.UI ...@@ -306,12 +312,12 @@ namespace FLY.Thick.Base.UI
private void MBorderSearchService_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) private void MBorderSearchService_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{ {
if (e.PropertyName == "UpdateTime") if (e.PropertyName == nameof(BorderSearch.UpdateTime))
{ {
getView(); getView();
} }
else if ((e.PropertyName == "TempAD") || else if ((e.PropertyName == nameof(BorderSearch.TempAD)) ||
(e.PropertyName == "TempRange")) (e.PropertyName == nameof(BorderSearch.TempRange)))
{ {
chart1.Invalidate(); chart1.Invalidate();
} }
...@@ -350,6 +356,7 @@ namespace FLY.Thick.Base.UI ...@@ -350,6 +356,7 @@ namespace FLY.Thick.Base.UI
return; return;
BorderSearchService.Enable = Enable; BorderSearchService.Enable = Enable;
BorderSearchService.IsOneMaterial = IsOneMaterial;
BorderSearchService.IsBreakDetect = IsBreakDetect; BorderSearchService.IsBreakDetect = IsBreakDetect;
BorderSearchService.Valid = Valid.ToStruct(); BorderSearchService.Valid = Valid.ToStruct();
BorderSearchService.TempADBySet = TempADBySet; 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