Esempio n. 1
0
 void SampleFunction()
 {
     for (int i = 0; i < 5; i++)
     {
         AppendTextBox("hi.  ");
         Thead.Sleep(1000);
     }
 }
 void SampleFunction()
 {
     // Gets executed on a seperate thread and
     // doesn't block the UI while sleeping
     for (int i = 0; i < 5; i++)
     {
         AppendTextBox("hi.  ");
         Thead.Sleep(1000);
     }
 }