using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Attachmate.Reflection.Framework;
using Attachmate.Reflection.Emulation.IbmHosts;
using Attachmate.Reflection.UserInterface;
using System.Drawing;
namespace ConnectToActiveApp
{
class MyApplication
{
static void Main(string[] args)
{
//Get all of the applications running on the system
Application[] apps = MyReflection.Applications;
if (apps.Length > 0)
{
//make all of the applications visible
foreach (Application app in apps)
{
IFrame frame = (IFrame)app.GetObject("Frame");
//frame.CreateView(terminal);
if (frame.Visible == false)
{
frame.Visible = true;
}
}
}
Console.ReadLine();
}
}
}