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, int width, int height)
 {
     Settings = new ImageSettings(subPath, width, height);
 }
Example #4
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 = Pather.Combine(
                    BasePath,
                    property.FileOptions.Path,
                    setting.SubPath,
                    fileName);

                _deleter.Delete(path);
            }
        }
 public ImageSettingsAttribute(string subPath)
 {
     Settings = new ImageSettings(subPath, null, null);
 }