Beispiel #1
0
        public void Test()
        {
            MessageEx.Show("开始");


            for (int i = 0; i < 999999999999999999; i++)
            {
                this.Invoke(new Action(() =>
                {
                    btnPTYX.Text = i.ToString();
                }));
            }

            MessageEx.Show("结束");
        }
Beispiel #2
0
 private void 备份ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var t = Task.Run(() =>
     {
         MessageEx.Show("开始");
         for (int i = 0; i < 999999999999999999; i++)
         {
             this.Invoke(new Action(() =>
             {
                 btnPTYX.Text = i.ToString();
             }));
         }
         MessageEx.Show("结束");
     });
 }