Click here to Skip to main content
15,894,955 members
Articles / Web Development / HTML

Transformalizing NorthWind

Rate me:
Please Sign up or sign in to vote.
4.95/5 (29 votes)
24 Jul 2014GPL37 min read 57.8K   341   53  
Combining de-normalization, transformation, replication, and awesome-ness.
#region License
// /*
// See license included in this library folder.
// */
#endregion

using Transformalize.Libs.FileHelpers.Enums;

namespace Transformalize.Libs.FileHelpers.Progress
{
#if ! MINI

    /// <summary>Class used to notify the current progress position and other context info.</summary>
    public class ProgressEventArgs
    {
        private readonly int mProgressCurrent;
        private readonly ProgressMode mProgressMode = ProgressMode.DontNotify;
        private readonly int mProgressTotal;

        internal ProgressEventArgs(ProgressMode mode, int current, int total)
        {
            mProgressMode = mode;
            mProgressCurrent = current;
            mProgressTotal = total;
        }

        internal ProgressEventArgs()
        {
            mProgressMode = ProgressMode.DontNotify;
        }

        /// <summary>The current progress position. Check also the ProgressMode property.</summary>
        public int ProgressCurrent
        {
            get { return mProgressCurrent; }
        }

        /// <summary>
        ///     The total when the progress finish. (<b>-1 means undefined</b>)
        /// </summary>
        public int ProgressTotal
        {
            get { return mProgressTotal; }
        }

        /// <summary>The ProgressMode used.</summary>
        public ProgressMode ProgressMode
        {
            get { return mProgressMode; }
        }
    }

    /// <summary>Delegate used to notify progress to the user.</summary>
    /// <param name="e">The Event args with information about the progress.</param>
    public delegate void ProgressChangeHandler(ProgressEventArgs e);

#endif
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions