public void DeleteEnum(ConfigTreeItem <PropertyConfig> p) { if (p.Model.EnumConfig != null) { p.Model.EnumConfig.Option.IsDelete = true; } p.Model.CustomType = null; p.ReShow(); }
public void DeleteEnum(ConfigTreeItem <PropertyConfig> p) { p.Model.CustomType = null; if (p.Model.EnumConfig == null) { return; } p.Model.EnumConfig.IsDelete = true; p.Model.EnumConfig = null; p.ReShow(); }