Esempio n. 1
0
 public void ReDraw(bool async)
 {
     if (async)
     {
         DrawAsyncDelegate d = new DrawAsyncDelegate(Draw);
         d.BeginInvoke(null, null, null, null);
     }
     else
     {
         Draw(null, null);
     }
 }
Esempio n. 2
0
        //Асинхронная отрисовкай с задержкой на delay милисекунд
        public void ReDraw(int delay)
        {
            DrawAsyncDelegate d = new DrawAsyncDelegate(Draw);

            d.BeginInvoke(delay, new EventArgs(), null, null);
        }
Esempio n. 3
0
 //Асинхронная отрисовкай с задержкой на delay милисекунд
 public void ReDraw(int delay)
 {
     DrawAsyncDelegate d = new DrawAsyncDelegate(Draw);
     d.BeginInvoke(delay, new EventArgs(), null, null);
 }
Esempio n. 4
0
 // Manual sync/async drawing
 public void ReDraw(bool async)
 {
     if (async)
     {
         DrawAsyncDelegate d = new DrawAsyncDelegate(Draw);
         d.BeginInvoke(null, null, null, null);
     }
     else
         Draw(null, null);
 }