示例#1
0
 private void game_NewGenerationCreated(object sender, NewGenerationEventArgs e)
 {
     if (InvokeRequired)
     {
         Invoke(new UpdateUiCallback(UpdateUi), new object[] { e.Bitmap });
     }
     else
     {
         UpdateUi(e.Bitmap);
     }
 }
示例#2
0
 private void game_NewGenerationCreated(object sender, NewGenerationEventArgs e)
 {
     if (InvokeRequired)
     {
         Invoke(new UpdateUiCallback(UpdateUi), new object[] { e.Bitmap });
     }
     else
     {
         UpdateUi(e.Bitmap);
     }
 }