コード例 #1
0
 private void Gomoku_MouseMove(object sender, MouseEventArgs e)
 {
     if (board.CanBePlaced(e.X, e.Y))
     {
         this.Cursor = Cursors.Hand;
     }
     else
     {
         this.Cursor = Cursors.Default;
     }
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: KenkunLiu/Gomoku
 public bool CanBePlaced(int x, int y)
 {
     return(board.CanBePlaced(x, y));
 }