public void Clear() { if (AffixedLikesListView.InvokeRequired) { AffixedLikesListView.Invoke(new MethodInvoker(delegate { AffixedLikesListView.Items.Clear(); })); } else { AffixedLikesListView.Items.Clear(); } AffixedLikesListView.Items.Clear(); affixedLikesUsersList.Clear(); }
public void DisplayOnTheScreenUserList(AffixedLikesUser affixedLikesUser) { affixedLikesUsersList.Add(affixedLikesUser); if (AffixedLikesListView.InvokeRequired) { AffixedLikesListView.Invoke(new MethodInvoker(delegate { AffixedLikesListView.Items.Add(new ListViewItem(new string[] { affixedLikesUser?.UserName, affixedLikesUser?.UrlMedia, affixedLikesUser?.Text })); })); } else { AffixedLikesListView.Items.Add(new ListViewItem(new string[] { affixedLikesUser?.UserName, affixedLikesUser?.UrlMedia, affixedLikesUser?.Text })); } }