using MultiLayout; using MultiLayout.UiModule; using System.Linq; namespace FLY.Thick.Blowing.UI.UiModule { /// /// 全部参数 /// public class ScanGraphParams : UIModuleParams { public ScanGraphParams() { string path = System.IO.Path.Combine(FlyLayout.BasePath, "scangraph.json"); FilePath = path; } static ScanGraphParams current = null; public static ScanGraphParams Current { get { if (current == null) { current = new ScanGraphParams(); current.Load(); } return current; } } 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); } } }