Ejemplo n.º 1
0
        private void ButtonItem43_Click(object sender, EventArgs e)
        {
            var itemsToRemove = new List <ListViewItem>();

            foreach (ListViewItem item in ListViewEx_LM_ScrollTexList.SelectedItems)
            {
                ScrollTexPropertyClass scrollTex = (ScrollTexPropertyClass)item.Tag;
                cArea.ScrollingTextures.Remove(scrollTex.ScrollingTexture);
                itemsToRemove.Add(item);
            }

            foreach (ListViewItem item in itemsToRemove)
            {
                ListViewEx_LM_ScrollTexList.Items.Remove(item);
            }
            ScrollTexRemoved?.Invoke(this, new EventArgs());
        }
Ejemplo n.º 2
0
        private void UpdateAllListViewItems()
        {
            int counter = 1;

            foreach (ListViewItem item in ListViewEx_LM_ScrollTexList.Items)
            {
                ScrollTexPropertyClass scrollTex = (ScrollTexPropertyClass)item.Tag;
                SetLvGroup(item, scrollTex.GroupID);
                item.SubItems[0].Text = Conversions.ToString(counter);
                item.SubItems[1].Text = scrollTex.Behavior.ToString();
                item.SubItems[2].Text = scrollTex.Type.ToString();
                item.SubItems[3].Text = Conversions.ToString(scrollTex.CycleDuration);
                item.SubItems[4].Text = Conversions.ToString(scrollTex.ScrollingSpeed);
                item.SubItems[5].Text = Conversions.ToString(TextValueConverter.ValueFromText(Conversions.ToString(scrollTex.VertexPointer)));
                item.SubItems[6].Text = Conversions.ToString(scrollTex.FacesCount);
                counter += 1;
            }
        }