示例#1
0
 protected virtual void OnExecutingStateChanged(ExecutingStateEventArgs e)
 {
     if (ExecutingStateChanged != null)
     {
         ExecutingStateChanged.Invoke(this, e);
     }
 }
示例#2
0
 protected void Scraping_ExecutingStateChanged(object sender, ExecutingStateEventArgs e)
 {
     if (ExecutingStateChanged != null)
     {
         ExecutingStateChanged.Invoke(this, e);
     }
 }
示例#3
0
        protected void ReportStatus(string ecSite, string message, ReportState reportState)
        {
            var eventArgs = new ExecutingStateEventArgs()
            {
                EcSite      = ecSite,
                Message     = message,
                ReportState = reportState
            };

            OnExecutingStateChanged(eventArgs);
        }
示例#4
0
        protected void Notify(string janCode, string message, NotifyStatus reportState, ProcessStatus processState = ProcessStatus.Start)
        {
            var eventArgs = new ExecutingStateEventArgs()
            {
                JanCode       = janCode,
                Message       = message,
                NotifyStatus  = reportState,
                ProcessStatus = processState
            };

            OnExecutingStateChanged(eventArgs);
        }
示例#5
0
 public void Notify(string message, NotifyStatus reportState)
 {
     if (ExecutingStateChanged != null)
     {
         var eventArgs = new ExecutingStateEventArgs()
         {
             ExecDate     = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"),
             Message      = message,
             NotifyStatus = reportState,
         };
         ExecutingStateChanged.Invoke(this, eventArgs);
     }
 }
示例#6
0
 private void Task_ExecutingStateChanged(object sender, ExecutingStateEventArgs e)
 {
     Invoke(new LogDelegate(UpdateLog), e.NotifyStatus.ToString(), e.ExecDate, e.Message);
 }