Пример #1
0
        private void addMaterialLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            MaterialsGUI gui = new MaterialsGUI(new Material());

            if (gui.ShowDialog(this) == DialogResult.OK)
            {
                currentMaterial = gui.Material;
                MaterialManager.Instance.Materials[currentMaterial.Name] = currentMaterial;
                UpdateMaterialsComboBox();
            }
        }
Пример #2
0
 private void addMaterialLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     MaterialsGUI gui = new MaterialsGUI(new Material());
     if (gui.ShowDialog(this) == DialogResult.OK)
     {
         currentMaterial = gui.Material;
         MaterialManager.Instance.Materials[currentMaterial.Name] = currentMaterial;
         UpdateMaterialsComboBox();
     }
 }