public ImageSettingsAttribute(string subPath, int width, int height)
 {
     Settings = new ImageSettings(subPath, width, height);
 }
 public ImageSettingsAttribute(string subPath)
 {
     Settings = new ImageSettings(subPath, null, null);
 }
 public ImageSettingsAttribute(string subPath)
 {
     Settings = new ImageSettings(subPath, null, null);
 }
 public ImageSettingsAttribute(string subPath, int width, int height)
 {
     Settings = new ImageSettings(subPath, width, height);
 }
Example #5
0
        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);
            }
        }