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