Esempio n. 1
0
 public bool AddMaterial(Material material)
 {
     if (Materials.Contains(material))
     {
         return(false);
     }
     Materials.Add(material);
     return(true);
 }
        void OnMaterialAdded(object obj)
        {
            var material = obj as Material;

            var alreadyExists = Materials.Contains(material);

            if (alreadyExists)
            {
                return;
            }

            Materials.Add(material);
        }
Esempio n. 3
0
 public bool Contains(MaterialBrush item)
 {
     return(Materials.Contains(item));
 }