Beispiel #1
0
            private void miClear_Click(object sender, EventArgs e)
            {
                length = 0;
                height = 0;
                circles = new List<Circle>();
                placed_circles = new List<Circle>();
                current_index = 0;

                triple = new TripleClass();

                Invalidate();
            }
Beispiel #2
0
 public void Add(TripleClass triple)
 {
     triple.prev = this;
     triple.next = this.next;
     triple.prev.next = triple;
     triple.next.prev = triple;
 }
Beispiel #3
0
 public TripleClass()
 {
     prev = this;
     next = this;
 }
Beispiel #4
0
 public void Reset()
 {
     current = start;
 }
Beispiel #5
0
 public bool MoveNext()
 {
     current = current.next;
     return current != start;
 }
Beispiel #6
0
 public Enumerator(TripleClass triple)
 {
     start = triple;
     current = triple;
 }
Beispiel #7
0
 public void Del()
 {
     prev.next = next;
     next.prev = prev;
     prev = this;
     next = this;
 }