屠宰场客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
654 B

using Forks.JsonRpc.Client;
using Forks.JsonRpc.Client.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BWP.WinFormControl
{
internal static class ComboBoxHelper
{
public static List<WordPair> GetList(string rpc, string input, string codeArg, int range)
{
var list = RpcFacade.Call<List<RpcObject>>(rpc, input, codeArg, range);
var result = new List<WordPair>();
foreach (var item in list)
{
result.Add(new WordPair(item.Get<string>("DisplayName"), item.Get<string>("PhyName")));
}
return result;
}
}
}