本文整理汇总了C#中LibraryChannel.GetZhongcihaoSearchResult方法的典型用法代码示例。如果您正苦于以下问题:C# LibraryChannel.GetZhongcihaoSearchResult方法的具体用法?C# LibraryChannel.GetZhongcihaoSearchResult怎么用?C# LibraryChannel.GetZhongcihaoSearchResult使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LibraryChannel
的用法示例。
在下文中一共展示了LibraryChannel.GetZhongcihaoSearchResult方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FillList
//.........这里部分代码省略.........
long lPerCount = Math.Min(50, lHitCount);
ZhongcihaoSearchResult[] searchresults = null;
if (stop != null)
stop.SetProgressRange(0, lHitCount);
// 装入浏览格式
for (; ; )
{
Application.DoEvents(); // 出让界面控制权
if (stop != null)
{
if (stop.State != 0)
{
strError = "用户中断";
goto ERROR1;
}
}
long lCurrentPerCount = lPerCount;
bool bShift = Control.ModifierKeys == Keys.Shift;
string strBrowseStyle = "cols";
if (bShift == true || this.checkBox_returnBrowseCols.Checked == false)
{
strBrowseStyle = "";
lCurrentPerCount = lPerCount * 10;
}
stop.SetMessage("正在装入浏览信息 " + (lStart + 1).ToString() + " - " + (lStart + lPerCount).ToString() + " (命中 " + lHitCount.ToString() + " 条记录) ...");
lRet = Channel.GetZhongcihaoSearchResult(
stop,
GetZhongcihaoDbGroupName(this.BiblioDbName),
// "!" + this.BiblioDbName,
"zhongcihao", // strResultSetName
lStart,
lPerCount,
strBrowseStyle, // style
this.Lang,
out searchresults,
out strError);
if (lRet == -1)
goto ERROR1;
if (lRet == 0)
{
strError = "未命中";
goto ERROR1;
}
// 处理浏览结果
for (int i = 0; i < searchresults.Length; i++)
{
ZhongcihaoSearchResult result_item = searchresults[i];
ListViewItem item = new ListViewItem();
item.Text = result_item.Path;
item.SubItems.Add(result_item.Zhongcihao);
if (result_item.Cols != null)
{
ListViewUtil.EnsureColumns(this.listView_number, result_item.Cols.Length + 1);
for (int j = 0; j < result_item.Cols.Length; j++)
{