/// <summary> /// 保存通知对象 /// </summary> public void SaveNotifies(string dir, ConfigWriter write) { string path = GlobalConfig.CheckPath(dir, "Notify"); foreach (var notify in NotifyItems.ToArray()) { write.SaveConfig(notify, path, true); } }
public void SaveTypedef(ConfigWriter write, TypedefItem type, string path, bool checkState = true) { if (type.IsDelete) { Remove(type); } else { foreach (var field in type.Items.Where(p => p.Value.IsDelete).ToArray()) { type.Items.Remove(field.Key); } } write.SaveConfig(type, path, true); }