private void ButtonItem44_Click(object sender, EventArgs e) { var scrollTex = new ManagedScrollingTexture(); cArea.ScrollingTextures.Add(scrollTex); AddListViewItem(scrollTex); UpdateAllListViewItems(); ScrollTexAdded?.Invoke(this, new EventArgs()); }
private void AddListViewItem(ManagedScrollingTexture scrollTex) { var lvi = new ListViewItem(); lvi.Tag = new ScrollTexPropertyClass(scrollTex); for (int i = 1; i <= 6; i++) { var lvisub = new ListViewItem.ListViewSubItem(); lvi.SubItems.Add(lvisub); } ListViewEx_LM_ScrollTexList.Items.Add(lvi); }
public ScrollTexPropertyClass(ManagedScrollingTexture scrollTex) { ScrollingTexture = scrollTex; }