private void Launchdriver() { IsServerAvailable = GingerCore.Common.Utility.IsServerListening(this.HostName, HostPort); if (!IsServerAvailable) { Reporter.ToStatus(eStatusMsgKey.MainframeIncorrectConfiguration); return; } MFE = new Terminal(this.HostName, HostPort, TermType, SSL, MFRows, MFColumns, this); if (ConnectToMainframe()) { mDriverWindow = new MainFrameDriverWindow(this); mDriverWindow.Show(); mDriverWindow.Refresh(); Dispatcher = new DriverWindowDispatcher(mDriverWindow.Dispatcher); Dispatcher.Invoke(new Action(() => OnDriverMessage(eDriverMessageType.DriverStatusChanged))); System.Windows.Threading.Dispatcher.Run(); } else { mDriverWindow = null; } }
private void Launchdriver() { IsServerAvailable = GingerCore.Common.Utility.IsServerListening(this.HostName, HostPort); if (IsServerAvailable == false) { Reporter.ToGingerHelper(eGingerHelperMsgKey.MainframeIncorrectConfiguration); return; } MFE = new Terminal(this.HostName, HostPort, TermType, SSL, MFRows, MFColumns, this); if (ConnectToMainframe()) { mDriverWindow = new MainFrameDriverWindow(this); mDriverWindow.Show(); mDriverWindow.Refresh(); OnDriverMessage(eDriverMessageType.DriverStatusChanged); Dispatcher = mDriverWindow.Dispatcher; System.Windows.Threading.Dispatcher.Run(); } else { if (mDriverWindow != null) { //not creating window object unless connection established mDriverWindow = null; } } }
public override Actions.Act GetCurrentElement() { mDriverWindow.Show(); throw new NotImplementedException(); }