mirror of
https://github.com/BluePointLilac/ContextMenuManager.git
synced 2025-09-10 13:19:07 +00:00
更新3.3.1.0版本
This commit is contained in:
@@ -58,8 +58,8 @@ namespace ContextMenuManager
|
||||
private static readonly IniWriter ConfigWriter = new IniWriter(ConfigIni);
|
||||
private static string GetGeneralValue(string key) => ConfigWriter.GetValue("General", key);
|
||||
private static void SetGeneralValue(string key, object value) => ConfigWriter.SetValue("General", key, value);
|
||||
|
||||
public static string LanguageIniPath => $@"{LangsDir}\{Language}.ini";
|
||||
|
||||
public static string Language
|
||||
{
|
||||
get
|
||||
|
@@ -241,6 +241,7 @@ namespace ContextMenuManager
|
||||
public static string WinXSorted => GetValue("WinXSorted");
|
||||
public static string RestoreDefault => GetValue("RestoreDefault");
|
||||
public static string DeleteGroup => GetValue("DeleteGroup");
|
||||
public static string FailedToReadNetworkFile => GetValue("FailedToReadNetworkFile");
|
||||
}
|
||||
|
||||
/// <summary>其他文本</summary>
|
||||
|
@@ -34,7 +34,7 @@
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
@@ -151,6 +151,9 @@
|
||||
<Compile Include="BluePointLilac.Methods\SingleInstance.cs" />
|
||||
<Compile Include="BluePointLilac.Methods\StringExtension.cs" />
|
||||
<Compile Include="BluePointLilac.Methods\TextBoxExtension.cs" />
|
||||
<Compile Include="BluePointLilac.Methods\UAWebClient.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="BluePointLilac.Methods\WindowsOsVersion.cs" />
|
||||
<Compile Include="BluePointLilac.Methods\ShellLink.cs" />
|
||||
<Compile Include="BluePointLilac.Methods\WinXHasher.cs" />
|
||||
|
@@ -291,12 +291,16 @@ namespace ContextMenuManager.Controls
|
||||
cmbEngine.Items.AddRange(new[] { "Bing", "Baidu", "Google", "DuckDuckGo", "DogeDoge", "Sogou", "360", AppString.Other.CustomEngine });
|
||||
cmbUpdate.Items.AddRange(new[] { AppString.Other.OnceAWeek, AppString.Other.OnceAMonth, AppString.Other.OnceASeason, AppString.Other.NeverCheck });
|
||||
|
||||
lblUpdate.Click += (sender, e) => Updater.Update(true);
|
||||
this.VisibleChanged += (sender, e) => this.Enabled = this.Visible;
|
||||
btnConfigDir.MouseDown += (sender, e) => ExternalProgram.JumpExplorer(AppConfig.ConfigDir);
|
||||
btnBackupDir.MouseDown += (sender, e) => ExternalProgram.JumpExplorer(AppConfig.BackupDir);
|
||||
lblUpdate.Click += (sender, e) =>
|
||||
{
|
||||
if(!Updater.Update()) MessageBoxEx.Show(AppString.Message.VersionIsLatest);
|
||||
};
|
||||
cmbRepo.SelectionChangeCommitted += (sender, e) => AppConfig.RequestUseGithub = cmbRepo.SelectedIndex == 0;
|
||||
chkBackup.MouseDown += (sender, e) => AppConfig.AutoBackup = chkBackup.Checked = !chkBackup.Checked;
|
||||
chkProtect.MouseDown += (sender, e) => AppConfig.ProtectOpenItem = chkProtect.Checked = !chkProtect.Checked;
|
||||
chkWinXSortable.MouseDown += (sender, e) => AppConfig.WinXSortable = chkWinXSortable.Checked = !chkWinXSortable.Checked;
|
||||
chkOpenMoreRegedit.MouseDown += (sender, e) => AppConfig.OpenMoreRegedit = chkOpenMoreRegedit.Checked = !chkOpenMoreRegedit.Checked;
|
||||
chkHideDisabledItems.MouseDown += (sender, e) => AppConfig.HideDisabledItems = chkHideDisabledItems.Checked = !chkHideDisabledItems.Checked;
|
||||
cmbConfigDir.SelectionChangeCommitted += (sender, e) =>
|
||||
{
|
||||
string newPath = (cmbConfigDir.SelectedIndex == 0) ? AppConfig.AppDataConfigDir : AppConfig.AppConfigDir;
|
||||
@@ -349,13 +353,6 @@ namespace ContextMenuManager.Controls
|
||||
}
|
||||
AppConfig.UpdateFrequency = day;
|
||||
};
|
||||
this.VisibleChanged += (sender, e) => this.Enabled = this.Visible;
|
||||
cmbRepo.SelectionChangeCommitted += (sender, e) => AppConfig.RequestUseGithub = cmbRepo.SelectedIndex == 0;
|
||||
chkBackup.MouseDown += (sender, e) => AppConfig.AutoBackup = chkBackup.Checked = !chkBackup.Checked;
|
||||
chkProtect.MouseDown += (sender, e) => AppConfig.ProtectOpenItem = chkProtect.Checked = !chkProtect.Checked;
|
||||
chkWinXSortable.MouseDown += (sender, e) => AppConfig.WinXSortable = chkWinXSortable.Checked = !chkWinXSortable.Checked;
|
||||
chkOpenMoreRegedit.MouseDown += (sender, e) => AppConfig.OpenMoreRegedit = chkOpenMoreRegedit.Checked = !chkOpenMoreRegedit.Checked;
|
||||
chkHideDisabledItems.MouseDown += (sender, e) => AppConfig.HideDisabledItems = chkHideDisabledItems.Checked = !chkHideDisabledItems.Checked;
|
||||
chkShowFilePath.MouseDown += (sender, e) =>
|
||||
{
|
||||
chkShowFilePath.Checked = !chkShowFilePath.Checked;
|
||||
|
@@ -1,5 +1,6 @@
|
||||
using BluePointLilac.Methods;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
@@ -80,13 +81,11 @@ namespace ContextMenuManager.Controls
|
||||
string[] values = lines[n].Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
dgvDonate.Rows.Add(values);
|
||||
}
|
||||
|
||||
DateTime date = new DateTime();
|
||||
dgvDonate.Sort(dgvDonate.Columns[0], ListSortDirection.Descending);
|
||||
DateTime date = Convert.ToDateTime(dgvDonate.Rows[0].Cells[0].Value);
|
||||
float money = 0;
|
||||
foreach(DataGridViewRow row in dgvDonate.Rows)
|
||||
{
|
||||
DateTime temp = Convert.ToDateTime(row.Cells[0].Value);
|
||||
if(temp > date) date = temp;
|
||||
money += Convert.ToSingle(row.Cells[3].Value);
|
||||
}
|
||||
dgvDonate.Columns[4].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||
|
@@ -40,7 +40,7 @@ namespace ContextMenuManager.Controls
|
||||
{
|
||||
if(valueXN == null) return;
|
||||
XmlNode szXN = valueXN.SelectSingleNode("REG_SZ");
|
||||
XmlNode binaryXN = valueXN.SelectSingleNode("REG_SZ");
|
||||
XmlNode binaryXN = valueXN.SelectSingleNode("REG_BINARY");
|
||||
XmlNode dwordXN = valueXN.SelectSingleNode("REG_DWORD");
|
||||
XmlNode expand_szXN = valueXN.SelectSingleNode("REG_EXPAND_SZ");
|
||||
using(RegistryKey key = RegistryEx.GetRegistryKey(regPath, true, true))
|
||||
|
@@ -33,7 +33,7 @@ namespace ContextMenuManager.Controls
|
||||
this.AddItem(groupItem);
|
||||
XmlDocument doc = new XmlDocument();
|
||||
try { doc.LoadXml(File.ReadAllText(xmlPath, EncodingType.GetType(xmlPath))); }
|
||||
catch { return; }
|
||||
catch { throw; }
|
||||
foreach(XmlNode xn in doc.DocumentElement.ChildNodes)
|
||||
{
|
||||
try
|
||||
@@ -167,7 +167,6 @@ namespace ContextMenuManager.Controls
|
||||
{
|
||||
if(!tip.IsNullOrWhiteSpace()) tip += "\n";
|
||||
tip += AppString.Tip.CommandFiles;
|
||||
//if(System.Diagnostics.Debugger.IsAttached) item.ChkVisible.Checked = item.ItemVisible = true;//调试状态
|
||||
}
|
||||
MyToolTip.SetToolTip(item.ChkVisible, tip);
|
||||
this.AddItem(item);
|
||||
@@ -199,7 +198,6 @@ namespace ContextMenuManager.Controls
|
||||
|
||||
public static bool JudgeOSVersion(XmlElement itemXE)
|
||||
{
|
||||
//if(System.Diagnostics.Debugger.IsAttached) return true;//调试状态
|
||||
bool JudgeOne(XmlElement osXE)
|
||||
{
|
||||
Version ver = new Version(osXE.InnerText);
|
||||
@@ -232,7 +230,6 @@ namespace ContextMenuManager.Controls
|
||||
|
||||
private static bool FileExists(XmlElement itemXE)
|
||||
{
|
||||
//if(System.Diagnostics.Debugger.IsAttached) return true;//调试状态
|
||||
foreach(XmlElement feXE in itemXE.SelectNodes("FileExists"))
|
||||
{
|
||||
string path = Environment.ExpandEnvironmentVariables(feXE.InnerText);
|
||||
@@ -242,6 +239,8 @@ namespace ContextMenuManager.Controls
|
||||
}
|
||||
|
||||
public static byte[] ConvertToBinary(string value)
|
||||
{
|
||||
try
|
||||
{
|
||||
string[] strs = value.Split(' ');
|
||||
byte[] bs = new byte[strs.Length];
|
||||
@@ -251,5 +250,7 @@ namespace ContextMenuManager.Controls
|
||||
}
|
||||
return bs;
|
||||
}
|
||||
catch { return null; }
|
||||
}
|
||||
}
|
||||
}
|
@@ -11,5 +11,5 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("35190ec1-2515-488d-a2e9-825d6ff67aa2")]
|
||||
[assembly: AssemblyVersion("3.3.0.0")]
|
||||
[assembly: AssemblyFileVersion("3.3.0.0")]
|
||||
[assembly: AssemblyVersion("3.3.1.0")]
|
||||
[assembly: AssemblyFileVersion("3.3.1.0")]
|
@@ -105,7 +105,7 @@ namespace ContextMenuManager.Properties {
|
||||
///;翻译:可帮助作者为此程序提供翻译并提交到Github,以下内容中等号右侧内容替换为翻译文本,
|
||||
///;General-Translator为翻译贡献者,General-Language为语言名称,如en-US 美国英语
|
||||
///;翻译文件保存在Config\languages目录中,文件名保存为en-US.ini
|
||||
///;翻译说明:暂时不翻译的值保留为空即可,字典内赋值换行请使用\n进行转义
|
||||
///;翻译说明:暂时不翻译的值保留为空即可,字典内赋值换行使用\r\n或\n进行转义
|
||||
///
|
||||
///[General]
|
||||
///Language = zh-CN 简体中文
|
||||
@@ -126,7 +126,7 @@ namespace ContextMenuManager.Properties {
|
||||
///Background = 目录背景
|
||||
///Desktop = 桌面背景
|
||||
///Drive = 磁盘分区
|
||||
///AllObjects [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
///AllObje [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string AppLanguageDic {
|
||||
get {
|
||||
@@ -407,7 +407,7 @@ namespace ContextMenuManager.Properties {
|
||||
/// <summary>
|
||||
/// 查找类似 <?xml version="1.0" encoding="utf-8"?>
|
||||
///<!-- 微软在Win10右键菜单中新增的UWP模块, 非Shell、ShellEx类型,
|
||||
///但是可通过GUID锁定屏蔽来禁用右键菜单项目,
|
||||
///但是可通过GUID锁定屏蔽来禁用相关右键菜单项目,
|
||||
///GUID查找位置:HKEY_CLASSES_ROOT\PackagedCom\Package\[包名]\Class\[GUID],
|
||||
///Scene的各子节点为菜单项目出现位置, Item必须有Guid属性,
|
||||
///UwpName、Text、Icon、Tip等属性写在GuidInfosDic.ini里面-->
|
||||
@@ -420,8 +420,7 @@ namespace ContextMenuManager.Properties {
|
||||
/// <Item Guid='9f156763-7844-4dc4-b2b1-901f640f5155'/>
|
||||
/// </Directory>
|
||||
/// <Background>
|
||||
/// <Item Guid='9f156763-7844-4dc4-b2b1-901f640f5155'/>
|
||||
/// </Backg [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// <Item Guid='9f156763-7844-4dc4-b2b1-901f640f5155 [字符串的其余部分被截断]"; 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string UwpModeItemsDic {
|
||||
get {
|
||||
|
@@ -209,6 +209,7 @@ AuthorityProtection = 此菜单注册表项目可能受安全软件保护,\r\n
|
||||
WinXSorted = 为优化排序功能已对部分项目重新编号,\r\n需要重启文件资源管理器应用效果
|
||||
RestoreDefault = 确认还原为默认菜单项目?
|
||||
DeleteGroup = 确认永久删除此组及组内所有菜单项目?
|
||||
FailedToReadNetworkFile = 网络文件读取失败!
|
||||
|
||||
[Tip]
|
||||
RestartExplorer = 重启Explorer会使桌面闪烁片刻, 正常现象无需担心,\r\n或者你也可以稍后重启或注销计算机使你的操作生效
|
||||
|
@@ -279,15 +279,6 @@ Tip属性为鼠标悬浮在开关上时的提示信息,从每个Item节点开
|
||||
<Command Default='osk.exe'/>
|
||||
</SubKey>
|
||||
</Item>
|
||||
<Item KeyName='OpenEdge'>
|
||||
<OSVersion Compare=">=">10.0</OSVersion>
|
||||
<Value>
|
||||
<REG_SZ MUIVerb='打开Edge' Icon='%SystemRoot%\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe'/>
|
||||
</Value>
|
||||
<SubKey>
|
||||
<Command Default='explorer.exe shell:Appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge'/>
|
||||
</SubKey>
|
||||
</Item>
|
||||
<Item KeyName='ShutDownMenu'>
|
||||
<Value>
|
||||
<REG_SZ MUIVerb='关机选项' Icon='shell32.dll,-28' SubCommands='' Position='bottom'/>
|
||||
|
@@ -209,6 +209,7 @@ AuthorityProtection = 此菜单注册表项目可能受安全软件保护,\r\n
|
||||
WinXSorted = 为优化排序功能已对部分项目重新编号,\r\n需要重启文件资源管理器应用效果
|
||||
RestoreDefault = 确认还原为默认菜单项目?
|
||||
DeleteGroup = 确认永久删除此组及组内所有菜单项目?
|
||||
FailedToReadNetworkFile = 网络文件读取失败!
|
||||
|
||||
[Tip]
|
||||
RestartExplorer = 重启Explorer会使桌面闪烁片刻, 正常现象无需担心,\r\n或者你也可以稍后重启或注销计算机使你的操作生效
|
||||
|
Reference in New Issue
Block a user