private void List_Changed(Hashtable Displist)
{
DisplayList.Clear();
//string Delay = "0";
foreach (string iport in Displist.Keys)
{
Peer st = (Peer)Displist[iport];
string Username = st.mName;
string Delay;
if (st.mDelay == null)
Delay = "0";
else
Delay = st.mDelay;
string conMsg = Username + " | " + iport + " | Delay: " + Delay;
//if (DisplayList.Count < Displist.Count)
//{
// if (!DisplayList.Contains(conMsg))
// {
// DisplayList.Add(conMsg);
// }
//}
//else if (DisplayList.Count > Displist.Count)
//{
// DisplayList.Clear();
// DisplayList.Add(conMsg);
//}
DisplayList.Add(conMsg);
}
if (ListChanged != null)
ListChanged(DisplayList);
}
private void Chat_Changed(string Username,string ChatMessage)