1 Star 0 Fork 2

zkleaf/ PDA解决方案:活字格设计器插件( PDA(Android)交互命令)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Reset_LocalKv.cs 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
using GrapeCity.Forguncy.Commands;
using GrapeCity.Forguncy.Plugin;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AndroidPDACommand
{
[Icon("pack://application:,,,/AndroidPDACommand;component/Resources/Icon_Kv.png")]
[Category("活字格安卓容器(HAC)")]
[OrderWeight(402)]
public class Reset_LocalKv : Command, IPropertySearchable, IForceGenerateCell
{
[FormulaProperty]
[DisplayName("键(大小写敏感)")]
public object KeyString { get; set; }
public override string ToString()
{
return "从离线存储中删除指定键值";
}
public override CommandScope GetCommandScope()
{
return CommandScope.All;
}
public IEnumerable<FindResultItem> EnumSearchableProperty(LocationIndicator location)
{
List<FindResultItem> result = new List<FindResultItem>();
result.Add(new FindResultItem() {
Location = location.AppendProperty("键"),
Value = KeyString?.ToString()
});
return result;
}
public IEnumerable<GenerateCellInfo> GetForceGenerateCells()
{
List<GenerateCellInfo> result = new List<GenerateCellInfo>();
if (KeyString is IFormulaReferObject formulaReferObject)
{
var kString = formulaReferObject.GetGenerateCellInfo();
if (kString != null)
{
result.Add(kString);
}
}
return result;
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/zkleaf/huozige-hac-plugin.git
git@gitee.com:zkleaf/huozige-hac-plugin.git
zkleaf
huozige-hac-plugin
PDA解决方案:活字格设计器插件( PDA(Android)交互命令)
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385