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)); }
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(); }