Beispiel #1
0
 public static void Add(this Control.ControlCollection controls, ConnectionMenu connectionMenu)
 {
     controls.Add(connectionMenu.HostLabel);
     controls.Add(connectionMenu.HostTextBox);
     controls.Add(connectionMenu.PortLabel);
     controls.Add(connectionMenu.PortTextBox);
     controls.Add(connectionMenu.StartStopWaitingConnectionBtn);
     controls.Add(connectionMenu.ReturnToMenuBtn2);
 }
Beispiel #2
0
        public Form1()
        {
            chessUILogic = new ChessUILogic(this);

            gameControls   = new GameControls(chessUILogic);
            connectionMenu = new ConnectionMenu(chessUILogic);
            gameMenu       = new GameMenu(chessUILogic);

            Controls.Add(gameControls);
            Controls.Add(connectionMenu);
            Controls.Add(gameMenu);

            InitializeComponent();
        }