Commit 79e1c181 authored by 潘栩锋's avatar 潘栩锋 🚴

解决 修改主界面布局, 扫描图参数复位

parent b357e430
......@@ -46,7 +46,7 @@ namespace ThickTcpUiInWindow.UIModule
{
Misc.SaveToXmlHepler.Regist(typeof(T));
}
public void MatchParam(int[] IDs)
public virtual void MatchParam(int[] IDs)
{
if (Items.RemoveAll(i => { return !IDs.Contains(i.ID); }) > 0)
{
......
......@@ -168,7 +168,7 @@ namespace ThickTcpUiInWindow.UIModule
/// </summary>
public class ScanGraphItemParam : UIModuleParam
{
public string UiModule { get; set; } = "scangraph";
/// <summary>
/// 曲线类型
/// </summary>
......@@ -215,6 +215,7 @@ namespace ThickTcpUiInWindow.UIModule
{
List<string> names = new List<string>(base.GetSavePropertyNames());
names.AddRange(new string[]{
"UiModule",
"Title",
"ChartType",
"BM",
......@@ -232,6 +233,7 @@ namespace ThickTcpUiInWindow.UIModule
/// </summary>
public class ScanGraphParams : UIModuleParams<ScanGraphItemParam>
{
/// <summary>
/// 主界面反向
/// </summary>
......@@ -279,7 +281,17 @@ namespace ThickTcpUiInWindow.UIModule
}
}
public void MatchParam(string uiModule, int[] IDs)
{
if (Items.RemoveAll(i => { return (i.UiModule== uiModule) && (!IDs.Contains(i.ID)); }) > 0)
{
Save();
}
}
public override void MatchParam(int[] IDs)
{
MatchParam("scangraph", IDs);
}
public override string[] GetSavePropertyNames()
{
List<string> names = new List<string>(base.GetSavePropertyNames());
......
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