Ejemplo n.º 1
0
 public MainViewModel(CardInfoService cardInfoService, Vbarapi vbarapi, Reader rfidReader, CardInfoViewModel cardInfo, SearchInfoViewModel searchInfo)
 {
     _cardInfoService = cardInfoService;
     _vbarapi         = vbarapi;
     _vbarapi.openDevice(1);
     _vbarapi.addCodeFormat((byte)1);
     _vbarapi.backlight(false);
     _rfidReader = rfidReader;
     CardInfo    = cardInfo;
     SearchInfo  = searchInfo;
     if (IsInDesignMode)
     {
         //LoadData("");
     }
     else
     {
         Message = string.Format("服务器基础地址:{0}", Properties.Settings.Default.ApiBaseUrl);
     }
 }