Beispiel #1
0
        private bool ExecNext(string msg, int count)
        {
            //--実行権の取得
            this.WriteLine("Borrow");
            TestFunction dlg  = new TestFunction(this.testFunction);
            TestThread   dlg2 = new TestThread(this.Exec_thread);

            dlg2.BeginInvoke(
                dlg, msg, count,
                new System.AsyncCallback(this.Exec_callback),
                new object[] { dlg2, msg }            //←Exec_callback() の ar.AsyncState に入る
                );
            return(true);
        }