Ejemplo n.º 1
0
 //add lod
 private void button1_Click(object sender, EventArgs e)
 {
     thisekement.lodMats.Add(new Material.Lod());
     currentLod = thisekement.lodMats[thisekement.lodMats.Count - 1];
     currentSubSet = null;
     outMatLods();
     outLod();
     outSubSet();
 }
Ejemplo n.º 2
0
        //select lod
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex != -1)
            {
                currentLod = thisekement.lodMats[listBox1.SelectedIndex];
                currentSubSet = null;
                outLod();
                outSubSet();

            }
        }
Ejemplo n.º 3
0
 //del lod
 private void button4_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         thisekement.lodMats.RemoveAt(listBox1.SelectedIndex);
         currentSubSet = null;
         currentLod = null;
         outMatLods();
         outLod();
         outSubSet();
     }
 }