统计页面 修改店铺选择,增加店铺搜索Combobox
This commit is contained in:
1 parent
b6b72e6bc3
commit
f12a7f14ea
16 files changed
+1801
-41
No files matched your search
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace TinyPinyin
|
||||
{
|
||||
public abstract class PinyinDict : IPinyinDict
|
||||
{
|
||||
public abstract Dictionary<string, string[]> Mapping();
|
||||
|
||||
public string[] ToPinyin(string word)
|
||||
{
|
||||
var mappingResult = Mapping();
|
||||
if (mappingResult == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
if (mappingResult.TryGetValue(word, out var result))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<string> Words()
|
||||
{
|
||||
var mappingResult = Mapping();
|
||||
if (mappingResult == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return mappingResult.Keys.Select(key => key).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user