public void Enqueue(Color color) { try { Monitor.Enter(_queue); _queue.Enqueue(color); Monitor.Pulse(_queue); } finally { Monitor.Exit(_queue); //signal that something has been inserted } }
private void UpdateBoardView(Color[,] board) { boardView.Board = board; }
public void BoardUpdated(Color[,] board) { UpdateBoardView(board); }
public void BoardWasUpdated(Color[,] board) { BoardUpdatedDel handler = BoardUpdated; if (handler != null) handler(board); }
private void SelectColor(Color color) { getController().PickColor(color); }
public void BoardUpdated(Color[,] board) { boardView.Board = board; }
public void PickColor(Color color) { game.PickColor(color); }