private void 更新房间列表() { Thread T1 = new Thread(new ThreadStart(delegate { listBox.Items.Clear(); for (int i = 0; i < Roomlist.Count; i++) { if (getUriSteam.getBiliRoomId(Roomlist[i].RoomNumber) == "该房间未在直播") { Roomlist[i].Ty = false; listBox.Items.Add("[摸鱼中]○ " + Roomlist[i].Name + ":" + Roomlist[i].RoomNumber); } else { if (!Roomlist[i].Ty) { //设置后台气泡提示 string 标题 = getUriSteam.获取网页标题(Roomlist[i].RoomNumber); if (!初次启动判断) { DDTV.ShowBalloonTip(3000, Roomlist[i].Name + " 开始直播了", 标题, ToolTipIcon.Info); } Roomlist[i].Ty = !Roomlist[i].Ty; } listBox.Items.Add("[直播中]● " + Roomlist[i].Name + ":" + Roomlist[i].RoomNumber); } } 初次启动判断 = false; })); T1.IsBackground = true; T1.Start(); }
/// <summary> /// 后台系统提示气泡 /// </summary> /// <param name="标题"></param> /// <param name="Text"></param> /// <param name="time"></param> private void BackMessage(string 标题, string Text, int time) { DDTV.ShowBalloonTip(time, Text, 标题, ToolTipIcon.Info); }