private void connService_ChannelOpenRequest(object sender, ChannelOpenRequestEventArgs e) { var channel = new SshWinConsoleChannel(e); e.Channel = channel; // e.FailureReason = SshChannelOpenFailureReason.UnknownChannelType; }
private void OnTerminalChannelUpdated(SshWinConsoleChannel termChannel) { // Get index of item corresponding to updated channel in list box. var itemIndex = sessionsListBox.Items.IndexOf(termChannel); sessionsListBox.SetItemChecked(itemIndex, termChannel.TerminalVisible); }