本文整理汇总了C#中WikiFunctions.Background.BackgroundRequest.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# BackgroundRequest.GetList方法的具体用法?C# BackgroundRequest.GetList怎么用?C# BackgroundRequest.GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WikiFunctions.Background.BackgroundRequest
的用法示例。
在下文中一共展示了BackgroundRequest.GetList方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnOk_Click
private void btnOk_Click(object sender, EventArgs e)
{
try
{
timer.Enabled = false;
RefreshImgs();
txtBacklog.Text = txtBacklog.Text.Replace("_", " ");
ToDo.Clear();
foreach (DataGridViewRow r in Grid.Rows)
{
if (!r.IsNewRow && !string.IsNullOrEmpty((string)r.Cells[0].Value)
&& !ToDo.ContainsKey((string)r.Cells[0].Value))
ToDo.Add((string)r.Cells[0].Value, (string)r.Cells[1].Value);
}
BackgroundRequest req = new BackgroundRequest();
if (ToDo.Count > 0)
{
string[] imgs = new string[ToDo.Count];
ToDo.Keys.CopyTo(imgs, 0);
Enabled = false;
req.GetList(new ImageFileLinksListProvider(), imgs);
req.Wait();
Enabled = true;
if (req.Result != null && req.Result is List<Article>)
IfdAWBPlugin.AWB.ListMaker.Add((List<Article>)req.Result);
}
}
catch (Exception ex)
{
ErrorHandler.HandleException(ex);
}
DialogResult = DialogResult.OK;
}
示例2: LoadUnderscores
public static void LoadUnderscores(params string[] cats)
{
BackgroundRequest r = new BackgroundRequest(UnderscoresLoaded);
r.HasUI = false;
DelayedRequests.Add(r);
r.GetList(new Lists.CategoryListProvider(), cats);
}
示例3: LoadUnderscores
public static void LoadUnderscores(params string[] templates)
{
BackgroundRequest r = new BackgroundRequest(UnderscoresLoaded);
r.HasUI = false;
DelayedRequests.Add(r);
r.GetList(new Lists.WhatTranscludesPageListProvider(), templates);
}
示例4: LoadUnderscores
public static void LoadUnderscores(params string[] templates)
{
BackgroundRequest r = new BackgroundRequest(new BackgroundRequestComplete(UnderscoresLoaded));
r.HasUI = false;
DelayedRequests.Add(r);
r.GetList(new WikiFunctions.Lists.WhatTranscludesPageListMakerProvider(), templates);
}
示例5: LoadUnderscores
internal static void LoadUnderscores(params string[] cats)
{
BackgroundRequest r = new BackgroundRequest(UnderscoresLoaded) {HasUI = false};
lock (DelayedRequests)
{
DelayedRequests.Add(r);
}
r.GetList(new CategoryListProvider(), cats);
}