예제 #1
0
파일: Bond.cs 프로젝트: Hamsand/Swf2XNA
 public void InsertBefore(Bond front)
 {
     if (front.Previous != null)
     {
         Bond back = front.Previous;
         this.Next = front;
         this.Previous = back;
         back.Next = this;
         front.Previous = this;
     }
     else
     {
         this.Previous = null;
         this.Next = front;
         front.Previous = this;
     }
 }
예제 #2
0
파일: Bond.cs 프로젝트: Hamsand/Swf2XNA
 public void InsertAfter(Bond back)
 {
     if (back.Next != null)
     {
         Bond front = back.Previous;
         this.Next = front;
         this.Previous = back;
         back.Next = this;
         front.Previous = this;
     }
     else
     {
         this.Previous = back;
         this.Next = null;
         back.Next = this;
     }
 }