Commit 06bf5d66 authored by 潘栩锋's avatar 潘栩锋 🚴

删除 多余的边界参数检查

parent 62a3a827
......@@ -183,18 +183,6 @@ namespace FLY.Thick.FilmCasting.Server
#endregion
void CheckBorderSearch()
{
if ((borderSearch.Valid.Begin < 0) || (borderSearch.Valid.Begin > initParam.PosLength))
{
borderSearch.Enable = false;
}
if ((borderSearch.Valid.End < 0) || (borderSearch.Valid.End > initParam.PosLength))
{
borderSearch.Enable = false;
}
}
public TDGage(string nam)
{
mParamDirectory = nam;// @"D:\" + m_name;
......@@ -317,28 +305,14 @@ namespace FLY.Thick.FilmCasting.Server
#region
borderSearch.Init(warning);
//检测边界查找参数
CheckBorderSearch();
borderSearch.PropertyChanged += (s, e) =>
{
if (e.PropertyName == nameof(BorderSearch.Valid))
{
CheckBorderSearch();
}
};
initParam.PropertyChanged += (s, e) =>
{
if (e.PropertyName == nameof(initParam.PosLength))
{
CheckBorderSearch();
}
};
Misc.BindingOperations.SetBinding(borderSearch, new string[] { nameof(borderSearch.Width) },
() =>
{
DynArea.Width = borderSearch.Width * initParam.Encoder1_mmpp;
});
initParam.PropertyChanged += (s, e) =>
{
if (e.PropertyName == nameof(initParam.Encoder1_mmpp))
......@@ -583,7 +557,7 @@ namespace FLY.Thick.FilmCasting.Server
//GM_ScanCorr 配置----------------------------------------
gmScanCorr.Init(flyAd, initParam);
gmManager.AddGM(gmScanCorr);
flyAd.CorrectADs = new FlyADBase.CorrectADsHandler(gmScanCorr.CorrectADs);
flyAd.CorrectADs = gmScanCorr.CorrectADs;
//GSample 配置----------------------------------------
......
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