private ParkFullLed _DixiaKongjian; //地下空间用 #endregion #region 私有方法 private void InitLED() { try { //满位显示屏 if (AppSettings.CurrentSetting.ParkFullLedCOMPort > 0) { _ParkFullLed = new ZhongKuangLed(AppSettings.CurrentSetting.ParkFullLedCOMPort); _ParkFullLed.Open(); if (ParkBuffer.Current.Parks.Count == 1) //显示车位余数 { ParkInfo park = ParkBuffer.Current.Parks[0]; _ParkFullLed.DisplayMsg(string.Format("{0}{1}", park.VacantText, park.Vacant), int.MaxValue); } } } catch (Exception ex) { ExceptionPolicy.HandleException(ex); } try { string filePath = System.IO.Path.Combine(Application.StartupPath, "ParkFullLed.xml"); if (System.IO.File.Exists(filePath)) //显示在地下空间满位显示屏上 { _DixiaKongjian = ParkFullLed.Create(filePath); _DixiaKongjian.Open(); } } catch (Exception ex) { ExceptionPolicy.HandleException(ex); } }
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); } }