//--- public void add(ICO ic) { if (isGoodName(ic.Name) < 0) { data.Add(ic); data[data.Count - 1].eventData_Change += new ICO.data_Change(change_ICO_Item_Sequence); change = true; eventIcoSequence_Change?.Invoke(this, new EventArgs()); } }
//--- public void insert(int ind, ICO ic) { if (testIndex(ind) == false) { return; } if (isGoodName(ic.Name) < 0) { data.Insert(ind, ic); change = true; eventIcoSequence_Change?.Invoke(this, new EventArgs()); ic.eventData_Change += new ICO.data_Change(change_ICO_Item_Sequence); } }
//--- public void down(int ind) { if (ind == 0) { ind = -1; } if (testIndex(ind) == false) { return; } ICO temp = data[ind]; data.RemoveAt(ind); data.Insert(ind - 1, temp); change = true; eventIcoSequence_Change?.Invoke(this, new EventArgs()); }