Esempio n. 1
0
        private void ConnectToServer()
        {
            ResetBackgroundColors();

            var invalidControlName = _adminCreds.Validate();

            if (invalidControlName == null)
            {
                // the form validates ok
                // start connecting
                connectBtn.IsEnabled = false;
                _networkHandler.StartConnectionSequence();
            }
            else
            {
                // invalid form
                MarkProblem(invalidControlName);
                _log.StatusError("Check the marked field!");
            }
        }