示例#1
0
 //---
 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());
     }
 }
示例#2
0
 //---
 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);
     }
 }
示例#3
0
        //---
        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());
        }