public void AddField(CustomFormSettings settings, CustomField field)
		{
			if (settings == null)
			{
				throw new ArgumentNullException("settings");
			}

			if (field == null)
			{
				throw new ArgumentNullException("field");
			}

			settings.Add(field);
			settings.Save();
		}
		public void SaveFormSettings(CustomFormSettings settings)
		{
			if (settings == null)
			{
				throw new ArgumentNullException("settings");
			}

			settings.Save();
		}
		public void DeleteField(CustomFormSettings settings, string fieldName)
		{
			CustomField field = settings.Fields.Find(cf => cf.Name.Equals(fieldName, StringComparison.OrdinalIgnoreCase));
			if (field != null)
			{
				settings.Fields.Remove(field);
				settings.Save();
			}
		}