C# Класс Poderosa.SFTP.CommandBase

Command base class
Показать файл Открыть проект

Открытые методы

Метод Описание
CommandBase ( ) : System

Constructor

Защищенные методы

Метод Описание
GetForm ( ICommandTarget target ) : Form

Gets System.Windows.Forms.Form of the target.

GetSSHConnection ( ICommandTarget target ) : ISSHConnection

Gets SSHConnection from the target. Returns null if current terminal doesn't have SSH connection.

GetTerminalName ( ICommandTarget target ) : string

Gets name of the current terminal.

IsAcceptable ( ICommandTarget target, bool acceptSSH1, bool acceptSSH2 ) : bool

Check if current terminal is accepted.

Приватные методы

Метод Описание
GetTerminalConnection ( ICommandTarget target ) : ITerminalConnection

Get ITerminalConnection object from the target.

GetTerminalDocument ( ICommandTarget target ) : IPoderosaDocument

Get ITerminalConnection object from the target.

Описание методов

CommandBase() публичный Метод

Constructor
public CommandBase ( ) : System
Результат System

GetForm() защищенный Метод

Gets System.Windows.Forms.Form of the target.
protected GetForm ( ICommandTarget target ) : Form
target ICommandTarget Target object which has been passed to the IPoderosaCommand's method.
Результат System.Windows.Forms.Form

GetSSHConnection() защищенный Метод

Gets SSHConnection from the target. Returns null if current terminal doesn't have SSH connection.
protected GetSSHConnection ( ICommandTarget target ) : ISSHConnection
target ICommandTarget Target object which has been passed to the IPoderosaCommand's method.
Результат ISSHConnection

GetTerminalName() защищенный Метод

Gets name of the current terminal.
protected GetTerminalName ( ICommandTarget target ) : string
target ICommandTarget Target object which has been passed to the IPoderosaCommand's method.
Результат string

IsAcceptable() защищенный Метод

Check if current terminal is accepted.
protected IsAcceptable ( ICommandTarget target, bool acceptSSH1, bool acceptSSH2 ) : bool
target ICommandTarget Target object which has been passed to the IPoderosaCommand's method.
acceptSSH1 bool Whether SSH1 connection is accepted.
acceptSSH2 bool Whether SSH2 connection is accepted.
Результат bool