示例#1
0
        public void 持续读取弹幕放入弹幕list(string RoomId)
        {
            Thread T1 = new Thread(new ThreadStart(delegate {
                while (true)
                {
                    MMPU.getbalabala(RoomId);
                    Thread.Sleep(1000);
                }
            }));

            T1.IsBackground = true;
            T1.Start();
        }
示例#2
0
        public void 持续读取弹幕放入弹幕list(string RoomId, int Fid)
        {
            Thread T1 = new Thread(new ThreadStart(delegate {
                while (true)
                {
                    try
                    {
                        MMPU.getbalabala(RoomId, Fid);
                    }
                    catch (Exception ex)
                    {
                        //MessageBox.Show(ex.ToString());
                    }
                    Thread.Sleep(1500);
                }
            }));

            T1.IsBackground = true;
            T1.Start();
        }