Updated Shortcut saving to work with the library

Updated the 'Save To Desktop' button in the
ShortcutLibraryForm to use the CreateShortcut
function in the ShortcutItem, and fixed that so
it now uses the IWshRuntimeLibrary to create
a Windows Script Host that will create the
shortcut.
This commit is contained in:
terrymacdonald
2020-07-21 19:50:41 +12:00
parent 85963b3417
commit c1ce153c68
13 changed files with 1942 additions and 102 deletions

View File

@ -19,13 +19,11 @@ namespace HeliosPlus.UIForms
//private static bool _inDialog = false;
private static ProfileItem _profileToLoad = null;
private ProfileAdaptor _profileAdaptor = new ProfileAdaptor();
private ProfileRepository _profileRepository = new ProfileRepository();
public DisplayProfileForm()
{
InitializeComponent();
this.AcceptButton = this.btn_save_or_rename;
//_profileRepository = new ProfileRepository();
}
public DisplayProfileForm(ProfileItem profileToLoad) : this()