Exemplo n.º 1
0
 public void shouldFindLayoutStartSector()
 {
     ChronodexList cl = new ChronodexList(dayData_complex);
     Assert.AreEqual(expected: "1530",
         actual: cl.findLayoutStartingSector().StartTime);
 }
Exemplo n.º 2
0
 static void LayoutChronodex(ChronodexList cl, Graphics go)
 {
     // find closest to Zero grad angle
     var cs = cl.findLayoutStartingSector();
     do {
         if (cl.Descriptions.ContainsKey(cl.getCurrent().Description)) {
             cl.getCurrent().LabelRectangle = cl.Descriptions[cl.getCurrent().Description].LabelRectangle;
             cl.getCurrent().CalloutEnd = cl.Descriptions[cl.getCurrent().Description].CalloutEnd;
         } else {
             cl.getCurrent().LayoutRespecting(go, cl.getPrevious());
             cl.Descriptions.Add(cl.getCurrent().Description, cl.getCurrent());
         }
         cl.moveForward();
     } while (cl.getCurrent() != cs);
 }