public void ProcessReport(ReportBase report) { if (report is ParkVacantReport) { ParkVacantReport r = report as ParkVacantReport; ParkInfo park = ParkBuffer.Current.GetPark(r.ParkID); if (park != null) { if (_ParkFullLed != null) { _ParkFullLed.DisplayMsg(string.Format("{0}{1}", park.VacantText, r.ParkVacant), int.MaxValue); } if (_DixiaKongjian != null) { _DixiaKongjian.DisplayVacantInfo(r.ParkVacant); } } } }
private void DixiakongjianRender(ParkInfo park) { try { string filePath = System.IO.Path.Combine(Application.StartupPath, "ParkFullLed.xml"); if (System.IO.File.Exists(filePath)) //显示在地下空间满位显示屏上 { if (_DixiaKongjian == null) { _DixiaKongjian = ParkFullLed.Create(filePath); _DixiaKongjian.Open(); } _DixiaKongjian.DisplayVacantInfo(park.Vacant); } } catch (Exception ex) { ExceptionPolicy.HandleException(ex); } }