using ESRI.ArcGIS.Carto; using ESRI.ArcGIS.DataSourcesGDB; using ESRI.ArcGIS.esriSystem; using ESRI.ArcGIS.Geodatabase; using KGIS.Framework.Maps; using Kingo.PluginServiceInterface; using System.Threading; namespace Kingo.Plugin.DataCheck.Helper.JCCZCDYD { public class JCCZCDYDDataCheckGroup : DataCheckRuleGroup { private WaitCallback callback; public JCCZCDYDDataCheckGroup(WaitCallback call = null) : base() { callback = call; GroupName = "基础城镇村等用地拓扑检查"; UpdateInfo(null); //JCCZCDYDAreaNoGapsCheck jCCZCDYDAreaNoGaps = new JCCZCDYDAreaNoGapsCheck(); //base.CheckRules.Add(jCCZCDYDAreaNoGaps); JCCZCDYDAreaNoOverlapCheck jCCZCDYDAreaNoOverlap = new JCCZCDYDAreaNoOverlapCheck(); base.CheckRules.Add(jCCZCDYDAreaNoOverlap); } public override void UpdateInfo(object obj) { GroupDesc = string.Format("{0}(错误{1}个,警告{2}个,例外{3}个)", GroupName, ErrorNum, WaringNum, ExceptionNum, 0); base.NotifyProperty(this, "GroupDesc"); base.NotifyProperty(this, "CheckResults"); base.NotifyProperty(this, "CheckState"); callback?.Invoke(null); } } }