示例#1
0
 public void DeleteColorItem(int index)
 {
     if (ColorClassList.Count > index && ColorClassList.Count > 0)
     {
         ColorClassList.RemoveAt(index);
         SaveColorsList();
     }
 }
示例#2
0
 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();
     }
 }