Example #1
0
        private void InitializeHandlers()
        {
            try
            {
                UiReferenceContainer uiRefContainer = new UiReferenceContainer
                                                      (
                    perfCpuTextBox,
                    perfRamTextBox,
                    logListBox,
                    mySqlServerTextBox,
                    mySqlPortNmrUpDown,
                    mySqlBaseTextBox,
                    mySqlUserTextBox,
                    mySqlPassTextBox,
                    mainTabControl,
                    mySqlInstallerCreateTablesCheckBox,
                    mySqlInstallerCreateDataCheckBox,
                    newAccLoginTextBox,
                    newAccPassTextBox,
                    newAccAccessLevelNmrUpDown,
                    newAccButton,
                    tcpIpTextBox,
                    tcpPortNumericUpDown
                                                      );

                _uiHandler   = UiHandler.GetInstance(uiRefContainer);
                _gameManager = GameManager.GetInstance(_uiHandler, _uiHandler, _uiHandler);
            }
            catch (Exception exception)
            {
                MessageBox.Show($"A method InitializeHandlers() throws an exception: {exception.Message}");
            }
        }