當前位置: 首頁>>代碼示例>>C#>>正文


C# BackgroundRequest.GetList方法代碼示例

本文整理匯總了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;
        }
開發者ID:reedy,項目名稱:AutoWikiBrowser,代碼行數:38,代碼來源:IfdOptions.cs

示例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);
 }
開發者ID:svn2github,項目名稱:autowikibrowser,代碼行數:7,代碼來源:Variables.cs

示例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);
 }
開發者ID:svn2github,項目名稱:autowikibrowser,代碼行數:7,代碼來源:Variables.cs

示例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);
 }
開發者ID:svn2github,項目名稱:autowikibrowser,代碼行數:7,代碼來源:Variables.cs

示例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);
 }
開發者ID:reedy,項目名稱:AutoWikiBrowser,代碼行數:9,代碼來源:Variables.cs


注:本文中的WikiFunctions.Background.BackgroundRequest.GetList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。