/// <summary> /// Set reference to externally created ChessForm /// </summary> /// <param name="TehChessForm">Reference to chess form object</param> public void SetChessInterface(ChessForm TehChessForm) { _ChessInterface = TehChessForm; }
/// <summary> /// Creates a chessform /// </summary> /// <param name="TheChessGame">Pointer to the Chessgame</param> public void CreateChessForm(ChessGame TheChessGame) { ChessForm TheChessForm = new ChessForm(TheChessGame); TheChessForm.Show(); TheChessGame.SetChessInterface(TheChessForm); }
/// <summary> /// Create a ChessForm /// </summary> public void CreateChessInterface() { _ChessInterface = new ChessForm(this); _ChessInterface.Show(); }