Ejemplo n.º 1
0
        /// <summary>
        ///     Get the current screen as an XMLScreen data structure
        /// </summary>
        /// <returns></returns>
        internal IXMLScreen GetScreenAsXML()
        {
            DisposeOfCurrentScreenXML();

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