Exemple #1
0
        public void Clear()
        {
            if (AffixedLikesListView.InvokeRequired)
            {
                AffixedLikesListView.Invoke(new MethodInvoker(delegate { AffixedLikesListView.Items.Clear(); }));
            }
            else
            {
                AffixedLikesListView.Items.Clear();
            }

            AffixedLikesListView.Items.Clear();
            affixedLikesUsersList.Clear();
        }
Exemple #2
0
        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
                }));
            }
        }