Permalink
Browse files

fixed: update for main info + chat nicknames

  • Loading branch information...
1 parent 72e6b85 commit 10d8d2a673c1eb88891477787d7277fd5c62ac58 seuffert committed Mar 14, 2011
Showing with 4 additions and 6 deletions.
  1. +4 −6 XBSlink/Form1.cs
View
@@ -642,16 +642,15 @@ private void updateMainInfo()
DateTime last_change_time = node_list.getLastChangeTime();
if (last_change_time > last_nodelist_update)
{
- updateMainInfoListview();
- updateChatUserList();
+ updateMainInfoListview(nodes);
+ updateChatUserList(nodes);
last_nodelist_update = last_change_time;
}
}
- private void updateChatUserList()
+ private void updateChatUserList( List<xbs_node> nodes )
{
listBox_chatUserList.Items.Clear();
- List<xbs_node> nodes = node_list.getXBSNodeListCopy();
label_num_persons_in_chat.Text = nodes.Count.ToString();
foreach (xbs_node node in nodes)
{
@@ -660,10 +659,9 @@ private void updateChatUserList()
}
- private void updateMainInfoListview()
+ private void updateMainInfoListview(List<xbs_node> nodes )
{
listView_nodes.Items.Clear();
- List<xbs_node> nodes = node_list.getXBSNodeListCopy();
foreach (xbs_node node in nodes)
{
ListViewItem lv_item = new ListViewItem(node.ip_public.ToString());

0 comments on commit 10d8d2a

Please sign in to comment.