Exemple #1
0
        void UpdateUser()
        {
            User user = new User();

            if (ttclient.GetUser(userid, ref user))
            {
                useridTextBox.Text     = user.nUserID.ToString();
                nicknameTextBox.Text   = user.szNickname;
                usernameTextBox.Text   = user.szUsername;
                statusmodeTextBox.Text = user.nStatusMode.ToString();
                statusmsgTextBox.Text  = user.szStatusMsg;
                usertypeTextBox.Text   = (user.uUserType & UserType.USERTYPE_ADMIN) == UserType.USERTYPE_ADMIN ? "Admin" : "Default";
                versionTextBox.Text    = user.uVersion.ToString();
            }
            UserStatistics stats = new UserStatistics();

            if (ttclient.GetUserStatistics(userid, ref stats))
            {
                audiolossTextBox.Text = String.Format("{0}/{1}", stats.nVoicePacketsLost, stats.nVoicePacketsRecv + stats.nVoicePacketsLost);
                videolossTextBox.Text = String.Format("{0}/{1}", stats.nVideoCaptureFramesLost, stats.nVideoCaptureFramesRecv + stats.nVideoCaptureFramesLost);
            }
        }