public StartupFolderRegistration(string appName, ShortcutOptions options, CreateShortcut createShortcut, ReadShortcut readShortcut) { _appName = appName; _createShortcut = createShortcut; _options = options; _readShortcut = readShortcut; }
public static void CreateShortcut(string lnkPath, ShortcutOptions options) { options = options ?? new ShortcutOptions(); var shell = new WshShell(); var shortcut = (IWshShortcut)shell.CreateShortcut(Path.GetFullPath(lnkPath)); shortcut.Arguments = options.Arguments; shortcut.Description = options.Description; shortcut.Hotkey = options.Hotkey ?? string.Empty; shortcut.TargetPath = Path.GetFullPath(options.Target); shortcut.WorkingDirectory = options.WorkingDirectory; shortcut.Save(); }
public HierarchicalImaiIriBUCao(ShortcutOptions shortcutOptions = null) : base("H - Imai Iri Bottom Up - Cao", shortcutOptions) { }
public HierarchicalImaiIriTD(ShortcutOptions shortcutOptions = null) : base("H - Imai Iri Top Down", shortcutOptions) { }
public NonHierarchical(ShortcutOptions shortcutOptions = null) : base("Imai Iri", shortcutOptions) { }
protected HierarchicalOptimal(string name, ShortcutOptions shortcutOptions = null) : base(name, shortcutOptions) { }
public HierarchicalOptimalCubic(ShortcutOptions shortcutOptions = null) : base("H - Optimal - Cubic", shortcutOptions) { }
protected ImaiIriAlgorithm(string name, ShortcutOptions options) : base(name) { shortcutOptions = options ?? new ShortcutOptions(); OptionsControl = shortcutOptions; }