private void ListAccounts() { infoControls.comType = commandType.read; infoControls.requestDataType = RequestDataType.users; DataTypeComStatus protocolAllow = global.dataExchange.DataExchangeProtocol(infoControls); ListData listData = new ListData(); if (protocolAllow == DataTypeComStatus.readableAccounts) { lV_Users = listData.List <Account>(lV_Users); } }
private void ListCables() { infoControls.comType = commandType.read; infoControls.requestDataType = RequestDataType.cables; DataTypeComStatus allowProtocol = global.dataExchange.DataExchangeProtocol(infoControls); ListData listData = new ListData(); if (allowProtocol == DataTypeComStatus.readableCables) { Cable cable = new Cable(); lV_Cables = listData.List <Cable>(lV_Cables); } }