Skip to content

Commit

Permalink
1.增加各个List的注释
Browse files Browse the repository at this point in the history
2.在备份文件中加入了计算机主机名称
  • Loading branch information
Jack251970 committed May 18, 2023
1 parent ac9c093 commit 281418d
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/DetailedEditList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace ContextMenuManager.Controls
{
sealed class DetailedEditList : SwitchDicList
sealed class DetailedEditList : SwitchDicList // 其他菜单 详细编辑
{
public Guid GroupGuid { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/EnhanceMenusList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace ContextMenuManager.Controls
{
sealed class EnhanceMenusList : SwitchDicList
sealed class EnhanceMenusList : SwitchDicList // 其他菜单 增强菜单
{
public string ScenePath { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/GuidBlockedList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace ContextMenuManager.Controls
{
sealed class GuidBlockedList : MyList
sealed class GuidBlockedList : MyList // 其他规则 GUID锁
{
public const string HKLMBLOCKED = @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked";
public const string HKCUBLOCKED = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked";
Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/IEList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace ContextMenuManager.Controls
{
sealed class IEList : MyList
sealed class IEList : MyList // 其他规则 IE浏览器
{
public const string IEPath = @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer";

Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/OpenWithList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace ContextMenuManager.Controls
{
sealed class OpenWithList : MyList
sealed class OpenWithList : MyList // 主页 打开方式
{
public void LoadItems()
{
Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/SendToList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace ContextMenuManager.Controls
{
sealed class SendToList : MyList
sealed class SendToList : MyList // 主页 发送到
{
private static readonly string SendToPath = Environment.ExpandEnvironmentVariables(@"%AppData%\Microsoft\Windows\SendTo");
private static readonly string DefaultSendToPath = Environment.ExpandEnvironmentVariables(@"%SystemDrive%\Users\Default\AppData\Roaming\Microsoft\Windows\SendTo");
Expand Down
3 changes: 2 additions & 1 deletion ContextMenuManager/Controls/ShellList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace ContextMenuManager.Controls
{
sealed class ShellList : MyList
sealed class ShellList : MyList // 文件类型 Ink文件 uwp Ink exe文件 未知格式 // 主页 第一栏
{
public const string MENUPATH_FILE = @"HKEY_CLASSES_ROOT\*";//文件
public const string MENUPATH_FOLDER = @"HKEY_CLASSES_ROOT\Folder";//文件夹
Expand All @@ -25,6 +25,7 @@ sealed class ShellList : MyList
public const string MENUPATH_COMPUTER = @"HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}";//此电脑
public const string MENUPATH_RECYCLEBIN = @"HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}";//回收站
public const string MENUPATH_LIBRARY = @"HKEY_CLASSES_ROOT\LibraryFolder";//库

public const string MENUPATH_LIBRARY_BACKGROUND = @"HKEY_CLASSES_ROOT\LibraryFolder\Background";//库背景
public const string MENUPATH_LIBRARY_USER = @"HKEY_CLASSES_ROOT\UserLibraryFolder";//用户库
public const string MENUPATH_UWPLNK = @"HKEY_CLASSES_ROOT\Launcher.ImmersiveApplication";//UWP快捷方式
Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/ShellNewList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace ContextMenuManager.Controls
{
sealed class ShellNewList : MyList
sealed class ShellNewList : MyList // 主页 新建菜单
{
public const string ShellNewPath = @"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew";

Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/SwitchDicList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace ContextMenuManager.Controls
{
class SwitchDicList : MyList
class SwitchDicList : MyList // 其他菜单 增强菜单
{
public bool UseUserDic { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/WinXList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace ContextMenuManager.Controls
{
sealed class WinXList : MyList
sealed class WinXList : MyList // 主页 Win+X
{
public static readonly string WinXPath = Environment.ExpandEnvironmentVariables(@"%LocalAppData%\Microsoft\Windows\WinX");
public static readonly string DefaultWinXPath = Environment.ExpandEnvironmentVariables(@"%SystemDrive%\Users\Default\AppData\Local\Microsoft\Windows\WinX");
Expand Down
4 changes: 3 additions & 1 deletion ContextMenuManager/Methods/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
using System.Windows.Forms;

namespace ContextMenuManager.Methods
Expand Down Expand Up @@ -45,7 +46,8 @@ static AppConfig()
public static readonly bool SaveToAppDir = ConfigDir == AppConfigDir;
public static readonly bool IsFirstRun = !Directory.Exists(ConfigDir);
public static string ConfigIni = $@"{ConfigDir}\Config.ini";
public static string BackupDir = $@"{ConfigDir}\Backup";
public static string ComputerHostName = Dns.GetHostName();
public static string BackupDir = $@"{ConfigDir}\Backup\" + ComputerHostName;
public static string LangsDir = $@"{ConfigDir}\Languages";
public static string ProgramsDir = $@"{ConfigDir}\Programs";
public static string DicsDir = $@"{ConfigDir}\Dictionaries";
Expand Down

0 comments on commit 281418d

Please sign in to comment.