protected virtual void OnExecutingStateChanged(ExecutingStateEventArgs e) { if (ExecutingStateChanged != null) { ExecutingStateChanged.Invoke(this, e); } }
protected void Scraping_ExecutingStateChanged(object sender, ExecutingStateEventArgs e) { if (ExecutingStateChanged != null) { ExecutingStateChanged.Invoke(this, e); } }
protected void ReportStatus(string ecSite, string message, ReportState reportState) { var eventArgs = new ExecutingStateEventArgs() { EcSite = ecSite, Message = message, ReportState = reportState }; OnExecutingStateChanged(eventArgs); }
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); }
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); } }
private void Task_ExecutingStateChanged(object sender, ExecutingStateEventArgs e) { Invoke(new LogDelegate(UpdateLog), e.NotifyStatus.ToString(), e.ExecDate, e.Message); }