コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: xxy1991/cozy
 private void b_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     string s = e.UserCount + "";
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: xqq/bililive_dm
        private void b_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
        {
//            logging("當前房間人數:" + e.UserCount);
//            AddDMText("當前房間人數", e.UserCount+"", true);
            //AddDMText(e.Danmaku.CommentUser, e.Danmaku.CommentText);
            if (this.CheckAccess())
            {
                OnlineBlock.Text = e.UserCount + "";
            }
            else
            {
                this.Dispatcher.BeginInvoke(new Action(() => OnlineBlock.Text = e.UserCount + ""));
            }
        }