/// <summary> /// aborts processing and terminates the thread /// </summary> public void Abort() { if (ui != null) ui.Close(); ui = null; if (BgThread != null) BgThread.Abort(); Wait(); Result = null; }
/// <summary> /// Bypasses all redirects in the article /// </summary> public void BypassRedirects(string Article) { Result = strParam = Article; if (HasUI) ui = new PleaseWait(); if (HasUI) ui.Show(Variables.MainForm as Form); InitThread(new ThreadStart(BypassRedirectsFunc)); }
/// <summary> /// Returns a list of articles using GetLists.FromVariant /// </summary> /// <param name="What">Which source to use</param> /// <param name="Params">Optional parameters, depend on source</param> public void GetList(WikiFunctions.Lists.IListProvider what, params string[] params1) { objParam1 = what; objParam2 = params1; if (HasUI) ui = new PleaseWait(); if (HasUI) ui.Show(Variables.MainForm as Form); InitThread(new ThreadStart(GetListFunc)); }
/// <summary> /// Returns a list of articles using GetLists.FromVariant /// </summary> /// <param name="What">Which source to use</param> /// <param name="Limit">Max. number of pages to return, -1 if no limit</param> /// <param name="Params">Optional parameters, depend on source</param> public void GetList(GetLists.From what, int limit, params string[] params1) { objParam1 = what; objParam2 = params1; intParam = limit; if (HasUI) ui = new PleaseWait(); if (HasUI) ui.Show(Variables.MainForm as Form); InitThread(new ThreadStart(GetListFunc)); }