예제 #1
0
        public void ConnectInsert(ConnectedList <TItemType, TSourceType> list, int pos)
        {
            if (IsConnected)
            {
                Debugger.Break();
                return;
            }

            list.Insert(this, pos);
        }
예제 #2
0
        public void Connect(ConnectedList <TItemType, TSourceType> list)
        {
            if (IsConnected)
            {
                Debugger.Break();
                return;
            }

            list.Add(this);
        }
예제 #3
0
 public override void BeforeAdd(ConnectedList <TItemType, TSourceType> newList, int newPosition)
 {
     connectedList = newList;
     position      = newPosition;
 }
예제 #4
0
 public override void BeforeRemove()
 {
     connectedList = null;
     position      = -1;
 }
예제 #5
0
 public EnumeratorType(ConnectedList <TItemType, TSourceType> list)
 {
     this.list = list;
 }