示例#1
0
 private void SetMaterials(EDObject obj, CheckedListBox box)
 {
     for (int i = 0; i < box.Items.Count; i++)
     {
         string item = (string)box.Items[i];
         MaterialEnum mat = obj.MaterialFromString(item);
         box.SetItemChecked(i, obj.materials[mat]);
     }
 }