示例#1
0
 public Form1()
 {
     InitializeComponent();
     blockReceivedHandler = new EventHandler <BlockReceivedEventArgs>(currentSession_BlockReceived);
     sessionStatusHandler = new EventHandler <SessionStatusChangeEventArgs>(currentSession_SessionStatusChanged);
     _connectionSettings.ConnectionSettingsUpdated += new EventHandler(_connectionSettings_ConnectionSettingsUpdated);
     terminalBuffer             = new TerminalEmulator();
     ShowTerminalBufferDelegate = new VoidDelegate(this.ShowTerminalBuffer);
     sbOutputBuffer             = new StringBuilder(_maxBufferSize);
 }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     blockReceivedHandler = new EventHandler<BlockReceivedEventArgs>(currentSession_BlockReceived);
     sessionStatusHandler = new EventHandler<SessionStatusChangeEventArgs>(currentSession_SessionStatusChanged);
     _connectionSettings.ConnectionSettingsUpdated+=new EventHandler(_connectionSettings_ConnectionSettingsUpdated);
     terminalBuffer = new TerminalEmulator();
     ShowTerminalBufferDelegate = new VoidDelegate(this.ShowTerminalBuffer);
     sbOutputBuffer = new StringBuilder(_maxBufferSize);
 }