Exemple #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();
            }
Exemple #2
0
 public void Add(TripleClass triple)
 {
     triple.prev = this;
     triple.next = this.next;
     triple.prev.next = triple;
     triple.next.prev = triple;
 }
Exemple #3
0
 public TripleClass()
 {
     prev = this;
     next = this;
 }
Exemple #4
0
 public void Reset()
 {
     current = start;
 }
Exemple #5
0
 public bool MoveNext()
 {
     current = current.next;
     return current != start;
 }
Exemple #6
0
 public Enumerator(TripleClass triple)
 {
     start = triple;
     current = triple;
 }
Exemple #7
0
 public void Del()
 {
     prev.next = next;
     next.prev = prev;
     prev = this;
     next = this;
 }