Ejemplo n.º 1
0
        /// <summary>
        /// エベント報告
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="messageId"></param>
        /// <param name="args"></param>
        public void Report(Enum messageId, params string[] args)
        {
            if (this._reportHandler == null)
            {
                return;
            }
            string message = string.Empty;

            if (args == null || args.Length == 0)
            {
                message = RSM.GetMessage(messageId);
            }
            else
            {
                message = RSM.GetMessage(messageId, args);
            }
            int             parcent   = this._processPercentage + (int)(this._stepRate * StepPercentage / 100);
            ReportEventArgs eventArgs = new ReportEventArgs(
                this._taskName, parcent, this.SetpCount, this._sucessCount, this._processCount, message);

            this._reportHandler(this, eventArgs);
        }