Esempio n. 1
0
        public NetworkingWindow(Chess.MainChessWindow mainWindow)
        {
            InitializeComponent();

            _mainWindowHandle = mainWindow;
            _mainWindowHandle.chessMoveEvent     += _mainWindowHandle_chessMoveEvent;
            _mainWindowHandle.selectionMadeEvent += _mainWindowHandle_selectionMadeEvent;

            //Fonts and colours for main display window
            _systemFont   = new Font("Terminal", 11, FontStyle.Italic);
            _userFont     = new Font("Calisto MT", 11, FontStyle.Regular);
            _systemColor  = Color.Blue;
            _userColor    = Color.Black;
            _commandColor = Color.Cyan;

            _connected = false;
        }
Esempio n. 2
0
        public ChessClockWindow(Chess.MainChessWindow mainWindow)
        {
            _mainWindowHandle = mainWindow;

            InitializeComponent();
        }