├── Installer
├── Version.txt
├── psm.nsi
├── GetVersion.exe
├── cleaninstaller.bat
├── compileinstaller.bat
└── getversion.nsi
├── PuTTYSessionManager
├── buildinfo
│ └── basever.txt
├── form
│ ├── Options.cs
│ ├── FolderForm.cs
│ ├── SessionNameForm.cs
│ ├── ProxyAuthenticationForm.cs
│ ├── ProgressDialog.cs
│ ├── ExportDialog.cs
│ ├── SessionManagementForm.Designer.cs
│ └── SessionEditorForm.Designer.cs
├── icons
│ ├── Folder.gif
│ ├── Putty.gif
│ ├── Thumbs.db
│ ├── putty.ico
│ └── SelectedFolder.gif
├── lib
│ └── FileHelpers.dll
├── bin
│ ├── Release
│ │ ├── FileHelpers.dll
│ │ ├── KiTTY Session Manager.exe
│ │ ├── KiTTY Session Manager.pdb
│ │ ├── KiTTY Session Manager.vshost.exe
│ │ └── KiTTY Session Manager.vshost.exe.manifest
│ └── Debug
│ │ ├── KiTTY Session Manager.vshost.exe
│ │ └── KiTTY Session Manager.vshost.exe.manifest
├── obj
│ ├── Debug
│ │ ├── KiTTY Session Manager.exe
│ │ ├── KiTTY Session Manager.pdb
│ │ ├── ResolveAssemblyReference.cache
│ │ ├── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── PuTTY Session Manager.csproj.GenerateResource.Cache
│ │ ├── uk.org.riseley.puttySessionManager.form.AboutBox.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.Options.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.FolderForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.UpdateForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.ExportDialog.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.HotkeyChooser.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.NewSessionForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.ProgressDialog.resources
│ │ ├── uk.org.riseley.puttySessionManager.Properties.Resources.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.TableControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.CopySessionForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SessionNameForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SynchronizeForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.SessionControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SessionEditorForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SessionManagerForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.SessionListControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.SessionTreeControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SessionManagementForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.SessionEditorControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.ProxyAuthenticationForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.OptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.SyncOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.TreeOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.UpdateOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.WinSCPOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.FileZillaOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.GeneralOptionsControl.resources
│ │ └── uk.org.riseley.puttySessionManager.control.options.PageantOptionsControl.resources
│ └── Release
│ │ ├── KiTTY Session Manager.exe
│ │ ├── KiTTY Session Manager.pdb
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── TempPE
│ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── PuTTY Session Manager.csproj.GenerateResource.Cache
│ │ ├── uk.org.riseley.puttySessionManager.form.Options.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.AboutBox.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.ExportDialog.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.FolderForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.UpdateForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.HotkeyChooser.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.NewSessionForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.ProgressDialog.resources
│ │ ├── uk.org.riseley.puttySessionManager.Properties.Resources.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.SessionControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.TableControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.CopySessionForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SessionEditorForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SessionNameForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SynchronizeForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SessionManagerForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.SessionListControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.SessionTreeControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.SessionManagementForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.SessionEditorControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.form.ProxyAuthenticationForm.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.OptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.SyncOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.TreeOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.GeneralOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.KageantOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.UpdateOptionsControl.resources
│ │ ├── uk.org.riseley.puttySessionManager.control.options.WinSCPOptionsControl.resources
│ │ └── uk.org.riseley.puttySessionManager.control.options.FileZillaOptionsControl.resources
├── PuTTY Session Manager.csproj.user
├── Properties
│ ├── app.manifest
│ ├── Resources.Designer.cs
│ └── AssemblyInfo.cs
├── control
│ ├── options
│ │ ├── ResetableOptionsControl.cs
│ │ ├── TreeOptionsControl.cs
│ │ ├── OptionsControl.Designer.cs
│ │ ├── PageantOptionsControl.cs
│ │ └── FileZillaOptionsControl.cs
│ ├── SessionListControl.Designer.cs
│ └── SessionControl.Designer.cs
├── model
│ ├── eventargs
│ │ ├── ExportSessionEventArgs.cs
│ │ ├── RefreshSessionsEventArgs.cs
│ │ ├── LaunchSessionEventArgs.cs
│ │ ├── SyncSessionsLoadedEventArgs.cs
│ │ └── SyncSessionsRequestedEventArgs.cs
│ ├── CopySessionRequest.cs
│ ├── CsvRecord.cs
│ ├── NewSessionRequest.cs
│ ├── HotkeyModifier.cs
│ ├── SessionAction.cs
│ └── SessionSorter.cs
├── controller
│ ├── SessionAttributes.cs
│ ├── SessionAttributesInterface.cs
│ ├── ISessionImport.cs
│ ├── ISessionExport.cs
│ ├── CsvSessionExportImpl.cs
│ └── ISessionStorage.cs
└── Settings.cs
├── Backup
├── PuTTYSessionManager
│ ├── buildinfo
│ │ └── basever.txt
│ ├── form
│ │ ├── Options.cs
│ │ ├── FolderForm.cs
│ │ ├── SessionNameForm.cs
│ │ ├── ProxyAuthenticationForm.cs
│ │ ├── ProgressDialog.cs
│ │ ├── ExportDialog.cs
│ │ ├── SessionManagementForm.Designer.cs
│ │ └── SessionEditorForm.Designer.cs
│ ├── icons
│ │ ├── Folder.gif
│ │ ├── Putty.gif
│ │ ├── Putty.ico
│ │ └── SelectedFolder.gif
│ ├── PuTTY Session Manager.csproj.user
│ ├── Properties
│ │ ├── app.manifest
│ │ ├── Resources.Designer.cs
│ │ └── AssemblyInfo.cs
│ ├── control
│ │ ├── options
│ │ │ ├── ResetableOptionsControl.cs
│ │ │ ├── TreeOptionsControl.cs
│ │ │ ├── OptionsControl.Designer.cs
│ │ │ └── PageantOptionsControl.cs
│ │ ├── SessionListControl.Designer.cs
│ │ └── SessionControl.Designer.cs
│ ├── model
│ │ ├── eventargs
│ │ │ ├── ExportSessionEventArgs.cs
│ │ │ ├── RefreshSessionsEventArgs.cs
│ │ │ ├── LaunchSessionEventArgs.cs
│ │ │ ├── SyncSessionsLoadedEventArgs.cs
│ │ │ └── SyncSessionsRequestedEventArgs.cs
│ │ ├── CopySessionRequest.cs
│ │ ├── CsvRecord.cs
│ │ ├── NewSessionRequest.cs
│ │ ├── HotkeyModifier.cs
│ │ ├── SessionAction.cs
│ │ └── SessionSorter.cs
│ ├── controller
│ │ ├── SessionAttributes.cs
│ │ ├── SessionAttributesInterface.cs
│ │ ├── ISessionImport.cs
│ │ ├── ISessionExport.cs
│ │ ├── CsvSessionExportImpl.cs
│ │ └── ISessionStorage.cs
│ └── Settings.cs
├── PuTTY Session Manager.suo
└── PuTTY Session Manager.sln
├── SDK Command Prompt.lnk
├── PuTTY Session Manager.suo
├── PuTTY Session Manager.v12.suo
├── PuTTY Session Manager.sln
└── README.md
/Installer/Version.txt:
--------------------------------------------------------------------------------
1 | !define Version "1.0.0.0"
--------------------------------------------------------------------------------
/PuTTYSessionManager/buildinfo/basever.txt:
--------------------------------------------------------------------------------
1 | 1.0.0.0
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/buildinfo/basever.txt:
--------------------------------------------------------------------------------
1 | 1.0.0.0
--------------------------------------------------------------------------------
/Installer/psm.nsi:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/Installer/psm.nsi
--------------------------------------------------------------------------------
/Installer/GetVersion.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/Installer/GetVersion.exe
--------------------------------------------------------------------------------
/SDK Command Prompt.lnk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/SDK Command Prompt.lnk
--------------------------------------------------------------------------------
/PuTTY Session Manager.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTY Session Manager.suo
--------------------------------------------------------------------------------
/Installer/cleaninstaller.bat:
--------------------------------------------------------------------------------
1 | echo o|del /s ksm-setup-*.exe
2 | echo o|del /s Version.txt
3 | echo o|del /s GetVersion.exe
--------------------------------------------------------------------------------
/PuTTY Session Manager.v12.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTY Session Manager.v12.suo
--------------------------------------------------------------------------------
/Backup/PuTTY Session Manager.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/Backup/PuTTY Session Manager.suo
--------------------------------------------------------------------------------
/PuTTYSessionManager/form/Options.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/form/Options.cs
--------------------------------------------------------------------------------
/PuTTYSessionManager/icons/Folder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/icons/Folder.gif
--------------------------------------------------------------------------------
/PuTTYSessionManager/icons/Putty.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/icons/Putty.gif
--------------------------------------------------------------------------------
/PuTTYSessionManager/icons/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/icons/Thumbs.db
--------------------------------------------------------------------------------
/PuTTYSessionManager/icons/putty.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/icons/putty.ico
--------------------------------------------------------------------------------
/PuTTYSessionManager/lib/FileHelpers.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/lib/FileHelpers.dll
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/form/Options.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/Backup/PuTTYSessionManager/form/Options.cs
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/icons/Folder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/Backup/PuTTYSessionManager/icons/Folder.gif
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/icons/Putty.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/Backup/PuTTYSessionManager/icons/Putty.gif
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/icons/Putty.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/Backup/PuTTYSessionManager/icons/Putty.ico
--------------------------------------------------------------------------------
/PuTTYSessionManager/icons/SelectedFolder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/icons/SelectedFolder.gif
--------------------------------------------------------------------------------
/PuTTYSessionManager/bin/Release/FileHelpers.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/bin/Release/FileHelpers.dll
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/icons/SelectedFolder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/Backup/PuTTYSessionManager/icons/SelectedFolder.gif
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/KiTTY Session Manager.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/KiTTY Session Manager.exe
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/KiTTY Session Manager.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/KiTTY Session Manager.pdb
--------------------------------------------------------------------------------
/PuTTYSessionManager/bin/Release/KiTTY Session Manager.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/bin/Release/KiTTY Session Manager.exe
--------------------------------------------------------------------------------
/PuTTYSessionManager/bin/Release/KiTTY Session Manager.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/bin/Release/KiTTY Session Manager.pdb
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/KiTTY Session Manager.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/KiTTY Session Manager.exe
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/KiTTY Session Manager.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/KiTTY Session Manager.pdb
--------------------------------------------------------------------------------
/Installer/compileinstaller.bat:
--------------------------------------------------------------------------------
1 | "C:\Program Files (x86)\NSIS\makensis.exe" /NOTIFYHWND 1049488 getversion.nsi
2 | "C:\Program Files (x86)\NSIS\makensis.exe" /NOTIFYHWND 1049488 psm.nsi
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/ResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/ResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/PuTTYSessionManager/bin/Debug/KiTTY Session Manager.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/bin/Debug/KiTTY Session Manager.vshost.exe
--------------------------------------------------------------------------------
/PuTTYSessionManager/bin/Release/KiTTY Session Manager.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/bin/Release/KiTTY Session Manager.vshost.exe
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/DesignTimeResolveAssemblyReferences.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/DesignTimeResolveAssemblyReferences.cache
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/TempPE/Properties.Resources.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/TempPE/Properties.Resources.Designer.cs.dll
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/PuTTY Session Manager.csproj.GenerateResource.Cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/PuTTY Session Manager.csproj.GenerateResource.Cache
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/PuTTY Session Manager.csproj.GenerateResource.Cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/PuTTY Session Manager.csproj.GenerateResource.Cache
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.AboutBox.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.AboutBox.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.Options.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.Options.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.Options.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.Options.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.FolderForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.FolderForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.UpdateForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.UpdateForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.AboutBox.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.AboutBox.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.ExportDialog.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.ExportDialog.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.HotkeyChooser.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.HotkeyChooser.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.NewSessionForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.NewSessionForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.ProgressDialog.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.ProgressDialog.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.ExportDialog.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.ExportDialog.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.FolderForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.FolderForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.UpdateForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.UpdateForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.Properties.Resources.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.TableControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.TableControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.CopySessionForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.CopySessionForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SessionNameForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SessionNameForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SynchronizeForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SynchronizeForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.HotkeyChooser.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.HotkeyChooser.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.NewSessionForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.NewSessionForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.ProgressDialog.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.ProgressDialog.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.SessionControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.SessionControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SessionEditorForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SessionEditorForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SessionManagerForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SessionManagerForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.Properties.Resources.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.SessionControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.SessionControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.TableControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.TableControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.CopySessionForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.CopySessionForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SessionEditorForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SessionEditorForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SessionNameForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SessionNameForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SynchronizeForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SynchronizeForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.SessionListControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.SessionListControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.SessionTreeControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.SessionTreeControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SessionManagementForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.SessionManagementForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SessionManagerForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SessionManagerForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.SessionEditorControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.SessionEditorControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.ProxyAuthenticationForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.form.ProxyAuthenticationForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.SessionListControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.SessionListControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.SessionTreeControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.SessionTreeControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SessionManagementForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.SessionManagementForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.OptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.OptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.SessionEditorControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.SessionEditorControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.ProxyAuthenticationForm.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.form.ProxyAuthenticationForm.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.SyncOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.SyncOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.TreeOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.TreeOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.OptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.OptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.UpdateOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.UpdateOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.WinSCPOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.WinSCPOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.SyncOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.SyncOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.TreeOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.TreeOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.FileZillaOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.FileZillaOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.GeneralOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.GeneralOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.PageantOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Debug/uk.org.riseley.puttySessionManager.control.options.PageantOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.GeneralOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.GeneralOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.KageantOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.KageantOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.UpdateOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.UpdateOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.WinSCPOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.WinSCPOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.FileZillaOptionsControl.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/novakin/Kitty-Session-Manager/HEAD/PuTTYSessionManager/obj/Release/uk.org.riseley.puttySessionManager.control.options.FileZillaOptionsControl.resources
--------------------------------------------------------------------------------
/PuTTYSessionManager/bin/Debug/KiTTY Session Manager.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/bin/Release/KiTTY Session Manager.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/PuTTY Session Manager.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 | ..\PSMInstaller\
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | en-US
15 | false
16 |
17 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/PuTTY Session Manager.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ..\PSMInstaller\
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | en-US
16 | false
17 |
18 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/Properties/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/Properties/app.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/control/options/ResetableOptionsControl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.control.options
23 | {
24 | interface ResetableOptionsControl
25 | {
26 | void resetState();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/control/options/ResetableOptionsControl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.control.options
23 | {
24 | interface ResetableOptionsControl
25 | {
26 | void resetState();
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/PuTTY Session Manager.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual C# Express 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PuTTY Session Manager", "PuTTYSessionManager\PuTTY Session Manager.csproj", "{043D06B2-54A0-40C6-AC44-BBCF30717E90}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Any CPU = Debug|Any CPU
9 | Release|Any CPU = Release|Any CPU
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {043D06B2-54A0-40C6-AC44-BBCF30717E90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13 | {043D06B2-54A0-40C6-AC44-BBCF30717E90}.Debug|Any CPU.Build.0 = Debug|Any CPU
14 | {043D06B2-54A0-40C6-AC44-BBCF30717E90}.Release|Any CPU.ActiveCfg = Release|Any CPU
15 | {043D06B2-54A0-40C6-AC44-BBCF30717E90}.Release|Any CPU.Build.0 = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | GlobalSection(SubversionScc) = preSolution
21 | Svn-Managed = True
22 | Manager = AnkhSVN - Subversion Support for Visual Studio
23 | EndGlobalSection
24 | EndGlobal
25 |
--------------------------------------------------------------------------------
/Backup/PuTTY Session Manager.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 10.00
3 | # Visual C# Express 2008
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PuTTY Session Manager", "PuTTYSessionManager\PuTTY Session Manager.csproj", "{043D06B2-54A0-40C6-AC44-BBCF30717E90}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|Any CPU = Debug|Any CPU
9 | Release|Any CPU = Release|Any CPU
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {043D06B2-54A0-40C6-AC44-BBCF30717E90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13 | {043D06B2-54A0-40C6-AC44-BBCF30717E90}.Debug|Any CPU.Build.0 = Debug|Any CPU
14 | {043D06B2-54A0-40C6-AC44-BBCF30717E90}.Release|Any CPU.ActiveCfg = Release|Any CPU
15 | {043D06B2-54A0-40C6-AC44-BBCF30717E90}.Release|Any CPU.Build.0 = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | GlobalSection(SubversionScc) = preSolution
21 | Svn-Managed = True
22 | Manager = AnkhSVN - Subversion Support for Visual Studio
23 | EndGlobalSection
24 | EndGlobal
25 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/eventargs/ExportSessionEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model.eventargs
23 | {
24 | public class ExportSessionEventArgs : EventArgs
25 | {
26 | public enum ExportType {
27 | REG_TYPE ,
28 | CSV_TYPE ,
29 | CLIP_TYPE
30 | }
31 | public ExportSessionEventArgs()
32 | : this(ExportType.REG_TYPE)
33 | {
34 | }
35 |
36 | public ExportSessionEventArgs(ExportType type)
37 | {
38 | this.type = type;
39 | }
40 |
41 | public ExportType type;
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/eventargs/ExportSessionEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model.eventargs
23 | {
24 | public class ExportSessionEventArgs : EventArgs
25 | {
26 | public enum ExportType {
27 | REG_TYPE ,
28 | CSV_TYPE ,
29 | CLIP_TYPE
30 | }
31 | public ExportSessionEventArgs()
32 | : this(ExportType.REG_TYPE)
33 | {
34 | }
35 |
36 | public ExportSessionEventArgs(ExportType type)
37 | {
38 | this.type = type;
39 | }
40 |
41 | public ExportType type;
42 |
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/eventargs/RefreshSessionsEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 |
20 | namespace uk.org.riseley.puttySessionManager.model.eventargs
21 | {
22 | public class RefreshSessionsEventArgs : EventArgs
23 | {
24 | public RefreshSessionsEventArgs()
25 | : this(true)
26 | {
27 |
28 | }
29 |
30 | public RefreshSessionsEventArgs(bool refreshSource)
31 | {
32 | this.refreshSource = refreshSource;
33 | }
34 |
35 | private bool refreshSource;
36 |
37 | public bool RefreshSource {
38 | get
39 | {
40 | return this.refreshSource;
41 | }
42 |
43 | }
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/eventargs/RefreshSessionsEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 |
20 | namespace uk.org.riseley.puttySessionManager.model.eventargs
21 | {
22 | public class RefreshSessionsEventArgs : EventArgs
23 | {
24 | public RefreshSessionsEventArgs()
25 | : this(true)
26 | {
27 |
28 | }
29 |
30 | public RefreshSessionsEventArgs(bool refreshSource)
31 | {
32 | this.refreshSource = refreshSource;
33 | }
34 |
35 | private bool refreshSource;
36 |
37 | public bool RefreshSource {
38 | get
39 | {
40 | return this.refreshSource;
41 | }
42 |
43 | }
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/controller/SessionAttributes.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.controller
23 | {
24 | public abstract class SessionAttributes
25 | {
26 | public enum AttribGroups
27 | {
28 | COLOURS
29 | , DEFAULT_USERNAME
30 | , FONT
31 | , HOSTNAME
32 | , KEEP_ALIVES
33 | , PROTOCOL_PORT
34 | , SCROLLBACK
35 | , SELECTION_CHARS
36 | , SESSION_FOLDER
37 | , SSH_PORT_FORWARDS
38 | };
39 |
40 | public enum SpecialAttributes
41 | {
42 | FOLDER
43 | , HOSTNAME
44 | , USERNAME
45 | };
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/controller/SessionAttributes.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.controller
23 | {
24 | public abstract class SessionAttributes
25 | {
26 | public enum AttribGroups
27 | {
28 | COLOURS
29 | , DEFAULT_USERNAME
30 | , FONT
31 | , HOSTNAME
32 | , KEEP_ALIVES
33 | , PROTOCOL_PORT
34 | , SCROLLBACK
35 | , SELECTION_CHARS
36 | , SESSION_FOLDER
37 | , SSH_PORT_FORWARDS
38 | };
39 |
40 | public enum SpecialAttributes
41 | {
42 | FOLDER
43 | , HOSTNAME
44 | , USERNAME
45 | };
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/controller/SessionAttributesInterface.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.controller
23 | {
24 | interface SessionAttributesInterface
25 | {
26 | ///
27 | /// Gets special attributes.
28 | ///
29 | /// The attribute to find
30 | /// The attribute name
31 | string getSpecialAttribute(SessionAttributes.SpecialAttributes attrib);
32 |
33 | ///
34 | /// Get a list for attribute names for the group
35 | ///
36 | /// The attribute group to find
37 | /// The list of attributes
38 | List getAttributeGroup(SessionAttributes.AttribGroups group);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/form/FolderForm.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 |
26 | namespace uk.org.riseley.puttySessionManager.form
27 | {
28 | public partial class FolderForm : Form
29 | {
30 | public FolderForm()
31 | {
32 | InitializeComponent();
33 | resetDialogFont();
34 | }
35 |
36 | public FolderForm(string foldername)
37 | : this()
38 | {
39 | textBox1.Text = foldername;
40 | }
41 |
42 | public string getFolderName()
43 | {
44 | return textBox1.Text;
45 | }
46 |
47 | public void resetDialogFont()
48 | {
49 | Font = Properties.Settings.Default.DialogFont;
50 | }
51 | }
52 | }
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/controller/SessionAttributesInterface.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.controller
23 | {
24 | interface SessionAttributesInterface
25 | {
26 | ///
27 | /// Gets special attributes.
28 | ///
29 | /// The attribute to find
30 | /// The attribute name
31 | string getSpecialAttribute(SessionAttributes.SpecialAttributes attrib);
32 |
33 | ///
34 | /// Get a list for attribute names for the group
35 | ///
36 | /// The attribute group to find
37 | /// The list of attributes
38 | List getAttributeGroup(SessionAttributes.AttribGroups group);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/form/FolderForm.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 |
26 | namespace uk.org.riseley.puttySessionManager.form
27 | {
28 | public partial class FolderForm : Form
29 | {
30 | public FolderForm()
31 | {
32 | InitializeComponent();
33 | resetDialogFont();
34 | }
35 |
36 | public FolderForm(string foldername)
37 | : this()
38 | {
39 | textBox1.Text = foldername;
40 | }
41 |
42 | public string getFolderName()
43 | {
44 | return textBox1.Text;
45 | }
46 |
47 | public void resetDialogFont()
48 | {
49 | Font = Properties.Settings.Default.DialogFont;
50 | }
51 | }
52 | }
--------------------------------------------------------------------------------
/PuTTYSessionManager/form/SessionNameForm.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 |
26 | namespace uk.org.riseley.puttySessionManager.form
27 | {
28 | public partial class SessionNameForm
29 | : Form
30 | {
31 | public SessionNameForm()
32 | {
33 | InitializeComponent();
34 | resetDialogFont();
35 | }
36 |
37 | public SessionNameForm(string sessionName)
38 | : this()
39 | {
40 | sessionNameTextBox.Text = sessionName;
41 | }
42 |
43 | public string getSessionName()
44 | {
45 | return sessionNameTextBox.Text;
46 | }
47 |
48 | public void resetDialogFont()
49 | {
50 | Font = Properties.Settings.Default.DialogFont;
51 | }
52 | }
53 | }
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/form/SessionNameForm.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 |
26 | namespace uk.org.riseley.puttySessionManager.form
27 | {
28 | public partial class SessionNameForm
29 | : Form
30 | {
31 | public SessionNameForm()
32 | {
33 | InitializeComponent();
34 | resetDialogFont();
35 | }
36 |
37 | public SessionNameForm(string sessionName)
38 | : this()
39 | {
40 | sessionNameTextBox.Text = sessionName;
41 | }
42 |
43 | public string getSessionName()
44 | {
45 | return sessionNameTextBox.Text;
46 | }
47 |
48 | public void resetDialogFont()
49 | {
50 | Font = Properties.Settings.Default.DialogFont;
51 | }
52 | }
53 | }
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/eventargs/LaunchSessionEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 |
20 | namespace uk.org.riseley.puttySessionManager.model.eventargs
21 | {
22 | public class LaunchSessionEventArgs : EventArgs
23 | {
24 | public enum PROGRAM { PUTTY, FILEZILLA, WINSCP };
25 |
26 | public LaunchSessionEventArgs()
27 | : this(null, PROGRAM.PUTTY)
28 | {
29 | }
30 |
31 | public LaunchSessionEventArgs(Session session)
32 | : this(session, PROGRAM.PUTTY)
33 | {
34 | }
35 |
36 | public LaunchSessionEventArgs(Session session, PROGRAM program )
37 | {
38 | this.session = session;
39 | this.program = program;
40 | }
41 |
42 | public Session session;
43 |
44 | public PROGRAM program;
45 |
46 | public string SessionName()
47 | {
48 | if (session != null)
49 | return session.SessionDisplayText;
50 | else
51 | return "";
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/eventargs/LaunchSessionEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 |
20 | namespace uk.org.riseley.puttySessionManager.model.eventargs
21 | {
22 | public class LaunchSessionEventArgs : EventArgs
23 | {
24 | public enum PROGRAM { PUTTY, FILEZILLA, WINSCP };
25 |
26 | public LaunchSessionEventArgs()
27 | : this(null, PROGRAM.PUTTY)
28 | {
29 | }
30 |
31 | public LaunchSessionEventArgs(Session session)
32 | : this(session, PROGRAM.PUTTY)
33 | {
34 | }
35 |
36 | public LaunchSessionEventArgs(Session session, PROGRAM program )
37 | {
38 | this.session = session;
39 | this.program = program;
40 | }
41 |
42 | public Session session;
43 |
44 | public PROGRAM program;
45 |
46 | public string SessionName()
47 | {
48 | if (session != null)
49 | return session.SessionDisplayText;
50 | else
51 | return "";
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/controller/ISessionImport.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using uk.org.riseley.puttySessionManager.model;
22 |
23 | namespace uk.org.riseley.puttySessionManager.controller
24 | {
25 | ///
26 | /// The contract for a session import provider
27 | ///
28 | interface ISessionImport
29 | {
30 | ///
31 | /// Return a description of the export file type
32 | ///
33 | ///
34 | string getFileTypeDescription();
35 |
36 | ///
37 | /// Return the file extension
38 | ///
39 | ///
40 | string getFileTypeExtension();
41 |
42 | ///
43 | /// Load the session list from the specified Uri
44 | /// This may throw an exception if there is some issue
45 | /// with the file I/O
46 | ///
47 | ///
48 | ///
49 | List loadSessions(String location);
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/controller/ISessionImport.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using uk.org.riseley.puttySessionManager.model;
22 |
23 | namespace uk.org.riseley.puttySessionManager.controller
24 | {
25 | ///
26 | /// The contract for a session import provider
27 | ///
28 | interface ISessionImport
29 | {
30 | ///
31 | /// Return a description of the export file type
32 | ///
33 | ///
34 | string getFileTypeDescription();
35 |
36 | ///
37 | /// Return the file extension
38 | ///
39 | ///
40 | string getFileTypeExtension();
41 |
42 | ///
43 | /// Load the session list from the specified Uri
44 | /// This may throw an exception if there is some issue
45 | /// with the file I/O
46 | ///
47 | ///
48 | ///
49 | List loadSessions(String location);
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/eventargs/SyncSessionsLoadedEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using uk.org.riseley.puttySessionManager.model;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model.eventargs
23 | {
24 | public class SyncSessionsLoadedEventArgs : EventArgs
25 | {
26 | public SyncSessionsLoadedEventArgs(List sessionList, Session sessionTemplate , bool ignoreExistingSessions)
27 | {
28 | this.sessionList = sessionList;
29 | this.ignoreExistingSessions = ignoreExistingSessions;
30 | this.sessionTemplate = sessionTemplate;
31 | }
32 |
33 | private List sessionList;
34 | public List SessionList
35 | {
36 | get { return sessionList; }
37 | }
38 |
39 | private Session sessionTemplate;
40 | public Session SessionTemplate
41 | {
42 | get { return sessionTemplate; }
43 | }
44 |
45 | private bool ignoreExistingSessions;
46 | public bool IgnoreExistingSessions
47 | {
48 | get { return ignoreExistingSessions; }
49 | }
50 |
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/eventargs/SyncSessionsLoadedEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using uk.org.riseley.puttySessionManager.model;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model.eventargs
23 | {
24 | public class SyncSessionsLoadedEventArgs : EventArgs
25 | {
26 | public SyncSessionsLoadedEventArgs(List sessionList, Session sessionTemplate , bool ignoreExistingSessions)
27 | {
28 | this.sessionList = sessionList;
29 | this.ignoreExistingSessions = ignoreExistingSessions;
30 | this.sessionTemplate = sessionTemplate;
31 | }
32 |
33 | private List sessionList;
34 | public List SessionList
35 | {
36 | get { return sessionList; }
37 | }
38 |
39 | private Session sessionTemplate;
40 | public Session SessionTemplate
41 | {
42 | get { return sessionTemplate; }
43 | }
44 |
45 | private bool ignoreExistingSessions;
46 | public bool IgnoreExistingSessions
47 | {
48 | get { return ignoreExistingSessions; }
49 | }
50 |
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/controller/ISessionExport.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using uk.org.riseley.puttySessionManager.model;
22 |
23 | namespace uk.org.riseley.puttySessionManager.controller
24 | {
25 | ///
26 | /// The contract for a session export provider
27 | ///
28 | interface ISessionExport
29 | {
30 | ///
31 | /// Return a description of the export file type
32 | ///
33 | ///
34 | string getFileTypeDescription();
35 |
36 | ///
37 | /// Return the file extension
38 | ///
39 | ///
40 | string getFileTypeExtension();
41 |
42 | ///
43 | /// Save the session list to the specified filename
44 | /// This may throw an exception if there is some issue
45 | /// with the file I/O
46 | ///
47 | ///
48 | ///
49 | ///
50 | int saveSessionsToFile(List sessionList, String fileName);
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/controller/ISessionExport.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using uk.org.riseley.puttySessionManager.model;
22 |
23 | namespace uk.org.riseley.puttySessionManager.controller
24 | {
25 | ///
26 | /// The contract for a session export provider
27 | ///
28 | interface ISessionExport
29 | {
30 | ///
31 | /// Return a description of the export file type
32 | ///
33 | ///
34 | string getFileTypeDescription();
35 |
36 | ///
37 | /// Return the file extension
38 | ///
39 | ///
40 | string getFileTypeExtension();
41 |
42 | ///
43 | /// Save the session list to the specified filename
44 | /// This may throw an exception if there is some issue
45 | /// with the file I/O
46 | ///
47 | ///
48 | ///
49 | ///
50 | int saveSessionsToFile(List sessionList, String fileName);
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Kitty-Session-Manager
2 | KiTTy Session Manager (KSM) is a tool that allows system adminstrators to organise their KiTTy sessions into folders and assign hotkeys to their favourite sessions. This is designed for MS Windows and requires the .NET Framework 4.0.3
3 |
4 |
5 |
6 | ### :gb: KiTTy Session Manager features
7 | - Organise your sessions into folders
8 | - Launch folders of sessions simultaneously
9 | - Assign Windows hotkeys to your ten favourite sessions
10 | - Browse session folders from the system tray
11 | - Display sessions in a list
12 | - Semi-transparency of sessions window
13 | - Does not require any alterations to the existing KiTTy executable
14 | - Session Management :
15 | * Export Sessions to registry file, or CSV file
16 | * Save New Session using existing session as template
17 | * Delete Sessions
18 | * Copy Session Attributes – copy all or part of your session settings from one session to many others
19 | * Rename Sessions
20 | - Support for launching Kageant with a list of SSH keys
21 | - Support for launching FileZilla and WinSCP session from the tree
22 |
23 |
24 |
25 |
26 | ### :fr: Fonctionnalités de KiTTy Session Manager
27 | - Organiser vos sessions par dossier
28 | - Lancer plusieurs sessions simultanément
29 | - Assigner des raccourcis clavier à vos 10 sessions favorites
30 | - Naviguer dans les dossiers contenant vos sessions depuis la barre des tâches
31 | - Afficher vos sessions dans une liste
32 | - Rendre demi transparente la fenêtre des sessions
33 | - Ne nécessite aucune modification de KiTTy
34 | - Gestion de vos sessions :
35 | * Export des Sessions vers un fichier registre ou un fichier CSV
36 | * Dupliquer et modifier des sessions
37 | * Supprimer des sessions
38 | * Copier et exporter certains paramètres de vos sessions
39 | * Renommer des sessions
40 | - Support de Kageant - agent d'authentification SSH conservant vos clés privées en mémoire vive
41 | - Possibilité de lancer des sessions FileZilla et WinSCP
42 |
43 |
44 |
45 | [Official project website] (https://www.noobunbox.net/projects/kitty-session-manager)
46 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/eventargs/SyncSessionsRequestedEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using uk.org.riseley.puttySessionManager.model;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model.eventargs
23 | {
24 | public class SyncSessionsRequestedEventArgs : EventArgs
25 | {
26 | public SyncSessionsRequestedEventArgs(List sessionActionList
27 | , Session sessionTemplate
28 | , bool ignoreExistingSessions)
29 | {
30 | this.sessionActionList = sessionActionList;
31 | this.ignoreExistingSessions = ignoreExistingSessions;
32 | this.sessionTemplate = sessionTemplate;
33 | }
34 |
35 | private List sessionActionList;
36 | public List SessionActionList
37 | {
38 | get { return sessionActionList; }
39 | }
40 |
41 | private Session sessionTemplate;
42 | public Session SessionTemplate
43 | {
44 | get { return sessionTemplate; }
45 | }
46 |
47 | private bool ignoreExistingSessions;
48 | public bool IgnoreExistingSessions
49 | {
50 | get { return ignoreExistingSessions; }
51 | }
52 |
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/eventargs/SyncSessionsRequestedEventArgs.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using uk.org.riseley.puttySessionManager.model;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model.eventargs
23 | {
24 | public class SyncSessionsRequestedEventArgs : EventArgs
25 | {
26 | public SyncSessionsRequestedEventArgs(List sessionActionList
27 | , Session sessionTemplate
28 | , bool ignoreExistingSessions)
29 | {
30 | this.sessionActionList = sessionActionList;
31 | this.ignoreExistingSessions = ignoreExistingSessions;
32 | this.sessionTemplate = sessionTemplate;
33 | }
34 |
35 | private List sessionActionList;
36 | public List SessionActionList
37 | {
38 | get { return sessionActionList; }
39 | }
40 |
41 | private Session sessionTemplate;
42 | public Session SessionTemplate
43 | {
44 | get { return sessionTemplate; }
45 | }
46 |
47 | private bool ignoreExistingSessions;
48 | public bool IgnoreExistingSessions
49 | {
50 | get { return ignoreExistingSessions; }
51 | }
52 |
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/Installer/getversion.nsi:
--------------------------------------------------------------------------------
1 | /*
2 | * This program is free software; you can redistribute it and/or
3 | * modify it under the terms of the GNU General Public License
4 | * as published by the Free Software Foundation; either version 2
5 | * of the License, or (at your option) any later version.
6 | *
7 | * This program is distributed in the hope that it will be useful,
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 | * GNU General Public License for more details.
11 | *
12 | * You should have received a copy of the GNU General Public License
13 | * along with this program; if not, write to the Free Software
14 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15 | */
16 | OutFile "GetVersion.exe"
17 |
18 | Function .onInit
19 | ## Get EXE from commandline
20 | Call GetParameters
21 | ## Get the filename to version check
22 | Pop $1
23 | ## Get file version
24 | GetDllVersion "$1" $R0 $R1
25 | IntOp $R2 $R0 / 0x00010000
26 | IntOp $R3 $R0 & 0x0000FFFF
27 | IntOp $R4 $R1 / 0x00010000
28 | IntOp $R5 $R1 & 0x0000FFFF
29 | StrCpy $R1 "$R2.$R3.$R4.$R5"
30 |
31 | ## Write it to a !define for use in main script
32 | FileOpen $R0 "$EXEDIR\Version.txt" w
33 | FileWrite $R0 '!define Version "$R1"'
34 | FileClose $R0
35 |
36 | Abort
37 | FunctionEnd
38 |
39 |
40 | ; GetParameters
41 | ; input, none
42 | ; output, top of stack (replaces, with e.g. whatever)
43 | ; modifies no other variables.
44 |
45 | Function GetParameters
46 |
47 | Push $R0
48 | Push $R1
49 | Push $R2
50 | Push $R3
51 |
52 | StrCpy $R2 1
53 | StrLen $R3 $CMDLINE
54 |
55 | ;Check for quote or space
56 | StrCpy $R0 $CMDLINE $R2
57 | StrCmp $R0 '"' 0 +3
58 | StrCpy $R1 '"'
59 | Goto loop
60 | StrCpy $R1 " "
61 |
62 | loop:
63 | IntOp $R2 $R2 + 1
64 | StrCpy $R0 $CMDLINE 1 $R2
65 | StrCmp $R0 $R1 get
66 | StrCmp $R2 $R3 get
67 | Goto loop
68 |
69 | get:
70 | IntOp $R2 $R2 + 1
71 | StrCpy $R0 $CMDLINE 1 $R2
72 | StrCmp $R0 " " get
73 | StrCpy $R0 $CMDLINE "" $R2
74 |
75 | Pop $R3
76 | Pop $R2
77 | Pop $R1
78 | Exch $R0
79 |
80 | FunctionEnd
81 |
82 | Section
83 | SectionEnd
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/CopySessionRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model
23 | {
24 | public class CopySessionRequest
25 | {
26 | public CopySessionRequest()
27 | {
28 | }
29 |
30 | public enum CopySessionOptions
31 | {
32 | COPY_ALL
33 | , COPY_INCLUDE
34 | , COPY_EXCLUDE
35 | };
36 |
37 | private Session sessionTemplate;
38 |
39 | public Session SessionTemplate
40 | {
41 | set { sessionTemplate = value; }
42 | get { return sessionTemplate; }
43 | }
44 |
45 | private List selectedAttributes;
46 |
47 | public List SelectedAttributes
48 | {
49 | set { selectedAttributes = value; }
50 | get { return selectedAttributes; }
51 | }
52 |
53 | private CopySessionOptions copyOptions;
54 |
55 | public CopySessionOptions CopyOptions
56 | {
57 | set { copyOptions = value; }
58 | get { return copyOptions; }
59 | }
60 |
61 | private List targetSessions;
62 |
63 | public List TargetSessions
64 | {
65 | set { targetSessions = value; }
66 | get { return targetSessions; }
67 |
68 | }
69 | }
70 | }
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/CopySessionRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model
23 | {
24 | public class CopySessionRequest
25 | {
26 | public CopySessionRequest()
27 | {
28 | }
29 |
30 | public enum CopySessionOptions
31 | {
32 | COPY_ALL
33 | , COPY_INCLUDE
34 | , COPY_EXCLUDE
35 | };
36 |
37 | private Session sessionTemplate;
38 |
39 | public Session SessionTemplate
40 | {
41 | set { sessionTemplate = value; }
42 | get { return sessionTemplate; }
43 | }
44 |
45 | private List selectedAttributes;
46 |
47 | public List SelectedAttributes
48 | {
49 | set { selectedAttributes = value; }
50 | get { return selectedAttributes; }
51 | }
52 |
53 | private CopySessionOptions copyOptions;
54 |
55 | public CopySessionOptions CopyOptions
56 | {
57 | set { copyOptions = value; }
58 | get { return copyOptions; }
59 | }
60 |
61 | private List targetSessions;
62 |
63 | public List TargetSessions
64 | {
65 | set { targetSessions = value; }
66 | get { return targetSessions; }
67 |
68 | }
69 | }
70 | }
--------------------------------------------------------------------------------
/PuTTYSessionManager/form/ProxyAuthenticationForm.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using System.Net;
26 |
27 | namespace uk.org.riseley.puttySessionManager.form
28 | {
29 | ///
30 | /// Form to collect the proxy username and password
31 | /// for update functionality
32 | ///
33 | public partial class ProxyAuthenticationForm : Form
34 | {
35 | ///
36 | /// Default constructor
37 | ///
38 | public ProxyAuthenticationForm()
39 | {
40 | InitializeComponent();
41 | resetDialogFont();
42 | }
43 |
44 | ///
45 | /// Set the proxy realm to be displayed on the form
46 | ///
47 | ///
48 | public void setRealm(string realm)
49 | {
50 | realmLabel.Text = realm;
51 | }
52 |
53 | ///
54 | /// Get the network credential that has been specified
55 | ///
56 | ///
57 | public NetworkCredential getCredentials()
58 | {
59 | return new NetworkCredential(usernameTextBox.Text, passwordTextBox.Text);
60 | }
61 |
62 | public void resetDialogFont()
63 | {
64 | Font = Properties.Settings.Default.DialogFont;
65 | }
66 | }
67 | }
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/form/ProxyAuthenticationForm.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using System.Net;
26 |
27 | namespace uk.org.riseley.puttySessionManager.form
28 | {
29 | ///
30 | /// Form to collect the proxy username and password
31 | /// for update functionality
32 | ///
33 | public partial class ProxyAuthenticationForm : Form
34 | {
35 | ///
36 | /// Default constructor
37 | ///
38 | public ProxyAuthenticationForm()
39 | {
40 | InitializeComponent();
41 | resetDialogFont();
42 | }
43 |
44 | ///
45 | /// Set the proxy realm to be displayed on the form
46 | ///
47 | ///
48 | public void setRealm(string realm)
49 | {
50 | realmLabel.Text = realm;
51 | }
52 |
53 | ///
54 | /// Get the network credential that has been specified
55 | ///
56 | ///
57 | public NetworkCredential getCredentials()
58 | {
59 | return new NetworkCredential(usernameTextBox.Text, passwordTextBox.Text);
60 | }
61 |
62 | public void resetDialogFont()
63 | {
64 | Font = Properties.Settings.Default.DialogFont;
65 | }
66 | }
67 | }
--------------------------------------------------------------------------------
/PuTTYSessionManager/form/ProgressDialog.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2009 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 |
26 | namespace uk.org.riseley.puttySessionManager.form
27 | {
28 | public partial class ProgressDialog
29 | : Form
30 | {
31 | public ProgressDialog()
32 | {
33 | InitializeComponent();
34 | resetDialogFont();
35 | }
36 |
37 | public void updateProgress ( string message, int progress )
38 | {
39 | if (progress < progressBar.Maximum)
40 | {
41 | okButton.Enabled = false;
42 | }
43 | else
44 | {
45 | okButton.Enabled = true;
46 | }
47 | messageLabel.Text = message;
48 | progressBar.Value = progress;
49 | }
50 |
51 | public void resetDialogFont()
52 | {
53 | Font = Properties.Settings.Default.DialogFont;
54 | }
55 |
56 | public void reset(int maxvalue)
57 | {
58 | progressBar.Maximum = maxvalue;
59 | messageLabel.Text = "Synchronized 0 out of "
60 | + progressBar.Maximum
61 | + "sessions";
62 | okButton.Enabled = false;
63 | progressBar.Value = 0;
64 | }
65 |
66 | private void okButton_Click(object sender, EventArgs e)
67 | {
68 | Hide();
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/form/ProgressDialog.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2009 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 |
26 | namespace uk.org.riseley.puttySessionManager.form
27 | {
28 | public partial class ProgressDialog
29 | : Form
30 | {
31 | public ProgressDialog()
32 | {
33 | InitializeComponent();
34 | resetDialogFont();
35 | }
36 |
37 | public void updateProgress ( string message, int progress )
38 | {
39 | if (progress < progressBar.Maximum)
40 | {
41 | okButton.Enabled = false;
42 | }
43 | else
44 | {
45 | okButton.Enabled = true;
46 | }
47 | messageLabel.Text = message;
48 | progressBar.Value = progress;
49 | }
50 |
51 | public void resetDialogFont()
52 | {
53 | Font = Properties.Settings.Default.DialogFont;
54 | }
55 |
56 | public void reset(int maxvalue)
57 | {
58 | progressBar.Maximum = maxvalue;
59 | messageLabel.Text = "Synchronized 0 out of "
60 | + progressBar.Maximum
61 | + "sessions";
62 | okButton.Enabled = false;
63 | progressBar.Value = 0;
64 | }
65 |
66 | private void okButton_Click(object sender, EventArgs e)
67 | {
68 | Hide();
69 | }
70 | }
71 | }
--------------------------------------------------------------------------------
/PuTTYSessionManager/control/options/TreeOptionsControl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Drawing;
22 | using System.Data;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using uk.org.riseley.puttySessionManager.controller;
26 |
27 | namespace uk.org.riseley.puttySessionManager.control.options
28 | {
29 | public partial class TreeOptionsControl : OptionsControl, ResetableOptionsControl
30 | {
31 | private SessionController sc;
32 |
33 | public TreeOptionsControl()
34 | {
35 | InitializeComponent();
36 |
37 | sc = SessionController.getInstance();
38 |
39 | // Reset all the elements to their saved state
40 | resetState();
41 | }
42 |
43 | public void resetState()
44 | {
45 |
46 | }
47 |
48 | ///
49 | /// Event handler for displayTreeIconsCheckBox Click event
50 | /// Send a refresh request to the tree view when this value is changed
51 | ///
52 | ///
53 | ///
54 | private void displayTreeIconsCheckBox_Click(object sender, EventArgs e)
55 | {
56 | sc.invalidateSessionList(this, false);
57 | }
58 |
59 |
60 | private void chooseFontButton_Click(object sender, EventArgs e)
61 | {
62 | fontDialog.Font = Properties.Settings.Default.TreeFont;
63 | if (fontDialog.ShowDialog() == DialogResult.OK)
64 | {
65 | sampleTreeTextbox.Font = fontDialog.Font;
66 | }
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/control/options/TreeOptionsControl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Drawing;
22 | using System.Data;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using uk.org.riseley.puttySessionManager.controller;
26 |
27 | namespace uk.org.riseley.puttySessionManager.control.options
28 | {
29 | public partial class TreeOptionsControl : OptionsControl, ResetableOptionsControl
30 | {
31 | private SessionController sc;
32 |
33 | public TreeOptionsControl()
34 | {
35 | InitializeComponent();
36 |
37 | sc = SessionController.getInstance();
38 |
39 | // Reset all the elements to their saved state
40 | resetState();
41 | }
42 |
43 | public void resetState()
44 | {
45 |
46 | }
47 |
48 | ///
49 | /// Event handler for displayTreeIconsCheckBox Click event
50 | /// Send a refresh request to the tree view when this value is changed
51 | ///
52 | ///
53 | ///
54 | private void displayTreeIconsCheckBox_Click(object sender, EventArgs e)
55 | {
56 | sc.invalidateSessionList(this, false);
57 | }
58 |
59 |
60 | private void chooseFontButton_Click(object sender, EventArgs e)
61 | {
62 | fontDialog.Font = Properties.Settings.Default.TreeFont;
63 | if (fontDialog.ShowDialog() == DialogResult.OK)
64 | {
65 | sampleTreeTextbox.Font = fontDialog.Font;
66 | }
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/CsvRecord.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using FileHelpers;
22 |
23 | namespace uk.org.riseley.puttySessionManager.model
24 | {
25 | [IgnoreEmptyLines()]
26 | [IgnoreCommentedLines("#", true)]
27 | [DelimitedRecord(",")]
28 | public sealed class CsvRecord
29 | {
30 |
31 | public CsvRecord()
32 | {
33 | }
34 |
35 | public CsvRecord(Session s)
36 | {
37 | SessionName = s.SessionDisplayText;
38 | FolderName = s.FolderName;
39 | Username = s.Username;
40 | Hostname = s.Hostname;
41 | }
42 |
43 | [FieldQuoted('"', QuoteMode.OptionalForRead, MultilineMode.AllowForRead)]
44 | private String mSessionName;
45 |
46 | public String SessionName
47 | {
48 | get { return mSessionName; }
49 | set { mSessionName = value; }
50 | }
51 |
52 |
53 | [FieldQuoted('"', QuoteMode.OptionalForRead, MultilineMode.AllowForRead)]
54 | private String mFolderName;
55 |
56 | public String FolderName
57 | {
58 | get { return mFolderName; }
59 | set { mFolderName = value; }
60 | }
61 |
62 |
63 | [FieldQuoted('"', QuoteMode.OptionalForRead, MultilineMode.AllowForRead)]
64 | private String mUsername;
65 |
66 | public String Username
67 | {
68 | get { return mUsername; }
69 | set { mUsername = value; }
70 | }
71 |
72 |
73 | [FieldQuoted('"', QuoteMode.OptionalForRead, MultilineMode.AllowForRead)]
74 | private String mHostname;
75 |
76 | public String Hostname
77 | {
78 | get { return mHostname; }
79 | set { mHostname = value; }
80 | }
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/CsvRecord.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using FileHelpers;
22 |
23 | namespace uk.org.riseley.puttySessionManager.model
24 | {
25 | [IgnoreEmptyLines()]
26 | [IgnoreCommentedLines("#", true)]
27 | [DelimitedRecord(",")]
28 | public sealed class CsvRecord
29 | {
30 |
31 | public CsvRecord()
32 | {
33 | }
34 |
35 | public CsvRecord(Session s)
36 | {
37 | SessionName = s.SessionDisplayText;
38 | FolderName = s.FolderName;
39 | Username = s.Username;
40 | Hostname = s.Hostname;
41 | }
42 |
43 | [FieldQuoted('"', QuoteMode.OptionalForRead, MultilineMode.AllowForRead)]
44 | private String mSessionName;
45 |
46 | public String SessionName
47 | {
48 | get { return mSessionName; }
49 | set { mSessionName = value; }
50 | }
51 |
52 |
53 | [FieldQuoted('"', QuoteMode.OptionalForRead, MultilineMode.AllowForRead)]
54 | private String mFolderName;
55 |
56 | public String FolderName
57 | {
58 | get { return mFolderName; }
59 | set { mFolderName = value; }
60 | }
61 |
62 |
63 | [FieldQuoted('"', QuoteMode.OptionalForRead, MultilineMode.AllowForRead)]
64 | private String mUsername;
65 |
66 | public String Username
67 | {
68 | get { return mUsername; }
69 | set { mUsername = value; }
70 | }
71 |
72 |
73 | [FieldQuoted('"', QuoteMode.OptionalForRead, MultilineMode.AllowForRead)]
74 | private String mHostname;
75 |
76 | public String Hostname
77 | {
78 | get { return mHostname; }
79 | set { mHostname = value; }
80 | }
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/form/ExportDialog.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using uk.org.riseley.puttySessionManager.model;
26 | using uk.org.riseley.puttySessionManager.model.eventargs;
27 |
28 | namespace uk.org.riseley.puttySessionManager.form
29 | {
30 | ///
31 | /// Dialog box to select the export type
32 | ///
33 | public partial class ExportDialog : Form
34 | {
35 | ///
36 | ///
37 | ///
38 | public ExportDialog()
39 | {
40 | InitializeComponent();
41 | resetDialogFont();
42 | }
43 |
44 | ///
45 | ///
46 | ///
47 | ///
48 | public ExportSessionEventArgs.ExportType getExportType()
49 | {
50 | if (registryRadioButton.Checked)
51 | return ExportSessionEventArgs.ExportType.REG_TYPE;
52 | else if ( csvRadioButton.Checked )
53 | return ExportSessionEventArgs.ExportType.CSV_TYPE;
54 | else if ( clipRadioButton.Checked )
55 | return ExportSessionEventArgs.ExportType.CLIP_TYPE;
56 | else
57 | return ExportSessionEventArgs.ExportType.CSV_TYPE;
58 | }
59 |
60 | ///
61 | ///
62 | ///
63 | ///
64 | ///
65 | private void okButton_Click(object sender, EventArgs e)
66 | {
67 | DialogResult = DialogResult.OK;
68 | Hide();
69 | }
70 |
71 | public void resetDialogFont()
72 | {
73 | Font = Properties.Settings.Default.DialogFont;
74 | }
75 | }
76 | }
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/form/ExportDialog.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Data;
22 | using System.Drawing;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using uk.org.riseley.puttySessionManager.model;
26 | using uk.org.riseley.puttySessionManager.model.eventargs;
27 |
28 | namespace uk.org.riseley.puttySessionManager.form
29 | {
30 | ///
31 | /// Dialog box to select the export type
32 | ///
33 | public partial class ExportDialog : Form
34 | {
35 | ///
36 | ///
37 | ///
38 | public ExportDialog()
39 | {
40 | InitializeComponent();
41 | resetDialogFont();
42 | }
43 |
44 | ///
45 | ///
46 | ///
47 | ///
48 | public ExportSessionEventArgs.ExportType getExportType()
49 | {
50 | if (registryRadioButton.Checked)
51 | return ExportSessionEventArgs.ExportType.REG_TYPE;
52 | else if ( csvRadioButton.Checked )
53 | return ExportSessionEventArgs.ExportType.CSV_TYPE;
54 | else if ( clipRadioButton.Checked )
55 | return ExportSessionEventArgs.ExportType.CLIP_TYPE;
56 | else
57 | return ExportSessionEventArgs.ExportType.CSV_TYPE;
58 | }
59 |
60 | ///
61 | ///
62 | ///
63 | ///
64 | ///
65 | private void okButton_Click(object sender, EventArgs e)
66 | {
67 | DialogResult = DialogResult.OK;
68 | Hide();
69 | }
70 |
71 | public void resetDialogFont()
72 | {
73 | Font = Properties.Settings.Default.DialogFont;
74 | }
75 | }
76 | }
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/NewSessionRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model
23 | {
24 | public class NewSessionRequest
25 | {
26 | public NewSessionRequest(Session sessionTemplate
27 | , string sessionFolder
28 | , string hostname
29 | , string sessionName
30 | , bool copyDefaultUsername
31 | , bool launchSession )
32 | {
33 | this.sessionTemplate = sessionTemplate;
34 | this.copyDefaultUsername = copyDefaultUsername;
35 | this.hostname = hostname;
36 | this.sessionName = sessionName;
37 | this.sessionFolder = sessionFolder;
38 | this.launchSession = launchSession;
39 | }
40 |
41 | private Session sessionTemplate;
42 |
43 | public Session SessionTemplate
44 | {
45 | get { return sessionTemplate; }
46 | }
47 | private bool copyDefaultUsername;
48 |
49 | public bool CopyDefaultUsername
50 | {
51 | get { return copyDefaultUsername; }
52 | }
53 | private string hostname;
54 |
55 | public string Hostname
56 | {
57 | get { return hostname; }
58 | }
59 |
60 | private string sessionName;
61 |
62 | public string SessionName
63 | {
64 | get { return sessionName; }
65 | }
66 |
67 | private string sessionFolder;
68 |
69 | public string SessionFolder
70 | {
71 | get { return sessionFolder; }
72 | }
73 |
74 | private bool launchSession;
75 |
76 | public bool LaunchSession
77 | {
78 | get { return launchSession; }
79 | }
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/NewSessionRequest.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model
23 | {
24 | public class NewSessionRequest
25 | {
26 | public NewSessionRequest(Session sessionTemplate
27 | , string sessionFolder
28 | , string hostname
29 | , string sessionName
30 | , bool copyDefaultUsername
31 | , bool launchSession )
32 | {
33 | this.sessionTemplate = sessionTemplate;
34 | this.copyDefaultUsername = copyDefaultUsername;
35 | this.hostname = hostname;
36 | this.sessionName = sessionName;
37 | this.sessionFolder = sessionFolder;
38 | this.launchSession = launchSession;
39 | }
40 |
41 | private Session sessionTemplate;
42 |
43 | public Session SessionTemplate
44 | {
45 | get { return sessionTemplate; }
46 | }
47 | private bool copyDefaultUsername;
48 |
49 | public bool CopyDefaultUsername
50 | {
51 | get { return copyDefaultUsername; }
52 | }
53 | private string hostname;
54 |
55 | public string Hostname
56 | {
57 | get { return hostname; }
58 | }
59 |
60 | private string sessionName;
61 |
62 | public string SessionName
63 | {
64 | get { return sessionName; }
65 | }
66 |
67 | private string sessionFolder;
68 |
69 | public string SessionFolder
70 | {
71 | get { return sessionFolder; }
72 | }
73 |
74 | private bool launchSession;
75 |
76 | public bool LaunchSession
77 | {
78 | get { return launchSession; }
79 | }
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/form/SessionManagementForm.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.form
19 | {
20 | partial class SessionManagementForm
21 | {
22 | ///
23 | /// Required designer variable.
24 | ///
25 | private System.ComponentModel.IContainer components = null;
26 |
27 | ///
28 | /// Clean up any resources being used.
29 | ///
30 | /// true if managed resources should be disposed; otherwise, false.
31 | protected override void Dispose(bool disposing)
32 | {
33 | if (disposing && (components != null))
34 | {
35 | components.Dispose();
36 | }
37 | base.Dispose(disposing);
38 | }
39 |
40 | #region Windows Form Designer generated code
41 |
42 | ///
43 | /// Required method for Designer support - do not modify
44 | /// the contents of this method with the code editor.
45 | ///
46 | private void InitializeComponent()
47 | {
48 | this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
49 | this.SuspendLayout();
50 | //
51 | // SessionManagementForm
52 | //
53 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
54 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
55 | this.ClientSize = new System.Drawing.Size(545, 419);
56 | this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
57 | this.Name = "SessionManagementForm";
58 | this.Text = "Session Editor";
59 | this.ResumeLayout(false);
60 |
61 | }
62 |
63 | #endregion
64 |
65 | private System.Windows.Forms.SaveFileDialog saveFileDialog1;
66 |
67 |
68 |
69 |
70 | }
71 | }
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/form/SessionManagementForm.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.form
19 | {
20 | partial class SessionManagementForm
21 | {
22 | ///
23 | /// Required designer variable.
24 | ///
25 | private System.ComponentModel.IContainer components = null;
26 |
27 | ///
28 | /// Clean up any resources being used.
29 | ///
30 | /// true if managed resources should be disposed; otherwise, false.
31 | protected override void Dispose(bool disposing)
32 | {
33 | if (disposing && (components != null))
34 | {
35 | components.Dispose();
36 | }
37 | base.Dispose(disposing);
38 | }
39 |
40 | #region Windows Form Designer generated code
41 |
42 | ///
43 | /// Required method for Designer support - do not modify
44 | /// the contents of this method with the code editor.
45 | ///
46 | private void InitializeComponent()
47 | {
48 | this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
49 | this.SuspendLayout();
50 | //
51 | // SessionManagementForm
52 | //
53 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
54 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
55 | this.ClientSize = new System.Drawing.Size(545, 419);
56 | this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
57 | this.Name = "SessionManagementForm";
58 | this.Text = "Session Editor";
59 | this.ResumeLayout(false);
60 |
61 | }
62 |
63 | #endregion
64 |
65 | private System.Windows.Forms.SaveFileDialog saveFileDialog1;
66 |
67 |
68 |
69 |
70 | }
71 | }
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/HotkeyModifier.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model
23 | {
24 | public class HotkeyModifier
25 | {
26 | public HotkeyModifier ( int modifier
27 | , String description
28 | , char[] protectedKeys )
29 | {
30 | this.description = description;
31 | this.modifier = modifier;
32 | ProtectedKeys = protectedKeys;
33 | }
34 |
35 | private String description;
36 |
37 | public String Description
38 | {
39 | get { return description; }
40 | set { description = value; }
41 | }
42 | private int modifier = -1;
43 |
44 | public int Modifier
45 | {
46 | get { return modifier; }
47 | set { modifier = value; }
48 | }
49 |
50 | public override string ToString()
51 | {
52 | return description;
53 | }
54 |
55 | private char[] protectedKeys;
56 |
57 | public char[] ProtectedKeys
58 | {
59 | get { return protectedKeys; }
60 | set
61 | {
62 | protectedKeys = value;
63 | StringBuilder sb = new StringBuilder();
64 | foreach (char c in protectedKeys)
65 | {
66 | sb.Append(c + ",");
67 | }
68 |
69 | // Trim off the trailing comma if it exists
70 | if (sb.Length > 0)
71 | {
72 | sb.Remove(sb.Length-1, 1);
73 | }
74 |
75 | protectedKeysDescription = sb.ToString();
76 | }
77 | }
78 |
79 | private string protectedKeysDescription;
80 |
81 | public string ProtectedKeysDescription
82 | {
83 | get { return protectedKeysDescription; }
84 | }
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/HotkeyModifier.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model
23 | {
24 | public class HotkeyModifier
25 | {
26 | public HotkeyModifier ( int modifier
27 | , String description
28 | , char[] protectedKeys )
29 | {
30 | this.description = description;
31 | this.modifier = modifier;
32 | ProtectedKeys = protectedKeys;
33 | }
34 |
35 | private String description;
36 |
37 | public String Description
38 | {
39 | get { return description; }
40 | set { description = value; }
41 | }
42 | private int modifier = -1;
43 |
44 | public int Modifier
45 | {
46 | get { return modifier; }
47 | set { modifier = value; }
48 | }
49 |
50 | public override string ToString()
51 | {
52 | return description;
53 | }
54 |
55 | private char[] protectedKeys;
56 |
57 | public char[] ProtectedKeys
58 | {
59 | get { return protectedKeys; }
60 | set
61 | {
62 | protectedKeys = value;
63 | StringBuilder sb = new StringBuilder();
64 | foreach (char c in protectedKeys)
65 | {
66 | sb.Append(c + ",");
67 | }
68 |
69 | // Trim off the trailing comma if it exists
70 | if (sb.Length > 0)
71 | {
72 | sb.Remove(sb.Length-1, 1);
73 | }
74 |
75 | protectedKeysDescription = sb.ToString();
76 | }
77 | }
78 |
79 | private string protectedKeysDescription;
80 |
81 | public string ProtectedKeysDescription
82 | {
83 | get { return protectedKeysDescription; }
84 | }
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:2.0.50727.8009
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace uk.org.riseley.puttySessionManager.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("uk.org.riseley.puttySessionManager.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/control/options/OptionsControl.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.control.options
19 | {
20 | partial class OptionsControl
21 | {
22 | ///
23 | /// Required designer variable.
24 | ///
25 | private System.ComponentModel.IContainer components = null;
26 |
27 | ///
28 | /// Clean up any resources being used.
29 | ///
30 | /// true if managed resources should be disposed; otherwise, false.
31 | protected override void Dispose(bool disposing)
32 | {
33 | if (disposing && (components != null))
34 | {
35 | components.Dispose();
36 | }
37 | base.Dispose(disposing);
38 | }
39 |
40 | #region Component Designer generated code
41 |
42 | ///
43 | /// Required method for Designer support - do not modify
44 | /// the contents of this method with the code editor.
45 | ///
46 | private void InitializeComponent()
47 | {
48 | this.components = new System.ComponentModel.Container();
49 | this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
50 | this.optionsToolTip = new System.Windows.Forms.ToolTip(this.components);
51 | this.SuspendLayout();
52 | //
53 | // openFileDialog
54 | //
55 | this.openFileDialog.FileName = "putty.exe";
56 | this.openFileDialog.Filter = "putty.exe|putty.exe|All Files|*.*";
57 | this.openFileDialog.RestoreDirectory = true;
58 | //
59 | // optionsToolTip
60 | //
61 | this.optionsToolTip.IsBalloon = true;
62 | //
63 | // OptionsControl
64 | //
65 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
66 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
67 | this.Name = "OptionsControl";
68 | this.ResumeLayout(false);
69 |
70 | }
71 |
72 | #endregion
73 |
74 | protected System.Windows.Forms.OpenFileDialog openFileDialog;
75 | protected System.Windows.Forms.ToolTip optionsToolTip;
76 |
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/SessionAction.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2009 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model
23 | {
24 | public class SessionAction
25 | {
26 | public enum ACTION { ADD, UPDATE, DELETE, RENAME, NONE };
27 |
28 | public SessionAction(Session existingSession, Session newSession)
29 | {
30 | this.existingSession = existingSession;
31 | this.newSession = newSession;
32 | caculateAction();
33 | }
34 |
35 | private ACTION action;
36 |
37 | private Session existingSession;
38 | private Session newSession;
39 |
40 | public Session ExistingSession
41 | {
42 | get { return existingSession; }
43 | set { existingSession = value; }
44 | }
45 |
46 | public Session NewSession
47 | {
48 | get { return newSession; }
49 | set { newSession = value; }
50 | }
51 |
52 |
53 | public ACTION Action
54 | {
55 | get { return action; }
56 | set { action = value; }
57 | }
58 |
59 | private void caculateAction()
60 | {
61 | if (newSession == null)
62 | this.action = ACTION.DELETE;
63 | else if (existingSession == null)
64 | this.action = ACTION.ADD;
65 | else if ((newSession.Hostname.Equals(existingSession.Hostname)) &&
66 | (newSession.FolderName.Equals(existingSession.FolderName)))
67 | this.action = ACTION.NONE;
68 | else
69 | this.action = ACTION.UPDATE;
70 | }
71 |
72 | ///
73 | ///
74 | ///
75 | ///
76 | ///
77 | public String getActionDescription()
78 | {
79 | switch (action)
80 | {
81 | case ACTION.DELETE: { return "Deleted"; }
82 | case ACTION.ADD: { return "New"; }
83 | case ACTION.UPDATE: { return "Changed"; }
84 | case ACTION.RENAME: { return "Renamed"; }
85 | case ACTION.NONE: { return "Unchanged"; }
86 | default: { return "Unchanged"; }
87 | }
88 | }
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/SessionAction.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2009 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 |
22 | namespace uk.org.riseley.puttySessionManager.model
23 | {
24 | public class SessionAction
25 | {
26 | public enum ACTION { ADD, UPDATE, DELETE, RENAME, NONE };
27 |
28 | public SessionAction(Session existingSession, Session newSession)
29 | {
30 | this.existingSession = existingSession;
31 | this.newSession = newSession;
32 | caculateAction();
33 | }
34 |
35 | private ACTION action;
36 |
37 | private Session existingSession;
38 | private Session newSession;
39 |
40 | public Session ExistingSession
41 | {
42 | get { return existingSession; }
43 | set { existingSession = value; }
44 | }
45 |
46 | public Session NewSession
47 | {
48 | get { return newSession; }
49 | set { newSession = value; }
50 | }
51 |
52 |
53 | public ACTION Action
54 | {
55 | get { return action; }
56 | set { action = value; }
57 | }
58 |
59 | private void caculateAction()
60 | {
61 | if (newSession == null)
62 | this.action = ACTION.DELETE;
63 | else if (existingSession == null)
64 | this.action = ACTION.ADD;
65 | else if ((newSession.Hostname.Equals(existingSession.Hostname)) &&
66 | (newSession.FolderName.Equals(existingSession.FolderName)))
67 | this.action = ACTION.NONE;
68 | else
69 | this.action = ACTION.UPDATE;
70 | }
71 |
72 | ///
73 | ///
74 | ///
75 | ///
76 | ///
77 | public String getActionDescription()
78 | {
79 | switch (action)
80 | {
81 | case ACTION.DELETE: { return "Deleted"; }
82 | case ACTION.ADD: { return "New"; }
83 | case ACTION.UPDATE: { return "Changed"; }
84 | case ACTION.RENAME: { return "Renamed"; }
85 | case ACTION.NONE: { return "Unchanged"; }
86 | default: { return "Unchanged"; }
87 | }
88 | }
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Ce code a été généré par un outil.
4 | // Version du runtime :4.0.30319.34014
5 | //
6 | // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
7 | // le code est régénéré.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace uk.org.riseley.puttySessionManager.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
17 | ///
18 | // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
19 | // à l'aide d'un outil, tel que ResGen ou Visual Studio.
20 | // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
21 | // avec l'option /str ou régénérez votre projet VS.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("uk.org.riseley.puttySessionManager.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Remplace la propriété CurrentUICulture du thread actuel pour toutes
51 | /// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/control/options/OptionsControl.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.control.options
19 | {
20 | partial class OptionsControl
21 | {
22 | ///
23 | /// Required designer variable.
24 | ///
25 | private System.ComponentModel.IContainer components = null;
26 |
27 | ///
28 | /// Clean up any resources being used.
29 | ///
30 | /// true if managed resources should be disposed; otherwise, false.
31 | protected override void Dispose(bool disposing)
32 | {
33 | if (disposing && (components != null))
34 | {
35 | components.Dispose();
36 | }
37 | base.Dispose(disposing);
38 | }
39 |
40 | #region Component Designer generated code
41 |
42 | ///
43 | /// Required method for Designer support - do not modify
44 | /// the contents of this method with the code editor.
45 | ///
46 | private void InitializeComponent()
47 | {
48 | this.components = new System.ComponentModel.Container();
49 | this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
50 | this.optionsToolTip = new System.Windows.Forms.ToolTip(this.components);
51 | this.SuspendLayout();
52 | //
53 | // openFileDialog
54 | //
55 | this.openFileDialog.FileName = "kitty.exe";
56 | this.openFileDialog.Filter = "kitty.exe|kitty.exe|All Files|*.*";
57 | this.openFileDialog.RestoreDirectory = true;
58 | //
59 | // optionsToolTip
60 | //
61 | this.optionsToolTip.IsBalloon = true;
62 | this.optionsToolTip.Popup += new System.Windows.Forms.PopupEventHandler(this.optionsToolTip_Popup);
63 | //
64 | // OptionsControl
65 | //
66 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
67 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
68 | this.Name = "OptionsControl";
69 | this.ResumeLayout(false);
70 |
71 | }
72 |
73 | #endregion
74 |
75 | protected System.Windows.Forms.OpenFileDialog openFileDialog;
76 | protected System.Windows.Forms.ToolTip optionsToolTip;
77 |
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System.Reflection;
19 | using System.Runtime.CompilerServices;
20 | using System.Runtime.InteropServices;
21 |
22 | // General Information about an assembly is controlled through the following
23 | // set of attributes. Change these attribute values to modify the information
24 | // associated with an assembly.
25 | [assembly: AssemblyTitle("KiTTY Session Manager")]
26 | [assembly: AssemblyDescription("Organise your KiTTY ( © 9bis Software ) sessions into folders.\r\n\r\n"
27 | + "All credits to David Riseley. \r\n\r\n"
28 | + "Inspired by QuickPuTTY by Olivier Deckmyn, re-written in C#.\r\n\r\n"
29 | + "Uses the FileHelpers Library ( ©2005-2006 Marcos Meli ) released under the LGPL.\r\n\r\n"
30 | + "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License "
31 | + "as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\n"
32 | + "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of "
33 | + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\n"
34 | + "You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software "
35 | + "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.")]
36 | [assembly: AssemblyConfiguration("")]
37 | [assembly: AssemblyCompany("")]
38 | [assembly: AssemblyProduct("KiTTY Session Manager")]
39 | [assembly: AssemblyCopyright("Copyright © Noobunbox 2014")]
40 | [assembly: AssemblyTrademark("")]
41 | [assembly: AssemblyCulture("")]
42 |
43 | // Setting ComVisible to false makes the types in this assembly not visible
44 | // to COM components. If you need to access a type in this assembly from
45 | // COM, set the ComVisible attribute to true on that type.
46 | [assembly: ComVisible(false)]
47 |
48 | // The following GUID is for the ID of the typelib if this project is exposed to COM
49 | [assembly: Guid("43127c28-7e27-4abf-940c-855f5737f95e")]
50 |
51 | // Version information for an assembly consists of the following four values:
52 | //
53 | // Major Version
54 | // Minor Version
55 | // Build Number
56 | // Revision
57 | //
58 | [assembly: AssemblyVersion("1.0.0.0")]
59 | [assembly: AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System.Reflection;
19 | using System.Runtime.CompilerServices;
20 | using System.Runtime.InteropServices;
21 |
22 | // General Information about an assembly is controlled through the following
23 | // set of attributes. Change these attribute values to modify the information
24 | // associated with an assembly.
25 | [assembly: AssemblyTitle("KiTTY Session Manager")]
26 | [assembly: AssemblyDescription("Organise your KiTTY ( © 9bis Software ) sessions into folders.r\n\r\n"
27 | + "All credits to David Riseley. \r\n\r\n"
28 | + "Inspired by QuickPuTTY by Olivier Deckmyn, re-written in C#.\r\n\r\n"
29 | + "Uses the FileHelpers Library ( ©2005-2006 Marcos Meli ) released under the LGPL.\r\n\r\n"
30 | + "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License "
31 | + "as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\n"
32 | + "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of "
33 | + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\n"
34 | + "You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software "
35 | + "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.")]
36 | [assembly: AssemblyConfiguration("")]
37 | [assembly: AssemblyCompany("")]
38 | [assembly: AssemblyProduct("KiTTY Session Manager")]
39 | [assembly: AssemblyCopyright("Copyright © Noobunbox 2014")]
40 | [assembly: AssemblyTrademark("")]
41 | [assembly: AssemblyCulture("")]
42 |
43 | // Setting ComVisible to false makes the types in this assembly not visible
44 | // to COM components. If you need to access a type in this assembly from
45 | // COM, set the ComVisible attribute to true on that type.
46 | [assembly: ComVisible(false)]
47 |
48 | // The following GUID is for the ID of the typelib if this project is exposed to COM
49 | [assembly: Guid("43127c28-7e27-4abf-940c-855f5737f95e")]
50 |
51 | // Version information for an assembly consists of the following four values:
52 | //
53 | // Major Version
54 | // Minor Version
55 | // Build Number
56 | // Revision
57 | //
58 | [assembly: AssemblyVersion("1.0.0.0")]
59 | [assembly: AssemblyFileVersion("1.0.0.0")]
--------------------------------------------------------------------------------
/PuTTYSessionManager/controller/CsvSessionExportImpl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using uk.org.riseley.puttySessionManager.model;
22 | using System.IO;
23 | using FileHelpers;
24 |
25 | namespace uk.org.riseley.puttySessionManager.controller
26 | {
27 | class CsvSessionExportImpl : ISessionExport
28 | {
29 | ///
30 | /// The file type for this provider
31 | ///
32 | private const string EXPORT_FILE_TYPE = "csv";
33 |
34 | ///
35 | /// The file description for this provider
36 | ///
37 | private const string EXPORT_FILE_DESCRIPTION = "CSV File";
38 |
39 | #region SessionExportInterface Members
40 |
41 | ///
42 | /// Get a description for the file type
43 | ///
44 | ///
45 | public string getFileTypeDescription()
46 | {
47 | return EXPORT_FILE_DESCRIPTION;
48 | }
49 |
50 | ///
51 | /// Get the file extension
52 | ///
53 | ///
54 | public string getFileTypeExtension()
55 | {
56 | return EXPORT_FILE_TYPE;
57 | }
58 |
59 | ///
60 | /// Create an export of the sessions in this providers type
61 | /// This may throw an exception if there are File I/O issues
62 | ///
63 | /// The list of sessions to store
64 | /// The file name to store the backup in
65 | /// Count of exported sessions
66 | public int saveSessionsToFile(List sessionList, string fileName)
67 | {
68 | FileHelperEngine engine = new FileHelperEngine();
69 | engine.WriteFile(fileName, createCsvRecords(sessionList));
70 | return engine.TotalRecords;
71 | }
72 |
73 | #endregion
74 |
75 | ///
76 | /// Create a list of CsvRecords from a list of Sessions
77 | ///
78 | ///
79 | ///
80 | private List createCsvRecords(List list)
81 | {
82 | List csvList = new List();
83 | foreach ( Session s in list )
84 | {
85 | csvList.Add(new CsvRecord(s));
86 | }
87 | return csvList;
88 | }
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/controller/CsvSessionExportImpl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using uk.org.riseley.puttySessionManager.model;
22 | using System.IO;
23 | using FileHelpers;
24 |
25 | namespace uk.org.riseley.puttySessionManager.controller
26 | {
27 | class CsvSessionExportImpl : ISessionExport
28 | {
29 | ///
30 | /// The file type for this provider
31 | ///
32 | private const string EXPORT_FILE_TYPE = "csv";
33 |
34 | ///
35 | /// The file description for this provider
36 | ///
37 | private const string EXPORT_FILE_DESCRIPTION = "CSV File";
38 |
39 | #region SessionExportInterface Members
40 |
41 | ///
42 | /// Get a description for the file type
43 | ///
44 | ///
45 | public string getFileTypeDescription()
46 | {
47 | return EXPORT_FILE_DESCRIPTION;
48 | }
49 |
50 | ///
51 | /// Get the file extension
52 | ///
53 | ///
54 | public string getFileTypeExtension()
55 | {
56 | return EXPORT_FILE_TYPE;
57 | }
58 |
59 | ///
60 | /// Create an export of the sessions in this providers type
61 | /// This may throw an exception if there are File I/O issues
62 | ///
63 | /// The list of sessions to store
64 | /// The file name to store the backup in
65 | /// Count of exported sessions
66 | public int saveSessionsToFile(List sessionList, string fileName)
67 | {
68 | FileHelperEngine engine = new FileHelperEngine();
69 | engine.WriteFile(fileName, createCsvRecords(sessionList));
70 | return engine.TotalRecords;
71 | }
72 |
73 | #endregion
74 |
75 | ///
76 | /// Create a list of CsvRecords from a list of Sessions
77 | ///
78 | ///
79 | ///
80 | private List createCsvRecords(List list)
81 | {
82 | List csvList = new List();
83 | foreach ( Session s in list )
84 | {
85 | csvList.Add(new CsvRecord(s));
86 | }
87 | return csvList;
88 | }
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/Settings.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.Properties
19 | {
20 | // This class allows you to handle specific events on the settings class:
21 | // The SettingChanging event is raised before a setting's value is changed.
22 | // The PropertyChanged event is raised after a setting's value is changed.
23 | // The SettingsLoaded event is raised after the setting values are loaded.
24 | // The SettingsSaving event is raised before the setting values are saved.
25 | internal sealed partial class Settings
26 | {
27 | private bool settingsChanged = false;
28 |
29 | public Settings()
30 | {
31 | // To add event handlers for saving and changing settings, uncomment the lines below:
32 | this.SettingChanging += this.SettingChangingEventHandler;
33 |
34 | this.PropertyChanged += this.PropertyChangedEventHandler;
35 |
36 | this.SettingsSaving += this.SettingsSavingEventHandler;
37 | }
38 |
39 | private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e)
40 | {
41 | if (e.SettingName.Equals("TransparencyValueInt"))
42 | {
43 | TransparencyValueDouble = this.TransparencyValueInt / 100.0;
44 | }
45 | else if (e.SettingName.Equals("TransparencyEnabled"))
46 | {
47 | if ((bool)e.NewValue == false )
48 | {
49 | TransparencyValueDouble = 1.00;
50 | }
51 | else
52 | {
53 | TransparencyValueDouble = this.TransparencyValueInt / 100.0;
54 | }
55 | }
56 | else if (e.SettingName.Equals("WindowSize"))
57 | {
58 | System.Drawing.Size sz = (System.Drawing.Size)e.NewValue;
59 | if (sz.Height == 0 && sz.Width == 0)
60 | e.Cancel = true;
61 | }
62 | }
63 |
64 | private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e)
65 | {
66 | // Cancel the save request if nothing has changed
67 | if (settingsChanged == false)
68 | e.Cancel = true;
69 | else
70 | settingsChanged = false;
71 | }
72 |
73 | private void PropertyChangedEventHandler(object sender, System.ComponentModel.PropertyChangedEventArgs e)
74 | {
75 | // Record the fact that the settings have changed
76 | settingsChanged = true;
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/Settings.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.Properties
19 | {
20 | // This class allows you to handle specific events on the settings class:
21 | // The SettingChanging event is raised before a setting's value is changed.
22 | // The PropertyChanged event is raised after a setting's value is changed.
23 | // The SettingsLoaded event is raised after the setting values are loaded.
24 | // The SettingsSaving event is raised before the setting values are saved.
25 | internal sealed partial class Settings
26 | {
27 | private bool settingsChanged = false;
28 |
29 | public Settings()
30 | {
31 | // To add event handlers for saving and changing settings, uncomment the lines below:
32 | this.SettingChanging += this.SettingChangingEventHandler;
33 |
34 | this.PropertyChanged += this.PropertyChangedEventHandler;
35 |
36 | this.SettingsSaving += this.SettingsSavingEventHandler;
37 | }
38 |
39 | private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e)
40 | {
41 | if (e.SettingName.Equals("TransparencyValueInt"))
42 | {
43 | TransparencyValueDouble = this.TransparencyValueInt / 100.0;
44 | }
45 | else if (e.SettingName.Equals("TransparencyEnabled"))
46 | {
47 | if ((bool)e.NewValue == false )
48 | {
49 | TransparencyValueDouble = 1.00;
50 | }
51 | else
52 | {
53 | TransparencyValueDouble = this.TransparencyValueInt / 100.0;
54 | }
55 | }
56 | else if (e.SettingName.Equals("WindowSize"))
57 | {
58 | System.Drawing.Size sz = (System.Drawing.Size)e.NewValue;
59 | if (sz.Height == 0 && sz.Width == 0)
60 | e.Cancel = true;
61 | }
62 | }
63 |
64 | private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e)
65 | {
66 | // Cancel the save request if nothing has changed
67 | if (settingsChanged == false)
68 | e.Cancel = true;
69 | else
70 | settingsChanged = false;
71 | }
72 |
73 | private void PropertyChangedEventHandler(object sender, System.ComponentModel.PropertyChangedEventArgs e)
74 | {
75 | // Record the fact that the settings have changed
76 | settingsChanged = true;
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/model/SessionSorter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using System.Collections;
22 | using System.Windows.Forms;
23 |
24 | namespace uk.org.riseley.puttySessionManager.model
25 | {
26 | ///
27 | /// A class that allows tree nodes to be sorted by folder and name
28 | ///
29 | public class SessionSorter : IComparer
30 | {
31 | ///
32 | /// Enumeration of different possible sort orders
33 | ///
34 | public enum SortOrder
35 | {
36 | FOLDER_FIRST = 1,
37 | FOLDER_IGNORE = 0,
38 | FOLDER_LAST = -1
39 | }
40 |
41 | ///
42 | /// The current sort order
43 | ///
44 | private int sortOrder;
45 |
46 | ///
47 | /// Constructor
48 | ///
49 | /// The sort order for this instance
50 | public SessionSorter(SortOrder order)
51 | {
52 | sortOrder = (int)order;
53 | }
54 |
55 | #region IComparer Members
56 |
57 | ///
58 | /// Method to compare the values of two tree
59 | /// nodes
60 | ///
61 | ///
62 | ///
63 | /// x less than y = less than 0
64 | /// x equal to y = 0
65 | /// x greater than y = greater than 0
66 | int IComparer.Compare(object x, object y)
67 | {
68 | TreeNode tx = x as TreeNode;
69 | TreeNode ty = y as TreeNode;
70 |
71 | if ( tx == null || ty == null )
72 | throw new ArgumentException();
73 |
74 | Session sx = tx.Tag as Session;
75 | Session sy = ty.Tag as Session;
76 |
77 | if (sx == null && sy == null)
78 | return 0;
79 | else if (sx == null && sy != null)
80 | return -1 * sortOrder;
81 | else if (sx != null && sy == null)
82 | return 1 * sortOrder;
83 | else if (sortOrder == 0)
84 | return string.Compare(sx.SessionDisplayText, sy.SessionDisplayText);
85 | else if (sx.IsFolder && !(sy.IsFolder))
86 | return -1 * sortOrder;
87 | else if (!(sx.IsFolder) && (sy.IsFolder))
88 | return 1 * sortOrder;
89 | // sx.IsFolder == sy.IsFolder
90 | else
91 | return string.Compare(sx.SessionDisplayText, sy.SessionDisplayText);
92 | }
93 |
94 | #endregion
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/model/SessionSorter.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using System.Collections;
22 | using System.Windows.Forms;
23 |
24 | namespace uk.org.riseley.puttySessionManager.model
25 | {
26 | ///
27 | /// A class that allows tree nodes to be sorted by folder and name
28 | ///
29 | public class SessionSorter : IComparer
30 | {
31 | ///
32 | /// Enumeration of different possible sort orders
33 | ///
34 | public enum SortOrder
35 | {
36 | FOLDER_FIRST = 1,
37 | FOLDER_IGNORE = 0,
38 | FOLDER_LAST = -1
39 | }
40 |
41 | ///
42 | /// The current sort order
43 | ///
44 | private int sortOrder;
45 |
46 | ///
47 | /// Constructor
48 | ///
49 | /// The sort order for this instance
50 | public SessionSorter(SortOrder order)
51 | {
52 | sortOrder = (int)order;
53 | }
54 |
55 | #region IComparer Members
56 |
57 | ///
58 | /// Method to compare the values of two tree
59 | /// nodes
60 | ///
61 | ///
62 | ///
63 | /// x less than y = less than 0
64 | /// x equal to y = 0
65 | /// x greater than y = greater than 0
66 | int IComparer.Compare(object x, object y)
67 | {
68 | TreeNode tx = x as TreeNode;
69 | TreeNode ty = y as TreeNode;
70 |
71 | if ( tx == null || ty == null )
72 | throw new ArgumentException();
73 |
74 | Session sx = tx.Tag as Session;
75 | Session sy = ty.Tag as Session;
76 |
77 | if (sx == null && sy == null)
78 | return 0;
79 | else if (sx == null && sy != null)
80 | return -1 * sortOrder;
81 | else if (sx != null && sy == null)
82 | return 1 * sortOrder;
83 | else if (sortOrder == 0)
84 | return string.Compare(sx.SessionDisplayText, sy.SessionDisplayText);
85 | else if (sx.IsFolder && !(sy.IsFolder))
86 | return -1 * sortOrder;
87 | else if (!(sx.IsFolder) && (sy.IsFolder))
88 | return 1 * sortOrder;
89 | // sx.IsFolder == sy.IsFolder
90 | else
91 | return string.Compare(sx.SessionDisplayText, sy.SessionDisplayText);
92 | }
93 |
94 | #endregion
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/control/options/PageantOptionsControl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Drawing;
22 | using System.Data;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using uk.org.riseley.puttySessionManager.controller;
26 | using System.IO;
27 |
28 | namespace uk.org.riseley.puttySessionManager.control.options
29 | {
30 | public partial class KageantOptionsControl : OptionsControl, ResetableOptionsControl
31 | {
32 | private SessionController sc;
33 |
34 | public KageantOptionsControl()
35 | {
36 | InitializeComponent();
37 |
38 | sc = SessionController.getInstance();
39 |
40 | // Reset all the elements to their saved state
41 | resetState();
42 | }
43 |
44 | public void resetState()
45 | {
46 | // Clear the keys list box
47 | keysListBox.Items.Clear();
48 |
49 | // Initialise the key list from the properties
50 | foreach (String key in Properties.Settings.Default.KageantKeyList)
51 | {
52 | keysListBox.Items.Add(key);
53 | }
54 | }
55 |
56 | private void locatePagentButton_Click(object sender, EventArgs e)
57 | {
58 | setupOpenFileDialogue(FileDialogType.Kageant);
59 | if (openFileDialog.ShowDialog() == DialogResult.OK)
60 | {
61 | KageantTextBox.Text = openFileDialog.FileName;
62 | }
63 | }
64 |
65 | private void addKeyButton_Click(object sender, EventArgs e)
66 | {
67 | setupOpenFileDialogue(FileDialogType.Kageant_KEYS);
68 | if (openFileDialog.ShowDialog() == DialogResult.OK)
69 | {
70 | Properties.Settings.Default.KageantKeyList.Add(openFileDialog.FileName);
71 | keysListBox.Items.Add(openFileDialog.FileName);
72 | }
73 | }
74 |
75 | private void removeKeyButton_Click(object sender, EventArgs e)
76 | {
77 | if (keysListBox.SelectedItem != null)
78 | {
79 | Properties.Settings.Default.KageantKeyList.Remove(keysListBox.SelectedItem.ToString());
80 | keysListBox.Items.Remove(keysListBox.SelectedItem);
81 | }
82 | }
83 |
84 | private void launchKageantButton_Click(object sender, EventArgs e)
85 | {
86 | String errMsg = sc.launchKageant();
87 | if (errMsg.Equals("") == false)
88 | {
89 | MessageBox.Show("Kageant Failed to start. Check the Kageant location.\n" +
90 | errMsg
91 | , "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error);
92 | }
93 | }
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/control/options/PageantOptionsControl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Drawing;
22 | using System.Data;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using uk.org.riseley.puttySessionManager.controller;
26 | using System.IO;
27 |
28 | namespace uk.org.riseley.puttySessionManager.control.options
29 | {
30 | public partial class PageantOptionsControl : OptionsControl, ResetableOptionsControl
31 | {
32 | private SessionController sc;
33 |
34 | public PageantOptionsControl()
35 | {
36 | InitializeComponent();
37 |
38 | sc = SessionController.getInstance();
39 |
40 | // Reset all the elements to their saved state
41 | resetState();
42 | }
43 |
44 | public void resetState()
45 | {
46 | // Clear the keys list box
47 | keysListBox.Items.Clear();
48 |
49 | // Initialise the key list from the properties
50 | foreach (String key in Properties.Settings.Default.PageantKeyList)
51 | {
52 | keysListBox.Items.Add(key);
53 | }
54 | }
55 |
56 | private void locatePagentButton_Click(object sender, EventArgs e)
57 | {
58 | setupOpenFileDialogue(FileDialogType.PAGEANT);
59 | if (openFileDialog.ShowDialog() == DialogResult.OK)
60 | {
61 | pageantTextBox.Text = openFileDialog.FileName;
62 | }
63 | }
64 |
65 | private void addKeyButton_Click(object sender, EventArgs e)
66 | {
67 | setupOpenFileDialogue(FileDialogType.PAGEANT_KEYS);
68 | if (openFileDialog.ShowDialog() == DialogResult.OK)
69 | {
70 | Properties.Settings.Default.PageantKeyList.Add(openFileDialog.FileName);
71 | keysListBox.Items.Add(openFileDialog.FileName);
72 | }
73 | }
74 |
75 | private void removeKeyButton_Click(object sender, EventArgs e)
76 | {
77 | if (keysListBox.SelectedItem != null)
78 | {
79 | Properties.Settings.Default.PageantKeyList.Remove(keysListBox.SelectedItem.ToString());
80 | keysListBox.Items.Remove(keysListBox.SelectedItem);
81 | }
82 | }
83 |
84 | private void launchPageantButton_Click(object sender, EventArgs e)
85 | {
86 | String errMsg = sc.launchPageant();
87 | if (errMsg.Equals("") == false)
88 | {
89 | MessageBox.Show("Pageant Failed to start. Check the Pageant location.\n" +
90 | errMsg
91 | , "Alert", MessageBoxButtons.OK, MessageBoxIcon.Error);
92 | }
93 | }
94 | }
95 | }
96 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/control/SessionListControl.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.control
19 | {
20 | partial class SessionListControl
21 | {
22 | ///
23 | /// Required designer variable.
24 | ///
25 | private System.ComponentModel.IContainer components = null;
26 |
27 | ///
28 | /// Clean up any resources being used.
29 | ///
30 | /// true if managed resources should be disposed; otherwise, false.
31 | protected override void Dispose(bool disposing)
32 | {
33 | if (disposing && (components != null))
34 | {
35 | components.Dispose();
36 | }
37 | base.Dispose(disposing);
38 | }
39 |
40 | #region Component Designer generated code
41 |
42 | ///
43 | /// Required method for Designer support - do not modify
44 | /// the contents of this method with the code editor.
45 | ///
46 | private void InitializeComponent()
47 | {
48 | this.sessionNameHeader = new System.Windows.Forms.ColumnHeader();
49 | this.listBox1 = new System.Windows.Forms.ListBox();
50 | this.SuspendLayout();
51 | //
52 | // listBox1
53 | //
54 | this.listBox1.DataBindings.Add(new System.Windows.Forms.Binding("Font", global::uk.org.riseley.puttySessionManager.Properties.Settings.Default, "TreeFont", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
55 | this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
56 | this.listBox1.Font = global::uk.org.riseley.puttySessionManager.Properties.Settings.Default.TreeFont;
57 | this.listBox1.HorizontalScrollbar = true;
58 | this.listBox1.Location = new System.Drawing.Point(0, 0);
59 | this.listBox1.Name = "listBox1";
60 | this.listBox1.Size = new System.Drawing.Size(150, 147);
61 | this.listBox1.Sorted = true;
62 | this.listBox1.TabIndex = 0;
63 | this.listBox1.DoubleClick += new System.EventHandler(this.listBox1_DoubleClick);
64 | this.listBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.listBox1_KeyUp);
65 | this.listBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.listBox1_KeyDown);
66 | //
67 | // SessionListControl
68 | //
69 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
70 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
71 | this.Controls.Add(this.listBox1);
72 | this.Name = "SessionListControl";
73 | this.ResumeLayout(false);
74 |
75 | }
76 |
77 | #endregion
78 |
79 | private System.Windows.Forms.ColumnHeader sessionNameHeader;
80 | private System.Windows.Forms.ListBox listBox1;
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/control/SessionListControl.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.control
19 | {
20 | partial class SessionListControl
21 | {
22 | ///
23 | /// Required designer variable.
24 | ///
25 | private System.ComponentModel.IContainer components = null;
26 |
27 | ///
28 | /// Clean up any resources being used.
29 | ///
30 | /// true if managed resources should be disposed; otherwise, false.
31 | protected override void Dispose(bool disposing)
32 | {
33 | if (disposing && (components != null))
34 | {
35 | components.Dispose();
36 | }
37 | base.Dispose(disposing);
38 | }
39 |
40 | #region Component Designer generated code
41 |
42 | ///
43 | /// Required method for Designer support - do not modify
44 | /// the contents of this method with the code editor.
45 | ///
46 | private void InitializeComponent()
47 | {
48 | this.sessionNameHeader = new System.Windows.Forms.ColumnHeader();
49 | this.listBox1 = new System.Windows.Forms.ListBox();
50 | this.SuspendLayout();
51 | //
52 | // listBox1
53 | //
54 | this.listBox1.DataBindings.Add(new System.Windows.Forms.Binding("Font", global::uk.org.riseley.puttySessionManager.Properties.Settings.Default, "TreeFont", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
55 | this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
56 | this.listBox1.Font = global::uk.org.riseley.puttySessionManager.Properties.Settings.Default.TreeFont;
57 | this.listBox1.HorizontalScrollbar = true;
58 | this.listBox1.Location = new System.Drawing.Point(0, 0);
59 | this.listBox1.Name = "listBox1";
60 | this.listBox1.Size = new System.Drawing.Size(150, 147);
61 | this.listBox1.Sorted = true;
62 | this.listBox1.TabIndex = 0;
63 | this.listBox1.DoubleClick += new System.EventHandler(this.listBox1_DoubleClick);
64 | this.listBox1.KeyUp += new System.Windows.Forms.KeyEventHandler(this.listBox1_KeyUp);
65 | this.listBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.listBox1_KeyDown);
66 | //
67 | // SessionListControl
68 | //
69 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
70 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
71 | this.Controls.Add(this.listBox1);
72 | this.Name = "SessionListControl";
73 | this.ResumeLayout(false);
74 |
75 | }
76 |
77 | #endregion
78 |
79 | private System.Windows.Forms.ColumnHeader sessionNameHeader;
80 | private System.Windows.Forms.ListBox listBox1;
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/control/SessionControl.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.control
19 | {
20 | partial class SessionControl
21 | {
22 | ///
23 | /// Required designer variable.
24 | ///
25 | private System.ComponentModel.IContainer components = null;
26 |
27 | ///
28 | /// Clean up any resources being used.
29 | ///
30 | /// true if managed resources should be disposed; otherwise, false.
31 | protected override void Dispose(bool disposing)
32 | {
33 | if (disposing && (components != null))
34 | {
35 | components.Dispose();
36 | }
37 | base.Dispose(disposing);
38 | }
39 |
40 | #region Component Designer generated code
41 |
42 | ///
43 | /// Required method for Designer support - do not modify
44 | /// the contents of this method with the code editor.
45 | ///
46 | private void InitializeComponent()
47 | {
48 | this.components = new System.ComponentModel.Container();
49 | this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
50 | this.refreshSessionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
51 | this.contextMenuStrip.SuspendLayout();
52 | this.SuspendLayout();
53 | //
54 | // contextMenuStrip
55 | //
56 | this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
57 | this.refreshSessionsToolStripMenuItem});
58 | this.contextMenuStrip.Name = "contextMenuStrip";
59 | this.contextMenuStrip.Size = new System.Drawing.Size(187, 48);
60 | //
61 | // refreshSessionsToolStripMenuItem
62 | //
63 | this.refreshSessionsToolStripMenuItem.Name = "refreshSessionsToolStripMenuItem";
64 | this.refreshSessionsToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F5;
65 | this.refreshSessionsToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
66 | this.refreshSessionsToolStripMenuItem.Text = "Refresh Sessions";
67 | this.refreshSessionsToolStripMenuItem.Click += new System.EventHandler(this.refreshSessionsToolStripMenuItem_Click);
68 | //
69 | // SessionControl
70 | //
71 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
72 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
73 | this.ContextMenuStrip = this.contextMenuStrip;
74 | this.Name = "SessionControl";
75 | this.contextMenuStrip.ResumeLayout(false);
76 | this.ResumeLayout(false);
77 |
78 | }
79 |
80 | #endregion
81 |
82 | private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
83 | private System.Windows.Forms.ToolStripMenuItem refreshSessionsToolStripMenuItem;
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/control/SessionControl.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | namespace uk.org.riseley.puttySessionManager.control
19 | {
20 | partial class SessionControl
21 | {
22 | ///
23 | /// Required designer variable.
24 | ///
25 | private System.ComponentModel.IContainer components = null;
26 |
27 | ///
28 | /// Clean up any resources being used.
29 | ///
30 | /// true if managed resources should be disposed; otherwise, false.
31 | protected override void Dispose(bool disposing)
32 | {
33 | if (disposing && (components != null))
34 | {
35 | components.Dispose();
36 | }
37 | base.Dispose(disposing);
38 | }
39 |
40 | #region Component Designer generated code
41 |
42 | ///
43 | /// Required method for Designer support - do not modify
44 | /// the contents of this method with the code editor.
45 | ///
46 | private void InitializeComponent()
47 | {
48 | this.components = new System.ComponentModel.Container();
49 | this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
50 | this.refreshSessionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
51 | this.contextMenuStrip.SuspendLayout();
52 | this.SuspendLayout();
53 | //
54 | // contextMenuStrip
55 | //
56 | this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
57 | this.refreshSessionsToolStripMenuItem});
58 | this.contextMenuStrip.Name = "contextMenuStrip";
59 | this.contextMenuStrip.Size = new System.Drawing.Size(187, 48);
60 | //
61 | // refreshSessionsToolStripMenuItem
62 | //
63 | this.refreshSessionsToolStripMenuItem.Name = "refreshSessionsToolStripMenuItem";
64 | this.refreshSessionsToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F5;
65 | this.refreshSessionsToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
66 | this.refreshSessionsToolStripMenuItem.Text = "Refresh Sessions";
67 | this.refreshSessionsToolStripMenuItem.Click += new System.EventHandler(this.refreshSessionsToolStripMenuItem_Click);
68 | //
69 | // SessionControl
70 | //
71 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
72 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
73 | this.ContextMenuStrip = this.contextMenuStrip;
74 | this.Name = "SessionControl";
75 | this.contextMenuStrip.ResumeLayout(false);
76 | this.ResumeLayout(false);
77 |
78 | }
79 |
80 | #endregion
81 |
82 | private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
83 | private System.Windows.Forms.ToolStripMenuItem refreshSessionsToolStripMenuItem;
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/controller/ISessionStorage.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using uk.org.riseley.puttySessionManager.model;
22 |
23 | namespace uk.org.riseley.puttySessionManager.controller
24 | {
25 | ///
26 | /// The contract for a session storage provider
27 | ///
28 | interface ISessionStorage
29 | {
30 | ///
31 | /// Gets the list of available sessions
32 | ///
33 | ///
34 | List getSessionList();
35 |
36 | ///
37 | /// Gets the attributes for the available session
38 | ///
39 | ///
40 | ///
41 | List getSessionAttributes(Session s);
42 |
43 | ///
44 | /// Create a new session given the information
45 | /// supplied in the NewSessionRequest
46 | ///
47 | ///
48 | ///
49 | bool createNewSession(NewSessionRequest nsr);
50 |
51 | ///
52 | /// Deletes the list of sessions
53 | ///
54 | ///
55 | ///
56 | bool deleteSessions(List sl);
57 |
58 | ///
59 | /// Renames the session
60 | ///
61 | ///
62 | ///
63 | ///
64 | bool renameSession(Session s, string newSessionName);
65 |
66 | ///
67 | /// Updates the folder for a given session
68 | ///
69 | ///
70 | bool updateFolder(Session s);
71 |
72 | ///
73 | /// Updates the sessions hostname
74 | ///
75 | ///
76 | ///
77 | bool updateHostname(Session s);
78 |
79 | ///
80 | ///
81 | ///
82 | ///
83 | ///
84 | bool copySessionAttributes(CopySessionRequest csr);
85 |
86 | ///
87 | ///
88 | ///
89 | ///
90 | ///
91 | ///
92 | int backupSessionsToFile(List sessionList, String fileName);
93 |
94 | ///
95 | ///
96 | ///
97 | ///
98 | ///
99 | List getAttributeGroup(SessionAttributes.AttribGroups group);
100 |
101 | ///
102 | ///
103 | ///
104 | ///
105 | ///
106 | string getSpecialAttribute(SessionAttributes.SpecialAttributes attrib);
107 | }
108 | }
109 |
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/controller/ISessionStorage.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.Text;
21 | using uk.org.riseley.puttySessionManager.model;
22 |
23 | namespace uk.org.riseley.puttySessionManager.controller
24 | {
25 | ///
26 | /// The contract for a session storage provider
27 | ///
28 | interface ISessionStorage
29 | {
30 | ///
31 | /// Gets the list of available sessions
32 | ///
33 | ///
34 | List getSessionList();
35 |
36 | ///
37 | /// Gets the attributes for the available session
38 | ///
39 | ///
40 | ///
41 | List getSessionAttributes(Session s);
42 |
43 | ///
44 | /// Create a new session given the information
45 | /// supplied in the NewSessionRequest
46 | ///
47 | ///
48 | ///
49 | bool createNewSession(NewSessionRequest nsr);
50 |
51 | ///
52 | /// Deletes the list of sessions
53 | ///
54 | ///
55 | ///
56 | bool deleteSessions(List sl);
57 |
58 | ///
59 | /// Renames the session
60 | ///
61 | ///
62 | ///
63 | ///
64 | bool renameSession(Session s, string newSessionName);
65 |
66 | ///
67 | /// Updates the folder for a given session
68 | ///
69 | ///
70 | bool updateFolder(Session s);
71 |
72 | ///
73 | /// Updates the sessions hostname
74 | ///
75 | ///
76 | ///
77 | bool updateHostname(Session s);
78 |
79 | ///
80 | ///
81 | ///
82 | ///
83 | ///
84 | bool copySessionAttributes(CopySessionRequest csr);
85 |
86 | ///
87 | ///
88 | ///
89 | ///
90 | ///
91 | ///
92 | int backupSessionsToFile(List sessionList, String fileName);
93 |
94 | ///
95 | ///
96 | ///
97 | ///
98 | ///
99 | List getAttributeGroup(SessionAttributes.AttribGroups group);
100 |
101 | ///
102 | ///
103 | ///
104 | ///
105 | ///
106 | string getSpecialAttribute(SessionAttributes.SpecialAttributes attrib);
107 | }
108 | }
109 |
--------------------------------------------------------------------------------
/PuTTYSessionManager/form/SessionEditorForm.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using uk.org.riseley.puttySessionManager.control;
19 | namespace uk.org.riseley.puttySessionManager.form
20 | {
21 | partial class SessionEditorForm
22 | {
23 | ///
24 | /// Required designer variable.
25 | ///
26 | private System.ComponentModel.IContainer components = null;
27 |
28 | ///
29 | /// Clean up any resources being used.
30 | ///
31 | /// true if managed resources should be disposed; otherwise, false.
32 | protected override void Dispose(bool disposing)
33 | {
34 | if (disposing && (components != null))
35 | {
36 | components.Dispose();
37 | }
38 | base.Dispose(disposing);
39 | }
40 |
41 | #region Windows Form Designer generated code
42 |
43 | ///
44 | /// Required method for Designer support - do not modify
45 | /// the contents of this method with the code editor.
46 | ///
47 | private void InitializeComponent()
48 | {
49 | this.sessionEditorControl1 = new uk.org.riseley.puttySessionManager.control.SessionEditorControl();
50 | this.SuspendLayout();
51 | //
52 | // sessionEditorControl1
53 | //
54 | this.sessionEditorControl1.ContextMenuVisible = false;
55 | this.sessionEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
56 | this.sessionEditorControl1.Location = new System.Drawing.Point(0, 0);
57 | this.sessionEditorControl1.Name = "sessionEditorControl1";
58 | this.sessionEditorControl1.Size = new System.Drawing.Size(545, 419);
59 | this.sessionEditorControl1.TabIndex = 0;
60 | this.sessionEditorControl1.ExportSessions += new uk.org.riseley.puttySessionManager.control.SessionControl.ExportSessionEventHandler(this.sessionEditorControl1_ExportSessions);
61 | this.sessionEditorControl1.CopySessionAttributes += new System.EventHandler(this.sessionEditorControl1_CopySessionAttributes);
62 | this.sessionEditorControl1.NewSession += new System.EventHandler(this.sessionEditorControl1_NewSession);
63 | this.sessionEditorControl1.CloseSessionEditor += new System.EventHandler(this.sessionEditorControl1_CloseSessionEditor);
64 | this.sessionEditorControl1.DeleteSessions += new uk.org.riseley.puttySessionManager.control.SessionControl.DeleteSessionsEventHandler(this.sessionEditorControl1_DeleteSessions);
65 | //
66 | // SessionEditorForm
67 | //
68 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
69 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
70 | this.ClientSize = new System.Drawing.Size(545, 419);
71 | this.Controls.Add(this.sessionEditorControl1);
72 | this.MinimumSize = new System.Drawing.Size(553, 187);
73 | this.Name = "SessionEditorForm";
74 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SessionEditorForm_FormClosing);
75 | this.ResumeLayout(false);
76 |
77 | }
78 |
79 | #endregion
80 |
81 | private SessionEditorControl sessionEditorControl1;
82 |
83 |
84 |
85 |
86 | }
87 | }
--------------------------------------------------------------------------------
/Backup/PuTTYSessionManager/form/SessionEditorForm.Designer.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2006,2007 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using uk.org.riseley.puttySessionManager.control;
19 | namespace uk.org.riseley.puttySessionManager.form
20 | {
21 | partial class SessionEditorForm
22 | {
23 | ///
24 | /// Required designer variable.
25 | ///
26 | private System.ComponentModel.IContainer components = null;
27 |
28 | ///
29 | /// Clean up any resources being used.
30 | ///
31 | /// true if managed resources should be disposed; otherwise, false.
32 | protected override void Dispose(bool disposing)
33 | {
34 | if (disposing && (components != null))
35 | {
36 | components.Dispose();
37 | }
38 | base.Dispose(disposing);
39 | }
40 |
41 | #region Windows Form Designer generated code
42 |
43 | ///
44 | /// Required method for Designer support - do not modify
45 | /// the contents of this method with the code editor.
46 | ///
47 | private void InitializeComponent()
48 | {
49 | this.sessionEditorControl1 = new uk.org.riseley.puttySessionManager.control.SessionEditorControl();
50 | this.SuspendLayout();
51 | //
52 | // sessionEditorControl1
53 | //
54 | this.sessionEditorControl1.ContextMenuVisible = false;
55 | this.sessionEditorControl1.Dock = System.Windows.Forms.DockStyle.Fill;
56 | this.sessionEditorControl1.Location = new System.Drawing.Point(0, 0);
57 | this.sessionEditorControl1.Name = "sessionEditorControl1";
58 | this.sessionEditorControl1.Size = new System.Drawing.Size(545, 419);
59 | this.sessionEditorControl1.TabIndex = 0;
60 | this.sessionEditorControl1.ExportSessions += new uk.org.riseley.puttySessionManager.control.SessionControl.ExportSessionEventHandler(this.sessionEditorControl1_ExportSessions);
61 | this.sessionEditorControl1.CopySessionAttributes += new System.EventHandler(this.sessionEditorControl1_CopySessionAttributes);
62 | this.sessionEditorControl1.NewSession += new System.EventHandler(this.sessionEditorControl1_NewSession);
63 | this.sessionEditorControl1.CloseSessionEditor += new System.EventHandler(this.sessionEditorControl1_CloseSessionEditor);
64 | this.sessionEditorControl1.DeleteSessions += new uk.org.riseley.puttySessionManager.control.SessionControl.DeleteSessionsEventHandler(this.sessionEditorControl1_DeleteSessions);
65 | //
66 | // SessionEditorForm
67 | //
68 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
69 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
70 | this.ClientSize = new System.Drawing.Size(545, 419);
71 | this.Controls.Add(this.sessionEditorControl1);
72 | this.MinimumSize = new System.Drawing.Size(553, 187);
73 | this.Name = "SessionEditorForm";
74 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SessionEditorForm_FormClosing);
75 | this.ResumeLayout(false);
76 |
77 | }
78 |
79 | #endregion
80 |
81 | private SessionEditorControl sessionEditorControl1;
82 |
83 |
84 |
85 |
86 | }
87 | }
--------------------------------------------------------------------------------
/PuTTYSessionManager/control/options/FileZillaOptionsControl.cs:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2008 David Riseley
3 | *
4 | * This program is free software; you can redistribute it and/or
5 | * modify it under the terms of the GNU General Public License
6 | * as published by the Free Software Foundation; either version 2
7 | * of the License, or (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program; if not, write to the Free Software
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 | */
18 | using System;
19 | using System.Collections.Generic;
20 | using System.ComponentModel;
21 | using System.Drawing;
22 | using System.Data;
23 | using System.Text;
24 | using System.Windows.Forms;
25 | using uk.org.riseley.puttySessionManager.controller;
26 | using System.IO;
27 |
28 | namespace uk.org.riseley.puttySessionManager.control.options
29 | {
30 | public partial class FileZillaOptionsControl : OptionsControl, ResetableOptionsControl
31 | {
32 | public FileZillaOptionsControl()
33 | {
34 | InitializeComponent();
35 |
36 | // Reset all the elements to their saved state
37 | resetState();
38 | }
39 |
40 | public void resetState()
41 | {
42 | // Reset the filezilla protocol button to the save pref
43 | SessionController.Protocol fp = (SessionController.Protocol)Properties.Settings.Default.FileZillaProtocol;
44 | if (fp == SessionController.Protocol.FTP)
45 | {
46 | fzFtpRadioButton.Checked = true;
47 | }
48 | else if (fp == SessionController.Protocol.FTPS)
49 | {
50 | fzFtpsRadioButton.Checked = true;
51 | }
52 | else if (fp == SessionController.Protocol.SFTP)
53 | {
54 | fzSftpRadioButton.Checked = true;
55 | }
56 | else if (fp == SessionController.Protocol.AUTO)
57 | {
58 | fzSessionInfoRadioButton.Checked = true;
59 | }
60 | }
61 |
62 | ///
63 | /// Update the FileZillaProtocol setting when any of the radio buttons
64 | /// are clicked
65 | ///
66 | /// The button that was clicked
67 | ///
68 | private void protocolRadioButton_CheckedChanged(object sender, EventArgs e)
69 | {
70 | if (fzFtpRadioButton.Checked == true)
71 | {
72 | Properties.Settings.Default.FileZillaProtocol = (int)SessionController.Protocol.FTP;
73 | }
74 | else if (fzFtpsRadioButton.Checked == true)
75 | {
76 | Properties.Settings.Default.FileZillaProtocol = (int)SessionController.Protocol.FTPS;
77 | }
78 | else if (fzSftpRadioButton.Checked == true)
79 | {
80 | Properties.Settings.Default.FileZillaProtocol = (int)SessionController.Protocol.SFTP;
81 | }
82 | else if (fzSessionInfoRadioButton.Checked == true)
83 | {
84 | Properties.Settings.Default.FileZillaProtocol = (int)SessionController.Protocol.AUTO;
85 | }
86 | }
87 |
88 | ///
89 | /// Display the filezilla file chooser
90 | ///
91 | ///
92 | ///
93 | private void locateFileZillaButton_Click(object sender, EventArgs e)
94 | {
95 | setupOpenFileDialogue(FileDialogType.FILEZILLA);
96 | if (openFileDialog.ShowDialog() == DialogResult.OK)
97 | {
98 | filezillaTextBox.Text = openFileDialog.FileName;
99 | }
100 | }
101 | }
102 | }
103 |
--------------------------------------------------------------------------------