Inheritance: System.Windows.Forms.Form
コード例 #1
0
        /// <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;
        }
コード例 #2
0
        /// <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));
        }
コード例 #3
0
        /// <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));
        }
コード例 #4
0
        /// <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));
        }