void SetPreviewTransformations() { var currentTransformations = PreviewTransformations?.ToList() ?? new List <ITransformation>(); currentTransformations.Insert(0, _crop); _image.Transformations = currentTransformations; }
void SetPreviewTransformations() { if (PreviewTransformations == null || PreviewTransformations.Count == 0) { _image.Transformations = new List <ITransformation>() { _crop }; } else { var list = PreviewTransformations.ToList(); list.Insert(0, _crop); _image.Transformations = list; } }