Example #1
0
        public FrmMain()
        {
            this.enableSound = true;
            this.gameBoard = new BoardStatus();
            this.replayBoard = new BoardStatus();
            this.gCtrl = new GameController(this, this.gameBoard, this.replayBoard);
            this.mCtrl = new MoveController(this.gCtrl);
            this.network = new GameNetwork(this.gCtrl);

            CheckForIllegalCrossThreadCalls = false;
            InitializeComponent();

            this.Board.Game = this.gameBoard;
            this.SetInfoText(initInfoText);
            this.FixLinkLableTabStop();

            this.WbrMovesList.ObjectForScripting = this;
            this.WbrCommentList.ObjectForScripting = this;
            this.WbrMovesList.DocumentText = "<html><head><title>Blank</title></head><body style=\"background-color:#1E3D46;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;\"><a href=\"#\" onclick=\"window.external.TestWoW();\" id=\"s1\"></a></body></html>";
            this.WbrCommentList.DocumentText = "<html><head><title>Blank</title></head><body style=\"background-color:#1E3D46;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;\"></body></html>";
        }
Example #2
0
        public FrmMain()
        {
            this.enableSound = true;
            this.gameBoard   = new BoardStatus();
            this.replayBoard = new BoardStatus();
            this.gCtrl       = new GameController(this, this.gameBoard, this.replayBoard);
            this.mCtrl       = new MoveController(this.gCtrl);
            this.network     = new GameNetwork(this.gCtrl);

            CheckForIllegalCrossThreadCalls = false;
            InitializeComponent();

            this.Board.Game = this.gameBoard;
            this.SetInfoText(initInfoText);
            this.FixLinkLableTabStop();

            this.WbrMovesList.ObjectForScripting   = this;
            this.WbrCommentList.ObjectForScripting = this;
            this.WbrMovesList.DocumentText         = "<html><head><title>Blank</title></head><body style=\"background-color:#1E3D46;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;\"><a href=\"#\" onclick=\"window.external.TestWoW();\" id=\"s1\"></a></body></html>";
            this.WbrCommentList.DocumentText       = "<html><head><title>Blank</title></head><body style=\"background-color:#1E3D46;overflow-y:auto;overflow-x:hidden;margin:0;padding:0;\"></body></html>";
        }
Example #3
0
 public GameController(FrmMain game, BoardStatus gameBoard, BoardStatus replayBoard)
 {
     this.game        = game;
     this.gameBoard   = gameBoard;
     this.replayBoard = replayBoard;
 }
Example #4
0
 public GameController(FrmMain game, BoardStatus gameBoard, BoardStatus replayBoard)
 {
     this.game = game;
     this.gameBoard = gameBoard;
     this.replayBoard = replayBoard;
 }