예제 #1
0
 private void RefreshOnlineUsersMethod(List <string> Users)
 {
     OnlineUsers.Clear();
     foreach (var x in Users)
     {
         OnlineUsers.AppendText("● " + x + "\r" + "\n");
     }
     return;
 }
예제 #2
0
 private void UpdateConnectedUser(List <ShareLibrary.Models.Client> onlineClients)
 {
     OnlineUsers.Clear();
     foreach (ShareLibrary.Models.Client onlineClient in onlineClients)
     {
         OnlineUsers.SelectionColor = onlineClient.LastSeen.AddMinutes(2) < DateTime.Now ? Color.DarkOrange : Color.Green;
         OnlineUsers.AppendText(onlineClient.Name + Environment.NewLine);
     }
 }