Exemplo n.º 1
0
 /// <summary>
 ///     Dump current screen to the current audit output
 /// </summary>
 public void Dump()
 {
     lock (this)
     {
         if (Audit != null)
         {
             CurrentScreenXML.Dump(Audit);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Dump current screen to the current audit output
 /// </summary>
 public void Dump()
 {
     lock (this)
     {
         if (sout != null)
         {
             CurrentScreenXML.Dump(sout);
         }
     }
 }
Exemplo n.º 3
0
        /// <summary>
        ///     Dump fields to the current audit output
        /// </summary>
        public void ShowFields()
        {
            if (currentConnection == null)
            {
                throw new TNHostException("TNEmulator is not connected", "There is no currently open TN3270 connection",
                                          null);
            }

            if (Audit != null)
            {
                Audit.WriteLine("-------------------dump screen data -----------------");
                currentConnection.ExecuteAction(false, "Fields");
                Audit.WriteLine("" + currentConnection.GetAllStringData(false));
                CurrentScreenXML.Dump(Audit);
                Audit.WriteLine("-------------------dump screen end -----------------");
            }
            else
            {
                throw new ApplicationException("ShowFields requires an active 'Audit' connection on the emulator");
            }
        }