Ejemplo n.º 1
0
 /// <summary>
 /// Detaches from control.
 /// </summary>
 internal void DetachFromTerminalControl()
 {
     this.terminalControl.Loaded          -= this.TerminalControl_OnLoaded;
     this.terminalControl.InputReceived   -= this.TerminalControl_InputReceived;
     this.terminalControl.TerminalResized -= this.TerminalControl_TerminalResized;
     this.terminalControl = null;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Attaches control.
 /// </summary>
 /// <param name="terminalControl">terminal control.</param>
 internal void AttachToTerminalControl(TerminalControl terminalControl)
 {
     this.terminalControl                  = terminalControl;
     this.terminalControl.Loaded          += this.TerminalControl_OnLoaded;
     this.terminalControl.InputReceived   += this.TerminalControl_InputReceived;
     this.terminalControl.TerminalResized += this.TerminalControl_TerminalResized;
 }