Beispiel #1
0
        private void OnRemoveResource(RayTracerNet.ResourceObject resourceObject)
        {
            int i = 0;

            while (i < this.resourceListView.Items.Count)
            {
                ResourceListViewItem item = this.resourceListView.Items[i] as ResourceListViewItem;
                if (item != null && item.resObject == resourceObject)
                {
                    this.resourceListView.Items.RemoveAt(i);
                }
                else
                {
                    i++;
                }
            }
        }
Beispiel #2
0
 private void OnAddNewResource(RayTracerNet.ResourceObject resourceObject)
 {
     this.resourceListView.Items.Add(new ResourceListViewItem(resourceObject));
 }