public void ImportImageEffect(string json) { ImageEffectPreset preset = null; try { preset = JsonHelpers.DeserializeFromString <ImageEffectPreset>(json, serializationBinder); } catch (Exception e) { DebugHelper.WriteException(e); e.ShowError(); } if (preset != null && preset.Effects.Count > 0) { AddPreset(preset); } }