예제 #1
0
        public override void Reset()
        {
            if (_terminal != null)
            {
                KillProcess();
                Controls.Remove(_terminal);
                _terminal.Dispose();
            }

            Controls.Add(_terminal = new ConEmuControl()
            {
                Dock = DockStyle.Fill, AutoStartInfo = null                                            /* don't spawn terminal until we have gotten the command */
            });
        }
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing && _terminal != null)
     {
         _terminal.Dispose();
     }
 }
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         _terminal?.Dispose();
     }
 }
예제 #4
0
        public override void Reset()
        {
            if (_terminal != null)
            {
                KillProcess();
                _panel.Controls.Remove(_terminal);
                _terminal.Dispose();
            }

            _panel.Controls.Add(
                _terminal = new ConEmuControl()
            {
                Dock               = DockStyle.Fill,
                AutoStartInfo      = null, /* don't spawn terminal until we have gotten the command */
                IsStatusbarVisible = false
            });
        }
        public override void Reset()
        {
            ConEmuControl oldTerminal = _terminal;

            _terminal = new ConEmuControl
            {
                Dock = DockStyle.Fill,
                IsStatusbarVisible = false
            };

            if (oldTerminal != null)
            {
                KillProcess(oldTerminal);
                _panel.Controls.Remove(oldTerminal);
                oldTerminal.Dispose();
            }

            _panel.Controls.Add(_terminal);
        }