示例#1
0
        private bool login()
        {
            bool bStatus = true;

            if (!m_bLoggedIn)
            {
                if (m_voipclient.DoLogin(_strDM, _strConaitoServerPasswd))
                {
                    richTextBoxLog.AppendText(String.Format("Login for {0} succeeded\n", _strDM));
                    m_iUserId   = m_voipclient.GetMyUserID();
                    m_bLoggedIn = true;
                    // Get the root channel
                    AddChannel(0);
                }
                else
                {
                    if (kbDEBUG)
                    {
                        logDebugOnly(String.Format("Login for {0} failed with password {1}\n", _strDM, _strConaitoServerPasswd));
                    }
                    else
                    {
                        richTextBoxLog.AppendText(String.Format("Login for {0} failed\n", _strDM));
                    }
                    bStatus = false;
                }
            }
            updateButtonStates();
            return(bStatus);
        }
示例#2
0
        private bool login()
        {
            bool bStatus = true;

            if (!m_bLoggedIn)
            {
                if (m_voipclient.DoLogin(_strDM, _strConaitoServerPasswd))
                {
                    //richTextBoxLog.AppendText(String.Format("Login for {0} succeeded\n", _strDM));
                    m_iUserId   = m_voipclient.GetMyUserID();
                    m_bLoggedIn = true;
                    // Get the root channel
                    //AddChannel(0);
                }
                else
                {
                    bStatus = false;
                }
            }
            //updateButtonStates();
            return(bStatus);
        }