Ejemplo n.º 1
0
        /// <summary>
        /// Gets the database modification type.
        /// </summary>
        /// <param name="type">The type as a string.</param>
        /// <returns>The type as an enum.</returns>
        private static ResourceChangeType GetChangeType(string type)
        {
            ResourceChangeType finalResult = ResourceChangeType.Added;

            switch (type)
            {
            case "D":
                finalResult = ResourceChangeType.Deleted;
                break;

            case "U":
                finalResult = ResourceChangeType.Updated;
                break;

            default:
                break;
            }

            return(finalResult);
        }
Ejemplo n.º 2
0
 public ResourceChangeData(ResourceChangeType changeType, int newValue, int maxValue)
 {
     this.changeType = changeType;
     this.newValue   = newValue;
     this.maxValue   = maxValue;
 }