namespace SpaceEngineersBlueprintEditor.Installer.Utilities; /// /// 快捷方式的信息。 /// public class LinkFileInfo(string targetPath, string? arguments = null, string? description = null, string? iconLocation = null) { public string? Arguments { get; set; } = arguments; /// /// 设置备注。 /// public string? Description { get; set; } = description; /// /// 键代码(KeyCode)和System.Windows.Forms.Keys相同。位屏蔽为 0x000000ff。 /// 修饰符(Modifiers)和System.Windows.Forms.Keys不同。位屏蔽为 0x0000ff00。 /// 示例: /// /// public short Hotkey { get; set; } /// /// 设置图标路径。 /// public string? IconLocation { get; set; } = iconLocation; /// /// 设置图标ID。 /// public int IconLocationID { get; set; } /// /// 目标路径。 /// public string TargetPath { get; set; } = targetPath; /// /// 设置运行方式,默认为常规窗口。 /// https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-showwindow /// public int WindowStyle { get; set; } = -1; public string? WorkingDirectory { get; set; } }