Beispiel #1
0
        private bool ExecuteStep2CheckUsernameAvailability()
        {
            m_Server.Start();
            var step2Ok    = m_Server.CheckUsernameAvailable(m_Username);
            var step2Retry = true;

            while (!step2Ok && step2Retry)
            {
                var form2 = new NameUsedForm(m_Username);
                form2.ShowDialog();
                step2Retry = form2.OK;
                m_Username = form2.PlayerName;
                step2Ok    = m_Server.CheckUsernameAvailable(m_Username);
            }
            return(step2Ok);
        }
 private bool ExecuteStep2CheckUsernameExistence()
 {
     m_Server.Start();
     return(!m_Server.CheckUsernameAvailable(m_Username));
 }