private void EnterpriseManagerClient_NewJobQueued(ArclBase arcl, Mobile.Communication.Common.Event.JobEventArgs args) { Job job = new Job { ID = args.Job.ID, CasDokonceni = args.Job.Finished, CasVzniku = args.Job.Queued, Server = this }; if (args.Job.Segments.ToList().Exists(x => x.IsPickup)) { job.PocatecniGoal = args.Job.Segments.Where(x => x.IsPickup).First().Goal; } if (args.Job.Segments.ToList().Exists(x => x.IsDropoff)) { job.KoncovyGoal = args.Job.Segments.Where(x => x.IsDropoff)?.First().Goal; } OnNovyJobPrirazen(job); }
private void RobotClient_NewJobQueued(ArclBase arcl, JobEventArgs args) { args.Job.PropertyChanged += Job_PropertyChanged; JobChanged(args.Job); }