Пример #1
0
        public void RemoveMaterial(string matID)
        {
            int index = Materials.FindIndex(m => m.ID.Equals(matID));

            if (index < 0)
            {
                Console.WriteLine("A material with that name does not exist.");
                return;
            }
            Materials.RemoveAt(index);
        }