public ImageSettingsAttribute(string subPath, int width, int height)
 {
     Settings = new ImageSettings(subPath, width, height);
 }
 public ImageSettingsAttribute(string subPath)
 {
     Settings = new ImageSettings(subPath, null, null);
 }
Ejemplo n.º 3
0
 public ImageSettingsAttribute(string subPath)
 {
     Settings = new ImageSettings(subPath, null, null);
 }
Ejemplo n.º 4
0
 public ImageSettingsAttribute(string subPath, int width, int height)
 {
     Settings = new ImageSettings(subPath, width, height);
 }
Ejemplo n.º 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);
            }
        }