Exemple #1
0
        public void InternalAttachView(IPoderosaDocument document, IPoderosaView view) {
            Debug.WriteLineIf(DebugOpt.ViewManagement, "ATTACH VIEW");
            Debug.Assert(document == _terminal.IDocument);
            TerminalView tv = (TerminalView)view.GetAdapter(typeof(TerminalView));
            Debug.Assert(tv != null);
            TerminalControl tp = tv.TerminalControl;
            Debug.Assert(tp != null);
            tp.Attach(this);

            _terminalControl = tp;
            _terminal.Attached(tp);
        }
Exemple #2
0
 private void AwaitConnectResult()
 {
     mreConnect.WaitOne();
     if (_terminalConnection != null)
     {
         _terminalControl = new TerminalControl();
         _terminalSession = new TerminalSession(_terminalConnection, _terminalSettings);
         _terminalControl.Attach(_terminalSession);
         _connectCallback?.Invoke(this);
     }
     else
     {
         MessageBox.Show("Connection error : " + errorMsg, "Unable to connect", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }