public void jobstateComm() { DataTime = DateTime.Now; JobReport jobREPT = new JobReport { Id = configGP.TowerID, Time = DataTime, JobId = recvdataGP.JobID, JobState = jobstatusGP.JobState }; string JsonSerial = JsonConvert.SerializeObject(jobREPT); Textbox_Write(JsonSerial, jobstateURL); if (jobREPT.JobState == JobState.Complete) { recvdataGP = new APIRECVDATA(); OnEventJobState?.Invoke(this, recvdataGP); } }
private void OnEventJobState(object sender, APIRECVDATA e) { JobID = e.JobID; }