public void RemoveJewelry() { Jewelries.Remove(SomeJewelry); GetCollections(); if ((JewelryType.Count > 0 && SomeJewelry.Type.NameOfJewerly == JewelryType[0].Type.NameOfJewerly) || JewelryType.Equals(Jewelries)) { JewelryType.Remove(SomeJewelry); } }
public void RedactJewelry() { Jewelry jewelry = new Jewelry(); jewelry = SomeJewelry; RemoveJewelry(); Jewelries.Add(jewelry); GetCollections(); if ((JewelryType.Count > 0 && jewelry.Type.NameOfJewerly == JewelryType[0].Type.NameOfJewerly) || JewelryType.Equals(Jewelries)) { JewelryType.Add(SomeJewelry); } }