本文整理匯總了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);
}