using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Attachmate.Reflection.Framework;
using Attachmate.Reflection.Emulation.T27;
using Attachmate.Reflection.UserInterface;
namespace QuickstartOpenT27
{
class Program
{
static void Main(string[] args)
{
//Create an application object
Attachmate.Reflection.Framework.Application app = MyReflection.CreateApplication("myWorkspace", true);
//Create a terminal for an Ibm session
string sessionFileT27 = Environment.GetEnvironmentVariable("USERPROFILE") + @"\Documents\Micro Focus\InfoConnect\gettingStarted.it27";
IT27Terminal terminalT27 = (IT27Terminal)app.CreateControl(sessionFileT27);
//Make the session visible
IFrame frame = (IFrame)app.GetObject("Frame");
IView sessionViewT27 = frame.CreateView(terminalT27);
}
}
}