Ejemplo n.º 1
0
        /// <summary>
        /// Adds specified edit to given editProvider.
        /// </summary>
        /// <param name="editProvider">The edit provider.</param>
        /// <param name="editName">Name of the edit.</param>
        /// <param name="transformation">Transformation describing edit.</param>
        /// <returns>Created added.</returns>
        public Edit AddEdit(Instance editProvider, string editName, Transformation transformation)
        {
            if (transformation == null)
            {
                return(null);
            }

            var edit = new Edit(editProvider, editProvider, this, editName, transformation);

            editProvider.AddEdit(edit);
            return(edit);
        }