Exemplo n.º 1
0
 public LisSettingVM()
 {
     _jsonWR     = new JsonWR();
     _commFields = _jsonWR.ReadJsonFile();
     if (_commFields == null)
     {
         _commFields = new CommunicationFields();
     }
     ConnectionTypeIEnumerable = Enum.GetNames(typeof(SendReciver.ConnectionType));
     TcpConnModeIEnumerable    = Enum.GetNames(typeof(SendReciver.TcpConnectionMode));
     PathoMachineIEnumberable  = Enum.GetNames(typeof(SendReciver.PathoMachine));
 }
Exemplo n.º 2
0
        public LisCommVM()
        {
            JsonWR jsonR = new JsonWR();

            commFields      = jsonR.ReadJsonFile();
            _lisPatFields   = new LisPatientFields();
            GenderList      = Enum.GetNames(typeof(LisPatientFields.GenderEnum));
            OrderList       = Enum.GetNames(typeof(SendReciver.OrderType));
            serialMsgStatus = new SerialMessageStatus(); tcpMsgStatus = new TcpMesageStatus();
            sendR           = new SendReciver(commFields, serialMsgStatus, tcpMsgStatus, _lisPatFields);
            sendR.InitializeConnection();
        }