コード例 #1
0
 private bool ExecuteStep2Identifying()
 {
     m_Server.Start();
     var isOk = m_Server.Identify(m_PlayerName);
     var retry = true;
     while (!isOk && retry)
     {
         var form2 = new NameUsedForm(m_PlayerName);
         form2.ShowDialog();
         retry = form2.OK;
         m_PlayerName = form2.PlayerName;
         isOk = m_Server.Identify(m_PlayerName);
     }
     return isOk;
 }
コード例 #2
0
 private bool ExecuteStep3CheckDisplaynameAvailability()
 {
     var step3Ok = m_Server.CheckDisplayNameAvailable(m_DisplayName);
     var step3Retry = true;
     while (!step3Ok && step3Retry)
     {
         var form3 = new NameUsedForm(m_DisplayName);
         form3.ShowDialog();
         step3Retry = form3.OK;
         m_DisplayName = form3.PlayerName;
         step3Ok = m_Server.CheckDisplayNameAvailable(m_DisplayName);
     }
     return step3Ok;
 }
コード例 #3
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;
 }