C# 클래스 SuperPutty.SuperPuTTY

Represents the SuperPuTTY application itself
파일 보기 프로젝트 열기: sepich/superputty 1 사용 예제들

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