コード例 #1
0
 protected void Scraping_ExecutingStateChanged(object sender, ExecutingStateEventArgs e)
 {
     if (ExecutingStateChanged != null)
     {
         ExecutingStateChanged.Invoke(this, e);
     }
 }
コード例 #2
0
 protected virtual void OnExecutingStateChanged(ExecutingStateEventArgs e)
 {
     if (ExecutingStateChanged != null)
     {
         ExecutingStateChanged.Invoke(this, e);
     }
 }
コード例 #3
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);
     }
 }