Beispiel #1
0
        private void b_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
        {
//            logging("當前房間人數:" + e.UserCount);
//            AddDMText("當前房間人數", e.UserCount+"", true);
            //AddDMText(e.Danmaku.CommentUser, e.Danmaku.CommentText);
            if (CheckAccess())
            {
                OnlineBlock.Text = e.UserCount + "";
            }
            else
            {
                Dispatcher.BeginInvoke(new Action(() => { OnlineBlock.Text = e.UserCount + ""; }));
            }
            foreach (var dmPlugin in Plugins)
            {
                if (dmPlugin.Status)
                {
                    new Thread(() =>
                    {
                        try
                        {
                            dmPlugin.MainReceivedRoomCount(e);
                        }
                        catch (Exception ex)
                        {
                            Utils.PluginExceptionHandler(ex, dmPlugin);
                        }
                    }).Start();
                }
            }

            SendSSP("当前房间人数:" + e.UserCount);
        }
Beispiel #2
0
 private void CommentProvider_OnReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     _mw.Dispatcher.Invoke(() =>
     {
         _mw.ViewerCountStatus.Content = e.UserCount.ToString();
     });
 }
Beispiel #3
0
 private void b_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     MainThread.BeginInvokeOnMainThread(new Action(() =>
     {
         this.Title = "在线人数:" + e.UserCount;
     }));
 }
Beispiel #4
0
 private void Dl_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     base.RaiseEvent <BaseOnlineCountEvent>(
         new BaseOnlineCountEvent()
     {
         Count = (int)e.UserCount
     });
 }
Beispiel #5
0
 public void OnReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     if (Vars.ConnectionState)
     {
         return;
     }
     Vars.ConnectionState = true;
     Vars.RoomId          = Vars.UnknownIdMsg;
 }
Beispiel #6
0
 private void OnReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     if (!Status)
     {
         return;
     }
     foreach (var pipeServer in pipeServers)
     {
         if (pipeServer?.IsConnected == true)
         {
             var obj =
                 JObject.FromObject(new
                                    { User = "******", Comment = $"當前氣人值:{e.UserCount}", UserCount = e.UserCount });
             SendMsg(pipeServer, obj);
         }
     }
 }
 private void ReceiveRoomInfoHandler(object sender, ReceivedRoomCountArgs args)
 {
 }
Beispiel #8
0
 private void OnReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     return;
 }
Beispiel #9
0
 private void CommentProvider_OnReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     OnlineValue = e.UserCount.ToString();
     PropertyChange("OnlineValue");
 }
Beispiel #10
0
 internal static void ReceivedRoomCount(object _sender, ReceivedRoomCountArgs _args)
 {
     _roomCount = _args.UserCount.ToString();
     UpdateRoomCount(_roomCount.ToString());
 }
Beispiel #11
0
 public void OnReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     Vars.RoomCount = e.UserCount;
     Bridge.ALog("OnReceivedRoomCount: " + e.UserCount);
 }
        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 + "";
                   
                }));
            }
            foreach (var dmPlugin in Plugins)
            {
                if (dmPlugin.Status)
                new Thread(() => dmPlugin.MainReceivedRoomCount(e)).Start();
            }

            SendSSP("当前房间人数:" + e.UserCount);
        }
 private void func_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     UserCount = e.UserCount;
 }
Beispiel #14
0
 private void b_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     string s = e.UserCount + "";
 }
 private void B_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
     logging("count: " + e.UserCount.ToString());
 }
Beispiel #16
0
 private void Class1_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
 }
Beispiel #17
0
 private void DanMuJieMain_ReceivedRoomCount(object sender, ReceivedRoomCountArgs e)
 {
 }