C# Класс SuperPutty.SuperPuTTY

Represents the SuperPuTTY application itself
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ApplyIconForWindow void

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

Метод Описание
AddLayout ( String file ) : void
AddSession ( SessionData session ) : bool

Add a new session to the in-application session database

ApplyDockRestrictions ( DockContent panel ) : void

Apply docking restrictions to a panel, such as restricting a panel from floating

ApplyDockRestrictions ( DockPanel panel ) : void

Apply docking restrictions to a ToolWindowDocument window such as preventing a window opening from outside the tabbed interface

FindLayout ( String name ) : SuperPutty.Data.LayoutData
GetAllSessions ( ) : List

Get a list of all sessions from the in-application database

GetIconForSession ( SessionData session ) : Icon

Get the Icon defined for the specified session

GetSessionById ( string sessionId ) : SessionData

Get a Session by its SessionData.SessionID

ImportSessions ( List sessions, string folder ) : void

Import sessions from a from a List object into the specified folder

ImportSessionsFromFile ( string fileName ) : void

Import sessions from the specified file into the in-application database

ImportSessionsFromPuTTY ( ) : void

Import sessions from Windows Registry which were set by PuTTY or KiTTY and load them into the in-application sessions database

ImportSessionsFromPuttyCM ( string fileExport ) : void

Import sessions from Windows Registry which were set by PuttYCM and load them into the in-application sessions database

ImportSessionsFromSuperPutty1030 ( ) : void

Import sessions from older version of SuperPuTTY from the Windows Registry

Initialize ( string args ) : void
LoadImageList ( string theme ) : ImageList

Load Images from themes folder

LoadLayout ( SuperPutty.Data.LayoutData layout ) : void
LoadLayout ( SuperPutty.Data.LayoutData layout, bool isNewLayoutAlreadyActive ) : void
LoadLayoutInNewInstance ( SuperPutty.Data.LayoutData layout ) : void
LoadLayouts ( ) : void
LoadSessionInNewInstance ( string sessionId ) : void
LoadSessions ( ) : void

Load sessions database from file into the application

MakeUniqueSessionId ( string sessionId ) : string

Generate a unique session ID to prevent collisions in the in-application data store, used when importing and merging sessions from another application or an older versin of SuperPuTTY

OpenPuttySession ( SessionData session ) : void

Open a new putty window with its settings being passed in a SessionData object

OpenPuttySession ( string sessionId ) : void

Retrieve a SessionData object and open a new putty window

OpenScpSession ( SessionData session ) : void

Open a new putty scp window with its settings being passed in a SessionData object

OpenScpSession ( string sessionId ) : void

Retrieve a SessionData object and open a new putty scp window

OpenSession ( SuperPutty.Data.SessionDataStartInfo ssi ) : void
RemoveLayout ( String name, bool deleteFile ) : void
RemoveSession ( string sessionId ) : bool

Remove a session from the in-application sessions database.

RenameLayout ( SuperPutty.Data.LayoutData layout, string newName ) : void
ReportStatus ( String status ) : void

Send status message to toolstrip

SaveSessions ( ) : void

Save in-application Session Database to XML File

SetLayoutAsDefault ( string layoutName ) : void
Shutdown ( ) : void

Called when application is shutting down, sends message to log.

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

Метод Описание
ApplyIconForWindow ( SuperPutty.ToolWindow win, SessionData session ) : void

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

AddLayout() публичный статический Метод

public static AddLayout ( String file ) : void
file String
Результат void

AddSession() публичный статический Метод

Add a new session to the in-application session database
public static AddSession ( SessionData session ) : bool
session SessionData A object containing the configuration of a session
Результат bool

ApplyDockRestrictions() публичный статический Метод

Apply docking restrictions to a panel, such as restricting a panel from floating
public static ApplyDockRestrictions ( DockContent panel ) : void
panel WeifenLuo.WinFormsUI.Docking.DockContent The panel to apply the restrictions to
Результат void

ApplyDockRestrictions() публичный статический Метод

Apply docking restrictions to a ToolWindowDocument window such as preventing a window opening from outside the tabbed interface
public static ApplyDockRestrictions ( DockPanel panel ) : void
panel WeifenLuo.WinFormsUI.Docking.DockPanel The to apply the restrictions to
Результат void

FindLayout() публичный статический Метод

public static FindLayout ( String name ) : SuperPutty.Data.LayoutData
name String
Результат SuperPutty.Data.LayoutData

GetAllSessions() публичный статический Метод

Get a list of all sessions from the in-application database
public static GetAllSessions ( ) : List
Результат List

GetIconForSession() публичный статический Метод

Get the Icon defined for the specified session
public static GetIconForSession ( SessionData session ) : Icon
session SessionData The session configuration data
Результат System.Drawing.Icon

GetSessionById() публичный статический Метод

Get a Session by its SessionData.SessionID
public static GetSessionById ( string sessionId ) : SessionData
sessionId string A string which represents a session
Результат SessionData

ImportSessions() публичный статический Метод

Import sessions from a from a List object into the specified folder
public static ImportSessions ( List sessions, string folder ) : void
sessions List A of objects
folder string The destination folder name
Результат void

ImportSessionsFromFile() публичный статический Метод

Import sessions from the specified file into the in-application database
public static ImportSessionsFromFile ( string fileName ) : void
fileName string A string containing the path of the filename that holds session configuration
Результат void

ImportSessionsFromPuTTY() публичный статический Метод

Import sessions from Windows Registry which were set by PuTTY or KiTTY and load them into the in-application sessions database
public static ImportSessionsFromPuTTY ( ) : void
Результат void

ImportSessionsFromPuttyCM() публичный статический Метод

Import sessions from Windows Registry which were set by PuttYCM and load them into the in-application sessions database
public static ImportSessionsFromPuttyCM ( string fileExport ) : void
fileExport string
Результат void

ImportSessionsFromSuperPutty1030() публичный статический Метод

Import sessions from older version of SuperPuTTY from the Windows Registry
public static ImportSessionsFromSuperPutty1030 ( ) : void
Результат void

Initialize() публичный статический Метод

public static Initialize ( string args ) : void
args string
Результат void

LoadImageList() публичный статический Метод

Load Images from themes folder
public static LoadImageList ( string theme ) : ImageList
theme string the name of the theme folder
Результат System.Windows.Forms.ImageList

LoadLayout() публичный статический Метод

public static LoadLayout ( SuperPutty.Data.LayoutData layout ) : void
layout SuperPutty.Data.LayoutData
Результат void

LoadLayout() публичный статический Метод

public static LoadLayout ( SuperPutty.Data.LayoutData layout, bool isNewLayoutAlreadyActive ) : void
layout SuperPutty.Data.LayoutData
isNewLayoutAlreadyActive bool
Результат void

LoadLayoutInNewInstance() публичный статический Метод

public static LoadLayoutInNewInstance ( SuperPutty.Data.LayoutData layout ) : void
layout SuperPutty.Data.LayoutData
Результат void

LoadLayouts() публичный статический Метод

public static LoadLayouts ( ) : void
Результат void

LoadSessionInNewInstance() публичный статический Метод

public static LoadSessionInNewInstance ( string sessionId ) : void
sessionId string
Результат void

LoadSessions() публичный статический Метод

Load sessions database from file into the application
public static LoadSessions ( ) : void
Результат void

MakeUniqueSessionId() публичный статический Метод

Generate a unique session ID to prevent collisions in the in-application data store, used when importing and merging sessions from another application or an older versin of SuperPuTTY
public static MakeUniqueSessionId ( string sessionId ) : string
sessionId string A string containing the sessionID of the session being imported
Результат string

OpenPuttySession() публичный статический Метод

Open a new putty window with its settings being passed in a SessionData object
public static OpenPuttySession ( SessionData session ) : void
session SessionData The object containing the settings
Результат void

OpenPuttySession() публичный статический Метод

Retrieve a SessionData object and open a new putty window
public static OpenPuttySession ( string sessionId ) : void
sessionId string A string containing the of the session
Результат void

OpenScpSession() публичный статический Метод

Open a new putty scp window with its settings being passed in a SessionData object
public static OpenScpSession ( SessionData session ) : void
session SessionData The object containing the settings
Результат void

OpenScpSession() публичный статический Метод

Retrieve a SessionData object and open a new putty scp window
public static OpenScpSession ( string sessionId ) : void
sessionId string A string containing the of the session
Результат void

OpenSession() публичный статический Метод

public static OpenSession ( SuperPutty.Data.SessionDataStartInfo ssi ) : void
ssi SuperPutty.Data.SessionDataStartInfo
Результат void

RemoveLayout() публичный статический Метод

public static RemoveLayout ( String name, bool deleteFile ) : void
name String
deleteFile bool
Результат void

RemoveSession() публичный статический Метод

Remove a session from the in-application sessions database.
public static RemoveSession ( string sessionId ) : bool
sessionId string The of the session to remove
Результат bool

RenameLayout() публичный статический Метод

public static RenameLayout ( SuperPutty.Data.LayoutData layout, string newName ) : void
layout SuperPutty.Data.LayoutData
newName string
Результат void

ReportStatus() публичный статический Метод

Send status message to toolstrip
public static ReportStatus ( String status ) : void
status String A string containing the message
Результат void

SaveSessions() публичный статический Метод

Save in-application Session Database to XML File
public static SaveSessions ( ) : void
Результат void

SetLayoutAsDefault() публичный статический Метод

public static SetLayoutAsDefault ( string layoutName ) : void
layoutName string
Результат void

Shutdown() публичный статический Метод

Called when application is shutting down, sends message to log.
public static Shutdown ( ) : void
Результат void