Commit 15a7c792 authored by 潘栩锋's avatar 潘栩锋 🚴

解决界面 initparam 不会更新

parent 60f737c7
......@@ -122,24 +122,22 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
System.Windows.Application.Current.Dispatcher.Invoke(new Action(() =>
{
gage.mDynArea.PropertyChanged += (s, e) =>
{
DynArea dynarea = s as DynArea;
if (e.PropertyName == "ControllerState")
{
var st = mLayout.ControllerStates.Find(_st => _st.ControllerState == dynarea.ControllerState.ToString());
if (st != null)
{
if (st.No >= 0 && st.No < this.tabControl1.Items.Count)
this.tabControl1.SelectedIndex = st.No;
}
}
};
Misc.BindingOperations.SetBinding(gage.mDynArea, "ControllerState", UpdateControllerState);
lp.Progress = 100;
}));
System.Threading.Thread.Sleep(10);
}
void UpdateControllerState()
{
var st = mLayout.ControllerStates.Find(_st => _st.ControllerState == gage.mDynArea.ControllerState.ToString());
if (st != null)
{
if (st.No >= 0 && st.No < this.tabControl1.Items.Count)
this.tabControl1.SelectedIndex = st.No;
}
}
BlowingFixProfileServiceClient mProfile;
void Init_Border_Profile()
......
......@@ -102,6 +102,7 @@ namespace FLY.Thick.Blowing.UI.Fix.Client
mFixService.ID,
mPasswordService.ID,
mRenZiJiaService.ID,
mInitParamService.ID,
mBDetect.ID
};
......
......@@ -433,7 +433,7 @@ namespace FLY.Thick.BlowingScan.UI.Client
}
mGagedata.PosOfGrid = posOfGrid;
mGagedata.Border.Copy(border);
mGagedata.Border = border;
for (int i = 0; i < gage_sum.Count(); i++)
{
if (gage_cnt[i] > 0)
......
......@@ -119,30 +119,23 @@ namespace FLY.Thick.BlowingScan.UI.Client
System.Threading.Thread.Sleep(10);
System.Windows.Application.Current.Dispatcher.Invoke(new Action(()=>
System.Windows.Application.Current.Dispatcher.Invoke(new Action(() =>
{
gage.mDynArea.PropertyChanged += (s, e) =>
{
DynArea dynarea = s as DynArea;
if (e.PropertyName == "ControllerState")
{
foreach (TabItem tabitem in this.tabControl1.Items)
{
List<string> states = tabitem.Tag as List<string>;
if (states.Contains(dynarea.ControllerState.ToString()))
{
this.tabControl1.SelectedItem = tabitem;
break;
}
}
}
};
Misc.BindingOperations.SetBinding(gage.mDynArea, "ControllerState", UpdateControllerState);
lp.Progress = 100;
}));
System.Threading.Thread.Sleep(10);
}
void UpdateControllerState()
{
var st = mLayout.ControllerStates.Find(_st => _st.ControllerState == gage.mDynArea.ControllerState.ToString());
if (st != null)
{
if (st.No >= 0 && st.No < this.tabControl1.Items.Count)
this.tabControl1.SelectedIndex = st.No;
}
}
BlowingScanServiceClient mRenZiJiaService;
......
......@@ -102,6 +102,7 @@ namespace FLY.Thick.BlowingScan.UI.Client
mFixService.ID,
mPasswordService.ID,
mRenZiJiaService.ID,
mInitParamService.ID,
mBDetect.ID
};
......
# v2.0.0
1.添加 吹膜扫描测厚仪模块
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