Beispiel #1
0
 /// <summary>
 /// </summary>
 /// <param name="data"></param>
 /// <param name="percentComplete"></param>
 protected void PostResults(object data, int percentComplete, bool completed)
 {
     if (_resultPostedHandler != null)
     {
         AsyncTaskManager.PostMessage(new AsyncTaskMessage(this, data, percentComplete, completed));
     }
 }
Beispiel #2
0
        public Form1()
        {
            this.SuspendLayout();
            CreateSquares();
            InitializeComponent();
            this.ResumeLayout(true);

            CreateDefaultBoard();
            //_blackPlayer = new SmartOthelloPlayer();
            _whitePlayer = new SmartOthelloPlayer();
            SyncBoardToUI();

            AsyncTaskManager.RegisterUIThread(this);
        }