/// <summary> /// Get the current screen as an XMLScreen data structure /// </summary> /// <returns></returns> internal IXMLScreen GetScreenAsXML() { if (currentConnection == null) { throw new TNHostException("TNEmulator is not connected", "There is no currently open TN3270 connection", null); } if (currentConnection.ExecuteAction(false, "DumpXML")) { // return(XMLScreen.LoadFromString(currentConnection.GetAllStringData(false))); } else { return(null); } }
/// <summary> /// Get the current screen as an XMLScreen data structure /// </summary> /// <returns></returns> internal IXMLScreen GetScreenAsXML() { DisposeOfCurrentScreenObject(); if (currentConnection == null) { throw new TNHostException("Terminal não está conectado", "Não existe conexão com terminal 3270 aberta", null); } if (currentConnection.ExecuteAction(false, "DumpXML")) { // return(XMLScreen.LoadFromString(currentConnection.GetAllStringData(false))); } else { return(null); } }