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); }
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); }