public void DeleteColorItem(int index) { if (ColorClassList.Count > index && ColorClassList.Count > 0) { ColorClassList.RemoveAt(index); SaveColorsList(); } }
public void AddColorItem(int index, string hexString, string nameString) { if (ColorClassList.Count > index || ColorClassList.Count == 0) { ColorClassList.Insert(0, new ColorClass(NextID, hexString, nameString)); SaveColorsList(); } }