Example #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();
            }
Example #2
0
File: Model.cs Project: Ring-r/opt
 public void Add(TripleClass triple)
 {
     triple.prev = this;
     triple.next = this.next;
     triple.prev.next = triple;
     triple.next.prev = triple;
 }
Example #3
0
File: Model.cs Project: Ring-r/opt
 public TripleClass()
 {
     prev = this;
     next = this;
 }
Example #4
0
File: Model.cs Project: Ring-r/opt
 public void Reset()
 {
     current = start;
 }
Example #5
0
File: Model.cs Project: Ring-r/opt
 public bool MoveNext()
 {
     current = current.next;
     return current != start;
 }
Example #6
0
File: Model.cs Project: Ring-r/opt
 public Enumerator(TripleClass triple)
 {
     start = triple;
     current = triple;
 }
Example #7
0
File: Model.cs Project: Ring-r/opt
 public void Del()
 {
     prev.next = next;
     next.prev = prev;
     prev = this;
     next = this;
 }