C# Class SuperPutty.SuperPuTTY

Represents the SuperPuTTY application itself
Afficher le fichier Open project: sepich/superputty Class Usage Examples

Private Properties

Свойство Type Description
ApplyIconForWindow void

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
ApplyIconForWindow ( SuperPutty.ToolWindow win, SessionData session ) : void

Method Details

AddLayout() public static méthode

public static AddLayout ( String file ) : void
file String
Résultat void

AddSession() public static méthode

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
Résultat bool

ApplyDockRestrictions() public static méthode

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
Résultat void

ApplyDockRestrictions() public static méthode

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
Résultat void

FindLayout() public static méthode

public static FindLayout ( String name ) : SuperPutty.Data.LayoutData
name String
Résultat SuperPutty.Data.LayoutData

GetAllSessions() public static méthode

Get a list of all sessions from the in-application database
public static GetAllSessions ( ) : List
Résultat List

GetIconForSession() public static méthode

Get the Icon defined for the specified session
public static GetIconForSession ( SessionData session ) : Icon
session SessionData The session configuration data
Résultat System.Drawing.Icon

GetSessionById() public static méthode

Get a Session by its SessionData.SessionID
public static GetSessionById ( string sessionId ) : SessionData
sessionId string A string which represents a session
Résultat SessionData

ImportSessions() public static méthode

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
Résultat void

ImportSessionsFromFile() public static méthode

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
Résultat void

ImportSessionsFromPuTTY() public static méthode

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
Résultat void

ImportSessionsFromPuttyCM() public static méthode

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
Résultat void

ImportSessionsFromSuperPutty1030() public static méthode

Import sessions from older version of SuperPuTTY from the Windows Registry
public static ImportSessionsFromSuperPutty1030 ( ) : void
Résultat void

Initialize() public static méthode

public static Initialize ( string args ) : void
args string
Résultat void

LoadImageList() public static méthode

Load Images from themes folder
public static LoadImageList ( string theme ) : ImageList
theme string the name of the theme folder
Résultat System.Windows.Forms.ImageList

LoadLayout() public static méthode

public static LoadLayout ( SuperPutty.Data.LayoutData layout ) : void
layout SuperPutty.Data.LayoutData
Résultat void

LoadLayout() public static méthode

public static LoadLayout ( SuperPutty.Data.LayoutData layout, bool isNewLayoutAlreadyActive ) : void
layout SuperPutty.Data.LayoutData
isNewLayoutAlreadyActive bool
Résultat void

LoadLayoutInNewInstance() public static méthode

public static LoadLayoutInNewInstance ( SuperPutty.Data.LayoutData layout ) : void
layout SuperPutty.Data.LayoutData
Résultat void

LoadLayouts() public static méthode

public static LoadLayouts ( ) : void
Résultat void

LoadSessionInNewInstance() public static méthode

public static LoadSessionInNewInstance ( string sessionId ) : void
sessionId string
Résultat void

LoadSessions() public static méthode

Load sessions database from file into the application
public static LoadSessions ( ) : void
Résultat void

MakeUniqueSessionId() public static méthode

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
Résultat string

OpenPuttySession() public static méthode

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
Résultat void

OpenPuttySession() public static méthode

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
Résultat void

OpenScpSession() public static méthode

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
Résultat void

OpenScpSession() public static méthode

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
Résultat void

OpenSession() public static méthode

public static OpenSession ( SuperPutty.Data.SessionDataStartInfo ssi ) : void
ssi SuperPutty.Data.SessionDataStartInfo
Résultat void

RemoveLayout() public static méthode

public static RemoveLayout ( String name, bool deleteFile ) : void
name String
deleteFile bool
Résultat void

RemoveSession() public static méthode

Remove a session from the in-application sessions database.
public static RemoveSession ( string sessionId ) : bool
sessionId string The of the session to remove
Résultat bool

RenameLayout() public static méthode

public static RenameLayout ( SuperPutty.Data.LayoutData layout, string newName ) : void
layout SuperPutty.Data.LayoutData
newName string
Résultat void

ReportStatus() public static méthode

Send status message to toolstrip
public static ReportStatus ( String status ) : void
status String A string containing the message
Résultat void

SaveSessions() public static méthode

Save in-application Session Database to XML File
public static SaveSessions ( ) : void
Résultat void

SetLayoutAsDefault() public static méthode

public static SetLayoutAsDefault ( string layoutName ) : void
layoutName string
Résultat void

Shutdown() public static méthode

Called when application is shutting down, sends message to log.
public static Shutdown ( ) : void
Résultat void