public ImageSettingsAttribute(string subPath, int width, int height) { Settings = new ImageSettings(subPath, width, height); }
public ImageSettingsAttribute(string subPath) { Settings = new ImageSettings(subPath, null, null); }
private void DeleteOldFile( Property property, ImageSettings setting, IDictionary<string, object> recordDict) { if (recordDict.ContainsKey(property.Column.Undecorate())) { var fileName = recordDict[property.Column.Undecorate()].ToStringSafe(); var path = Path.Combine(BasePath, property.FileOptions.Path, setting.SubPath, fileName); _deleter.Delete(path); } }