private void RefreshOnlineUsersMethod(List <string> Users) { OnlineUsers.Clear(); foreach (var x in Users) { OnlineUsers.AppendText("● " + x + "\r" + "\n"); } return; }
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); } }