Exemple #1
0
        /// <summary>
        /// Create new instanse of Message, of Type RESET
        /// </summary>
        /// <returns></returns>
        public static MUpdateProgress Reset()
        {
            MUpdateProgress result = new MUpdateProgress();

            result.ActionValue = ACTION.RESET;
            result.ValueValue  = 0;
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// Create new instanse of Message, of Type : SET
        /// </summary>
        /// <param name="value">Value to set 0..100</param>
        /// <returns></returns>
        public static MUpdateProgress Set(object sender,int value)
        {
            MUpdateProgress result = new MUpdateProgress();

            result.Sender      = sender;
            result.ActionValue = ACTION.SET;
            result.ValueValue  = value;
            return(result);
        }