public void SetAllControlsDisplay() { StringWriter writer = new StringWriter(); bool success = controller.LoadInitialFile(TestUtil.GetTestFile("selectionmgr\\sampleevent3.coursescribe"), true); Assert.IsTrue(success); selectionMgr.SelectCourseView(Designator(1)); CourseLayout course = selectionMgr.CourseLayout; course.Dump(writer); Assert.AreEqual( @" Start: control:1 course-control:1 scale:1 location:(5,0) orientation:333.43 Leg: control:1 course-control:1 scale:1 course-control2:2 path:N(6.81,3.61)--N(8.74,7.47) Control: control:2 course-control:2 scale:1 location:(10,10) gaps: Leg: control:2 course-control:2 scale:1 course-control2:3 path:N(11.36,7.52)--N(28.7,-24.19) Finish: control:6 course-control:3 scale:1 location:(30.3,-27.11) gaps: ControlNumber: control:2 course-control:2 scale:1 text:1 top-left:(7.54,20.12) font-name:Roboto font-style:Regular font-height:5.57 ", writer.ToString()); selectionMgr.SetAllControlsDisplay(true, ControlPointKind.None); writer = new StringWriter(); course = selectionMgr.CourseLayout; course.Dump(writer); Assert.AreEqual( @" Start: control:1 course-control:1 scale:1 location:(5,0) orientation:333.43 Leg: control:1 course-control:1 scale:1 course-control2:2 path:N(6.81,3.61)--N(8.74,7.47) Control: control:2 course-control:2 scale:1 location:(10,10) gaps: Leg: control:2 course-control:2 scale:1 course-control2:3 path:N(11.36,7.52)--N(28.7,-24.19) Finish: control:6 course-control:3 scale:1 location:(30.3,-27.11) gaps: ControlNumber: control:2 course-control:2 scale:1 text:1 top-left:(7.54,20.12) font-name:Roboto font-style:Regular font-height:5.57 Start: layer:12 control:7 scale:1 location:(0,5) orientation:0 Control: layer:12 control:3 scale:1 location:(20,-10.5) gaps:56.25:67.5 Control: layer:12 control:4 scale:1 location:(35.4,-22.5) gaps: Code: layer:12 control:3 scale:1 text:32 top-left:(12.79,-10.93) font-name:Roboto Condensed font-style:Bold font-height:4.18 Code: layer:12 control:4 scale:1 text:GO top-left:(38.29,-16.89) font-name:Roboto Condensed font-style:Bold font-height:4.18 ", writer.ToString()); selectionMgr.SetAllControlsDisplay(true, ControlPointKind.Start); writer = new StringWriter(); course = selectionMgr.CourseLayout; course.Dump(writer); Assert.AreEqual( @" Start: control:1 course-control:1 scale:1 location:(5,0) orientation:333.43 Leg: control:1 course-control:1 scale:1 course-control2:2 path:N(6.81,3.61)--N(8.74,7.47) Control: control:2 course-control:2 scale:1 location:(10,10) gaps: Leg: control:2 course-control:2 scale:1 course-control2:3 path:N(11.36,7.52)--N(28.7,-24.19) Finish: control:6 course-control:3 scale:1 location:(30.3,-27.11) gaps: ControlNumber: control:2 course-control:2 scale:1 text:1 top-left:(7.54,20.12) font-name:Roboto font-style:Regular font-height:5.57 Start: layer:12 control:7 scale:1 location:(0,5) orientation:0 ", writer.ToString()); selectionMgr.SetAllControlsDisplay(false, ControlPointKind.None); writer = new StringWriter(); course = selectionMgr.CourseLayout; course.Dump(writer); Assert.AreEqual( @" Start: control:1 course-control:1 scale:1 location:(5,0) orientation:333.43 Leg: control:1 course-control:1 scale:1 course-control2:2 path:N(6.81,3.61)--N(8.74,7.47) Control: control:2 course-control:2 scale:1 location:(10,10) gaps: Leg: control:2 course-control:2 scale:1 course-control2:3 path:N(11.36,7.52)--N(28.7,-24.19) Finish: control:6 course-control:3 scale:1 location:(30.3,-27.11) gaps: ControlNumber: control:2 course-control:2 scale:1 text:1 top-left:(7.54,20.12) font-name:Roboto font-style:Regular font-height:5.57 ", writer.ToString()); }