MeasureListSetDialog.cs 100 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  1. using PaintDotNet.Annotation.Enum;
  2. using PaintDotNet.Base.SettingModel;
  3. using PaintDotNet.Base.CommTool;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.IO;
  10. using System.Linq;
  11. using System.Resources;
  12. using System.Text;
  13. using System.Threading.Tasks;
  14. using System.Windows.Forms;
  15. namespace PaintDotNet.Measuring
  16. {
  17. partial class MeasureListSetDialog : Form
  18. {
  19. #region 控件
  20. /// <summary>
  21. /// Required designer variable.
  22. /// </summary>
  23. private System.ComponentModel.IContainer components = null;
  24. /// <summary>
  25. /// Clean up any resources being used.
  26. /// </summary>
  27. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  28. protected override void Dispose(bool disposing)
  29. {
  30. if (disposing && (components != null))
  31. {
  32. components.Dispose();
  33. }
  34. base.Dispose(disposing);
  35. }
  36. #region Windows Form Designer generated code
  37. private void InitializeLanguageText()
  38. {
  39. System.Windows.Forms.TreeNode treeNode345 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawLine.Text"));
  40. System.Windows.Forms.TreeNode treeNode346 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureLength.Text"));
  41. System.Windows.Forms.TreeNode treeNode347 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHLine.Text"));
  42. System.Windows.Forms.TreeNode treeNode348 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVLine.Text"));
  43. System.Windows.Forms.TreeNode treeNode3488 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureDistanceLine.Text"));
  44. System.Windows.Forms.TreeNode treeNode349 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.LengthMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  45. treeNode345,
  46. treeNode346,
  47. treeNode347,
  48. treeNode348,
  49. treeNode3488});
  50. System.Windows.Forms.TreeNode treeNode350 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulLine.Text"));
  51. System.Windows.Forms.TreeNode treeNode351 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulHVLine.Text"));
  52. System.Windows.Forms.TreeNode treeNode352 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text"));
  53. System.Windows.Forms.TreeNode treeNode353 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulVLine.Text"));
  54. System.Windows.Forms.TreeNode treeNode354 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text"), new System.Windows.Forms.TreeNode[] {
  55. treeNode350,
  56. treeNode351,
  57. treeNode352,
  58. treeNode353});
  59. System.Windows.Forms.TreeNode treeNode355 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureBrokenLine.Text"));
  60. System.Windows.Forms.TreeNode treeNode356 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTraceCurve.Text"));
  61. System.Windows.Forms.TreeNode treeNode357 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawCurve.Text"));
  62. System.Windows.Forms.TreeNode treeNode358 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.CurveLength.Text"), new System.Windows.Forms.TreeNode[] {
  63. treeNode355,
  64. treeNode356,
  65. treeNode357});
  66. System.Windows.Forms.TreeNode treeNode359 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePLine.Text"));
  67. System.Windows.Forms.TreeNode treeNode360 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulPLine.Text"));
  68. System.Windows.Forms.TreeNode treeNode361 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHMulPLine.Text"));
  69. System.Windows.Forms.TreeNode treeNode362 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVMulPLine.Text"));
  70. System.Windows.Forms.TreeNode treeNode3591 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointHLine.Text"));
  71. System.Windows.Forms.TreeNode treeNode363 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.PointPerpendicular.Text"), new System.Windows.Forms.TreeNode[] {
  72. treeNode359,
  73. treeNode360,
  74. treeNode361,
  75. treeNode362,
  76. treeNode3591});
  77. System.Windows.Forms.TreeNode treeNode364 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureParallelLine.Text"));
  78. System.Windows.Forms.TreeNode treeNode365 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulParallelLine.Text"));
  79. System.Windows.Forms.TreeNode treeNode366 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHMulParallelLine.Text"));
  80. System.Windows.Forms.TreeNode treeNode367 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVMulParallelLine.Text"));
  81. System.Windows.Forms.TreeNode treeNode368 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.ParallelLines.Text"), new System.Windows.Forms.TreeNode[] {
  82. treeNode364,
  83. treeNode365,
  84. treeNode366,
  85. treeNode367});
  86. System.Windows.Forms.TreeNode treeNode369 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawClosedCurve.Text"));
  87. System.Windows.Forms.TreeNode treeNode370 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawPolygon.Text"));
  88. System.Windows.Forms.TreeNode treeNode371 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawRectangle.Text"));
  89. System.Windows.Forms.TreeNode treeNode372 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureRandRectangle.Text"));
  90. System.Windows.Forms.TreeNode treeNode373 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureSquare.Text"));
  91. System.Windows.Forms.TreeNode treeNode374 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureRandSquare.Text"));
  92. System.Windows.Forms.TreeNode treeNode375 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTracePolygon.Text"));
  93. System.Windows.Forms.TreeNode treeNode376 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.PolygonMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  94. treeNode369,
  95. treeNode370,
  96. treeNode371,
  97. treeNode372,
  98. treeNode373,
  99. treeNode374,
  100. treeNode375});
  101. System.Windows.Forms.TreeNode treeNode377 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureCircle.Text"));
  102. System.Windows.Forms.TreeNode treeNode378 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureInnerCircle.Text"));
  103. System.Windows.Forms.TreeNode treeNode379 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureOuterCircle.Text"));
  104. System.Windows.Forms.TreeNode treeNode380 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureDiameterCircle.Text"));
  105. System.Windows.Forms.TreeNode treeNode381 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointEdgeSize.Text"));
  106. System.Windows.Forms.TreeNode treeNode382 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointCenterSize.Text"));
  107. System.Windows.Forms.TreeNode treeNode3811 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointArcSize.Text"));
  108. System.Windows.Forms.TreeNode treeNode383 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.CircularMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  109. treeNode377,
  110. treeNode378,
  111. treeNode379,
  112. treeNode380,
  113. treeNode381,
  114. treeNode382,
  115. treeNode3811});
  116. System.Windows.Forms.TreeNode treeNode384 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureThreePointAngle.Text"));
  117. System.Windows.Forms.TreeNode treeNode385 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureFourPointAngle.Text"));
  118. System.Windows.Forms.TreeNode treeNode386 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureThreePointArc.Text"));
  119. System.Windows.Forms.TreeNode treeNode387 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.AngleMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  120. treeNode384,
  121. treeNode385,
  122. treeNode386});
  123. System.Windows.Forms.TreeNode treeNode3821 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureCenterCenterSize.Text"));
  124. System.Windows.Forms.TreeNode treeNode3822 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTwoLineVLDistance.Text"));
  125. System.Windows.Forms.TreeNode treeNode3831 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.RegistrationMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  126. treeNode3821,
  127. treeNode3822});
  128. System.Windows.Forms.TreeNode treeNode388 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawLine.Text"));
  129. System.Windows.Forms.TreeNode treeNode389 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureLength.Text"));
  130. System.Windows.Forms.TreeNode treeNode390 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHLine.Text"));
  131. System.Windows.Forms.TreeNode treeNode391 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVLine.Text"));
  132. System.Windows.Forms.TreeNode treeNode3911 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureDistanceLine.Text"));
  133. System.Windows.Forms.TreeNode treeNode392 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.LengthMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  134. treeNode388,
  135. treeNode389,
  136. treeNode390,
  137. treeNode391,
  138. treeNode3911});
  139. System.Windows.Forms.TreeNode treeNode393 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulLine.Text"));
  140. System.Windows.Forms.TreeNode treeNode394 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulHVLine.Text"));
  141. System.Windows.Forms.TreeNode treeNode395 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text"));
  142. System.Windows.Forms.TreeNode treeNode396 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulVLine.Text"));
  143. System.Windows.Forms.TreeNode treeNode397 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text"), new System.Windows.Forms.TreeNode[] {
  144. treeNode393,
  145. treeNode394,
  146. treeNode395,
  147. treeNode396});
  148. System.Windows.Forms.TreeNode treeNode398 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureBrokenLine.Text"));
  149. System.Windows.Forms.TreeNode treeNode399 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTraceCurve.Text"));
  150. System.Windows.Forms.TreeNode treeNode400 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawCurve.Text"));
  151. System.Windows.Forms.TreeNode treeNode401 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.CurveLength.Text"), new System.Windows.Forms.TreeNode[] {
  152. treeNode398,
  153. treeNode399,
  154. treeNode400});
  155. System.Windows.Forms.TreeNode treeNode402 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePLine.Text"));
  156. System.Windows.Forms.TreeNode treeNode403 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulPLine.Text"));
  157. System.Windows.Forms.TreeNode treeNode404 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHMulPLine.Text"));
  158. System.Windows.Forms.TreeNode treeNode405 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVMulPLine.Text"));
  159. System.Windows.Forms.TreeNode treeNode4021 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointHLine.Text"));
  160. System.Windows.Forms.TreeNode treeNode406 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.PointPerpendicular.Text"), new System.Windows.Forms.TreeNode[] {
  161. treeNode402,
  162. treeNode403,
  163. treeNode404,
  164. treeNode405,
  165. treeNode4021});
  166. System.Windows.Forms.TreeNode treeNode407 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureParallelLine.Text"));
  167. System.Windows.Forms.TreeNode treeNode408 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulParallelLine.Text"));
  168. System.Windows.Forms.TreeNode treeNode409 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHMulParallelLine.Text"));
  169. System.Windows.Forms.TreeNode treeNode410 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVMulParallelLine.Text"));
  170. System.Windows.Forms.TreeNode treeNode411 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.ParallelLines.Text"), new System.Windows.Forms.TreeNode[] {
  171. treeNode407,
  172. treeNode408,
  173. treeNode409,
  174. treeNode410});
  175. System.Windows.Forms.TreeNode treeNode412 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawClosedCurve.Text"));
  176. System.Windows.Forms.TreeNode treeNode413 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawPolygon.Text"));
  177. System.Windows.Forms.TreeNode treeNode414 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawRectangle.Text"));
  178. System.Windows.Forms.TreeNode treeNode415 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureRandRectangle.Text"));
  179. System.Windows.Forms.TreeNode treeNode416 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureSquare.Text"));
  180. System.Windows.Forms.TreeNode treeNode417 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureRandSquare.Text"));
  181. System.Windows.Forms.TreeNode treeNode418 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTracePolygon.Text"));
  182. System.Windows.Forms.TreeNode treeNode419 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.PolygonMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  183. treeNode412,
  184. treeNode413,
  185. treeNode414,
  186. treeNode415,
  187. treeNode416,
  188. treeNode417,
  189. treeNode418});
  190. System.Windows.Forms.TreeNode treeNode420 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureCircle.Text"));
  191. System.Windows.Forms.TreeNode treeNode421 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureInnerCircle.Text"));
  192. System.Windows.Forms.TreeNode treeNode422 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureOuterCircle.Text"));
  193. System.Windows.Forms.TreeNode treeNode423 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureDiameterCircle.Text"));
  194. System.Windows.Forms.TreeNode treeNode424 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointEdgeSize.Text"));
  195. System.Windows.Forms.TreeNode treeNode425 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointCenterSize.Text"));
  196. System.Windows.Forms.TreeNode treeNode4241 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointArcSize.Text"));
  197. System.Windows.Forms.TreeNode treeNode426 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.CircularMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  198. treeNode420,
  199. treeNode421,
  200. treeNode422,
  201. treeNode423,
  202. treeNode424,
  203. treeNode425,
  204. treeNode4241});
  205. System.Windows.Forms.TreeNode treeNode427 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureThreePointAngle.Text"));
  206. System.Windows.Forms.TreeNode treeNode428 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureFourPointAngle.Text"));
  207. System.Windows.Forms.TreeNode treeNode429 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureThreePointArc.Text"));
  208. System.Windows.Forms.TreeNode treeNode430 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.AngleMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  209. treeNode427,
  210. treeNode428,
  211. treeNode429});
  212. System.Windows.Forms.TreeNode treeNode4251 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureCenterCenterSize.Text"));
  213. System.Windows.Forms.TreeNode treeNode4252 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTwoLineVLDistance.Text"));
  214. System.Windows.Forms.TreeNode treeNode4261 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.RegistrationMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  215. treeNode4251,
  216. treeNode4252});
  217. System.Windows.Forms.TreeNode treeNode431 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawLine.Text"));
  218. System.Windows.Forms.TreeNode treeNode432 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureLength.Text"));
  219. System.Windows.Forms.TreeNode treeNode433 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHLine.Text"));
  220. System.Windows.Forms.TreeNode treeNode434 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVLine.Text"));
  221. System.Windows.Forms.TreeNode treeNode4344 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureDistanceLine.Text"));
  222. System.Windows.Forms.TreeNode treeNode435 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.LengthMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  223. treeNode431,
  224. treeNode432,
  225. treeNode433,
  226. treeNode434,
  227. treeNode4344});
  228. System.Windows.Forms.TreeNode treeNode436 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulLine.Text"));
  229. System.Windows.Forms.TreeNode treeNode437 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulHVLine.Text"));
  230. System.Windows.Forms.TreeNode treeNode438 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text"));
  231. System.Windows.Forms.TreeNode treeNode439 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulVLine.Text"));
  232. System.Windows.Forms.TreeNode treeNode440 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text"), new System.Windows.Forms.TreeNode[] {
  233. treeNode436,
  234. treeNode437,
  235. treeNode438,
  236. treeNode439});
  237. System.Windows.Forms.TreeNode treeNode441 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureBrokenLine.Text"));
  238. System.Windows.Forms.TreeNode treeNode442 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTraceCurve.Text"));
  239. System.Windows.Forms.TreeNode treeNode443 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawCurve.Text"));
  240. System.Windows.Forms.TreeNode treeNode444 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.CurveLength.Text"), new System.Windows.Forms.TreeNode[] {
  241. treeNode441,
  242. treeNode442,
  243. treeNode443});
  244. System.Windows.Forms.TreeNode treeNode445 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePLine.Text"));
  245. System.Windows.Forms.TreeNode treeNode446 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulPLine.Text"));
  246. System.Windows.Forms.TreeNode treeNode447 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHMulPLine.Text"));
  247. System.Windows.Forms.TreeNode treeNode448 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVMulPLine.Text"));
  248. System.Windows.Forms.TreeNode treeNode4451 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointHLine.Text"));
  249. System.Windows.Forms.TreeNode treeNode449 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.PointPerpendicular.Text"), new System.Windows.Forms.TreeNode[] {
  250. treeNode445,
  251. treeNode446,
  252. treeNode447,
  253. treeNode448,
  254. treeNode4451});
  255. System.Windows.Forms.TreeNode treeNode450 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureParallelLine.Text"));
  256. System.Windows.Forms.TreeNode treeNode451 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulParallelLine.Text"));
  257. System.Windows.Forms.TreeNode treeNode452 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHMulParallelLine.Text"));
  258. System.Windows.Forms.TreeNode treeNode453 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVMulParallelLine.Text"));
  259. System.Windows.Forms.TreeNode treeNode454 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.ParallelLines.Text"), new System.Windows.Forms.TreeNode[] {
  260. treeNode450,
  261. treeNode451,
  262. treeNode452,
  263. treeNode453});
  264. System.Windows.Forms.TreeNode treeNode455 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawClosedCurve.Text"));
  265. System.Windows.Forms.TreeNode treeNode456 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawPolygon.Text"));
  266. System.Windows.Forms.TreeNode treeNode457 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawRectangle.Text"));
  267. System.Windows.Forms.TreeNode treeNode458 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureRandRectangle.Text"));
  268. System.Windows.Forms.TreeNode treeNode459 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureSquare.Text"));
  269. System.Windows.Forms.TreeNode treeNode460 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureRandSquare.Text"));
  270. System.Windows.Forms.TreeNode treeNode461 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTracePolygon.Text"));
  271. System.Windows.Forms.TreeNode treeNode462 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.PolygonMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  272. treeNode455,
  273. treeNode456,
  274. treeNode457,
  275. treeNode458,
  276. treeNode459,
  277. treeNode460,
  278. treeNode461});
  279. System.Windows.Forms.TreeNode treeNode463 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureCircle.Text"));
  280. System.Windows.Forms.TreeNode treeNode464 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureInnerCircle.Text"));
  281. System.Windows.Forms.TreeNode treeNode465 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureOuterCircle.Text"));
  282. System.Windows.Forms.TreeNode treeNode466 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureDiameterCircle.Text"));
  283. System.Windows.Forms.TreeNode treeNode467 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointEdgeSize.Text"));
  284. System.Windows.Forms.TreeNode treeNode468 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointCenterSize.Text"));
  285. System.Windows.Forms.TreeNode treeNode4671 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointArcSize.Text"));
  286. System.Windows.Forms.TreeNode treeNode469 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.CircularMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  287. treeNode463,
  288. treeNode464,
  289. treeNode465,
  290. treeNode466,
  291. treeNode467,
  292. treeNode468,
  293. treeNode4671});
  294. System.Windows.Forms.TreeNode treeNode470 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureThreePointAngle.Text"));
  295. System.Windows.Forms.TreeNode treeNode471 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureFourPointAngle.Text"));
  296. System.Windows.Forms.TreeNode treeNode472 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureThreePointArc.Text"));
  297. System.Windows.Forms.TreeNode treeNode473 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.AngleMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  298. treeNode470,
  299. treeNode471,
  300. treeNode472});
  301. System.Windows.Forms.TreeNode treeNode4681 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureCenterCenterSize.Text"));
  302. System.Windows.Forms.TreeNode treeNode4682 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTwoLineVLDistance.Text"));
  303. System.Windows.Forms.TreeNode treeNode4691 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.RegistrationMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  304. treeNode4681,
  305. treeNode4682});
  306. System.Windows.Forms.TreeNode treeNode474 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawLine.Text"));
  307. System.Windows.Forms.TreeNode treeNode475 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureLength.Text"));
  308. System.Windows.Forms.TreeNode treeNode476 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHLine.Text"));
  309. System.Windows.Forms.TreeNode treeNode477 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVLine.Text"));
  310. System.Windows.Forms.TreeNode treeNode4777 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureDistanceLine.Text"));
  311. System.Windows.Forms.TreeNode treeNode478 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.LengthMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  312. treeNode474,
  313. treeNode475,
  314. treeNode476,
  315. treeNode477,
  316. treeNode4777});
  317. System.Windows.Forms.TreeNode treeNode479 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulLine.Text"));
  318. System.Windows.Forms.TreeNode treeNode480 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulHVLine.Text"));
  319. System.Windows.Forms.TreeNode treeNode481 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text"));
  320. System.Windows.Forms.TreeNode treeNode482 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulVLine.Text"));
  321. System.Windows.Forms.TreeNode treeNode483 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text"), new System.Windows.Forms.TreeNode[] {
  322. treeNode479,
  323. treeNode480,
  324. treeNode481,
  325. treeNode482});
  326. System.Windows.Forms.TreeNode treeNode484 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureBrokenLine.Text"));
  327. System.Windows.Forms.TreeNode treeNode485 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTraceCurve.Text"));
  328. System.Windows.Forms.TreeNode treeNode486 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawCurve.Text"));
  329. System.Windows.Forms.TreeNode treeNode487 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.CurveLength.Text"), new System.Windows.Forms.TreeNode[] {
  330. treeNode484,
  331. treeNode485,
  332. treeNode486});
  333. System.Windows.Forms.TreeNode treeNode488 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePLine.Text"));
  334. System.Windows.Forms.TreeNode treeNode489 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulPLine.Text"));
  335. System.Windows.Forms.TreeNode treeNode490 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHMulPLine.Text"));
  336. System.Windows.Forms.TreeNode treeNode491 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVMulPLine.Text"));
  337. System.Windows.Forms.TreeNode treeNode4881 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointHLine.Text"));
  338. System.Windows.Forms.TreeNode treeNode492 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.PointPerpendicular.Text"), new System.Windows.Forms.TreeNode[] {
  339. treeNode488,
  340. treeNode489,
  341. treeNode490,
  342. treeNode491,
  343. treeNode4881});
  344. System.Windows.Forms.TreeNode treeNode493 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureParallelLine.Text"));
  345. System.Windows.Forms.TreeNode treeNode494 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureMulParallelLine.Text"));
  346. System.Windows.Forms.TreeNode treeNode495 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureHMulParallelLine.Text"));
  347. System.Windows.Forms.TreeNode treeNode496 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureVMulParallelLine.Text"));
  348. System.Windows.Forms.TreeNode treeNode497 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.ParallelLines.Text"), new System.Windows.Forms.TreeNode[] {
  349. treeNode493,
  350. treeNode494,
  351. treeNode495,
  352. treeNode496});
  353. System.Windows.Forms.TreeNode treeNode498 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawClosedCurve.Text"));
  354. System.Windows.Forms.TreeNode treeNode499 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawPolygon.Text"));
  355. System.Windows.Forms.TreeNode treeNode500 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.LabelAction.DrawRectangle.Text"));
  356. System.Windows.Forms.TreeNode treeNode501 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureRandRectangle.Text"));
  357. System.Windows.Forms.TreeNode treeNode502 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureSquare.Text"));
  358. System.Windows.Forms.TreeNode treeNode503 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureRandSquare.Text"));
  359. System.Windows.Forms.TreeNode treeNode504 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTracePolygon.Text"));
  360. System.Windows.Forms.TreeNode treeNode505 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.PolygonMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  361. treeNode498,
  362. treeNode499,
  363. treeNode500,
  364. treeNode501,
  365. treeNode502,
  366. treeNode503,
  367. treeNode504});
  368. System.Windows.Forms.TreeNode treeNode506 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureCircle.Text"));
  369. System.Windows.Forms.TreeNode treeNode507 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureInnerCircle.Text"));
  370. System.Windows.Forms.TreeNode treeNode508 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureOuterCircle.Text"));
  371. System.Windows.Forms.TreeNode treeNode509 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureDiameterCircle.Text"));
  372. System.Windows.Forms.TreeNode treeNode510 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointEdgeSize.Text"));
  373. System.Windows.Forms.TreeNode treeNode511 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointCenterSize.Text"));
  374. System.Windows.Forms.TreeNode treeNode5101 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasurePointArcSize.Text"));
  375. System.Windows.Forms.TreeNode treeNode512 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.CircularMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  376. treeNode506,
  377. treeNode507,
  378. treeNode508,
  379. treeNode509,
  380. treeNode510,
  381. treeNode511,
  382. treeNode5101});
  383. System.Windows.Forms.TreeNode treeNode513 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureThreePointAngle.Text"));
  384. System.Windows.Forms.TreeNode treeNode514 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureFourPointAngle.Text"));
  385. System.Windows.Forms.TreeNode treeNode515 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureThreePointArc.Text"));
  386. System.Windows.Forms.TreeNode treeNode516 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.AngleMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  387. treeNode513,
  388. treeNode514,
  389. treeNode515});
  390. System.Windows.Forms.TreeNode treeNode5111 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureCenterCenterSize.Text"));
  391. System.Windows.Forms.TreeNode treeNode5112 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.MeasureTwoLineVLDistance.Text"));
  392. System.Windows.Forms.TreeNode treeNode5121 = new System.Windows.Forms.TreeNode(PdnResources.GetString("Menu.MeasureAction.RegistrationMeasurement.Text"), new System.Windows.Forms.TreeNode[] {
  393. treeNode5111,
  394. treeNode5112});
  395. treeNode345.Name = "MeasureLine";
  396. treeNode345.Text = PdnResources.GetString("Menu.LabelAction.DrawLine.Text");
  397. treeNode346.Name = "MeasureLength";
  398. treeNode346.Text = PdnResources.GetString("Menu.MeasureAction.MeasureLength.Text");
  399. treeNode347.Name = "MeasureHLine";
  400. treeNode347.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHLine.Text");
  401. treeNode348.Name = "MeasureVLine";
  402. treeNode348.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVLine.Text");
  403. treeNode3488.Name = "MeasureDistanceLine";
  404. treeNode3488.Text = PdnResources.GetString("Menu.MeasureAction.MeasureDistanceLine.Text");
  405. treeNode349.Name = PdnResources.GetString("Menu.node.Text") + "0";
  406. treeNode349.Text = PdnResources.GetString("Menu.MeasureAction.LengthMeasurement.Text");
  407. treeNode350.Name = "MeasureMulLine";
  408. treeNode350.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulLine.Text");
  409. treeNode351.Name = "MeasureMulHVLine";
  410. treeNode351.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulHVLine.Text");
  411. treeNode352.Name = "MeasureMulSegment";
  412. treeNode352.Text = PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text");
  413. treeNode353.Name = "MeasureMulVLine";
  414. treeNode353.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulVLine.Text");
  415. treeNode354.Name = PdnResources.GetString("Menu.node.Text") + "2";
  416. treeNode354.Text = PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text");
  417. treeNode355.Name = "MeasureBrokenLine";
  418. treeNode355.Text = PdnResources.GetString("Menu.MeasureAction.MeasureBrokenLine.Text");
  419. treeNode356.Name = "MeasureTraceCurve";
  420. treeNode356.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTraceCurve.Text");
  421. treeNode357.Name = "MeasureCurveLine";
  422. treeNode357.Text = PdnResources.GetString("Menu.LabelAction.DrawCurve.Text");
  423. treeNode358.Name = PdnResources.GetString("Menu.node.Text") + "4";
  424. treeNode358.Text = PdnResources.GetString("Menu.MeasureAction.CurveLength.Text");
  425. treeNode359.Name = "MeasurePLine";
  426. treeNode359.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePLine.Text");
  427. treeNode3591.Name = "MeasurePointHLine";
  428. treeNode3591.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointHLine.Text");
  429. treeNode360.Name = "MeasureMulPLine";
  430. treeNode360.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulPLine.Text");
  431. treeNode361.Name = "MeasureHMulPLine";
  432. treeNode361.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHMulPLine.Text");
  433. treeNode362.Name = "MeasureVMulPLine";
  434. treeNode362.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVMulPLine.Text");
  435. treeNode363.Name = PdnResources.GetString("Menu.node.Text") + "5";
  436. treeNode363.Text = PdnResources.GetString("Menu.MeasureAction.PointPerpendicular.Text");
  437. treeNode364.Name = "MeasureParallelLine";
  438. treeNode364.Text = PdnResources.GetString("Menu.MeasureAction.MeasureParallelLine.Text");
  439. treeNode365.Name = "MeasureMulParallelLine";
  440. treeNode365.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulParallelLine.Text");
  441. treeNode366.Name = "MeasureHMulParallelLine";
  442. treeNode366.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHMulParallelLine.Text");
  443. treeNode367.Name = "MeasureVMulParallelLine";
  444. treeNode367.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVMulParallelLine.Text");
  445. treeNode368.Name = PdnResources.GetString("Menu.node.Text") + "6";
  446. treeNode368.Text = PdnResources.GetString("Menu.MeasureAction.ParallelLines.Text");
  447. treeNode369.Name = "MeasureClosedCurve";
  448. treeNode369.Text = PdnResources.GetString("Menu.LabelAction.DrawClosedCurve.Text");
  449. treeNode370.Name = "MeasurePolygon";
  450. treeNode370.Text = PdnResources.GetString("Menu.LabelAction.DrawPolygon.Text");
  451. treeNode371.Name = "MeasureRectangle";
  452. treeNode371.Text = PdnResources.GetString("Menu.LabelAction.DrawRectangle.Text");
  453. treeNode372.Name = "MeasureRandRectangle";
  454. treeNode372.Text = PdnResources.GetString("Menu.MeasureAction.MeasureRandRectangle.Text");
  455. treeNode373.Name = "MeasureSquare";
  456. treeNode373.Text = PdnResources.GetString("Menu.MeasureAction.MeasureSquare.Text");
  457. treeNode374.Name = "MeasureRandSquare";
  458. treeNode374.Text = PdnResources.GetString("Menu.MeasureAction.MeasureRandSquare.Text");
  459. treeNode375.Name = "MeasureTracePolygon";
  460. treeNode375.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTracePolygon.Text");
  461. treeNode376.Name = PdnResources.GetString("Menu.node.Text") + "7";
  462. treeNode376.Text = PdnResources.GetString("Menu.MeasureAction.PolygonMeasurement.Text");
  463. treeNode377.Name = "MeasureCircle";
  464. treeNode377.Text = PdnResources.GetString("Menu.MeasureAction.MeasureCircle.Text");
  465. treeNode378.Name = "MeasureInnerCircle";
  466. treeNode378.Text = PdnResources.GetString("Menu.MeasureAction.MeasureInnerCircle.Text");
  467. treeNode379.Name = "MeasureOuterCircle";
  468. treeNode379.Text = PdnResources.GetString("Menu.MeasureAction.MeasureOuterCircle.Text");
  469. treeNode380.Name = "MeasureDiameterCircle";
  470. treeNode380.Text = PdnResources.GetString("Menu.MeasureAction.MeasureDiameterCircle.Text");
  471. treeNode381.Name = "MeasurePointEdgeSize";
  472. treeNode381.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointEdgeSize.Text");
  473. treeNode3811.Name = "MeasurePointArcSize";
  474. treeNode3811.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointArcSize.Text");
  475. treeNode382.Name = "MeasurePointCenterSize";
  476. treeNode382.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointCenterSize.Text");
  477. treeNode383.Name = PdnResources.GetString("Menu.node.Text") + "8";
  478. treeNode383.Text = PdnResources.GetString("Menu.MeasureAction.CircularMeasurement.Text");
  479. treeNode384.Name = "MeasureThreePointAngle";
  480. treeNode384.Text = PdnResources.GetString("Menu.MeasureAction.MeasureThreePointAngle.Text");
  481. treeNode385.Name = "MeasureFourPointAngle";
  482. treeNode385.Text = PdnResources.GetString("Menu.MeasureAction.MeasureFourPointAngle.Text");
  483. treeNode386.Name = "MeasureThreePointArc";
  484. treeNode386.Text = PdnResources.GetString("Menu.MeasureAction.MeasureThreePointArc.Text");
  485. treeNode387.Name = PdnResources.GetString("Menu.node.Text") + "9";
  486. treeNode387.Text = PdnResources.GetString("Menu.MeasureAction.AngleMeasurement.Text");
  487. treeNode3821.Name = "MeasureCenterCenterSize";
  488. treeNode3821.Text = PdnResources.GetString("Menu.MeasureAction.MeasureCenterCenterSize.Text");
  489. treeNode3822.Name = "MeasureTwoLineVLDistance";
  490. treeNode3822.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTwoLineVLDistance.Text");
  491. treeNode3831.Name = PdnResources.GetString("Menu.node.Text") + "10";
  492. treeNode3831.Text = PdnResources.GetString("Menu.MeasureAction.RegistrationMeasurement.Text");
  493. this.treeView4.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
  494. treeNode349,
  495. treeNode354,
  496. treeNode358,
  497. treeNode363,
  498. treeNode368,
  499. treeNode376,
  500. treeNode383,
  501. treeNode387,
  502. treeNode3831});
  503. treeNode388.Name = "MeasureLine";
  504. treeNode388.Text = PdnResources.GetString("Menu.LabelAction.DrawLine.Text");
  505. treeNode389.Name = "MeasureLength";
  506. treeNode389.Text = PdnResources.GetString("Menu.MeasureAction.MeasureLength.Text");
  507. treeNode390.Name = "MeasureHLine";
  508. treeNode390.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHLine.Text");
  509. treeNode391.Name = "MeasureVLine";
  510. treeNode391.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVLine.Text");
  511. treeNode3911.Name = "MeasureDistanceLine";
  512. treeNode3911.Text = PdnResources.GetString("Menu.MeasureAction.MeasureDistanceLine.Text");
  513. treeNode392.Name = PdnResources.GetString("Menu.node.Text") + "0";
  514. treeNode392.Text = PdnResources.GetString("Menu.MeasureAction.LengthMeasurement.Text");
  515. treeNode393.Name = "MeasureMulLine";
  516. treeNode393.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulLine.Text");
  517. treeNode394.Name = "MeasureMulHVLine";
  518. treeNode394.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulHVLine.Text");
  519. treeNode395.Name = "MeasureMulSegment";
  520. treeNode395.Text = PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text");
  521. treeNode396.Name = "MeasureMulVLine";
  522. treeNode396.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulVLine.Text");
  523. treeNode397.Name = PdnResources.GetString("Menu.node.Text") + "2";
  524. treeNode397.Text = PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text");
  525. treeNode398.Name = "MeasureBrokenLine";
  526. treeNode398.Text = PdnResources.GetString("Menu.MeasureAction.MeasureBrokenLine.Text");
  527. treeNode399.Name = "MeasureTraceCurve";
  528. treeNode399.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTraceCurve.Text");
  529. treeNode400.Name = "MeasureCurveLine";
  530. treeNode400.Text = PdnResources.GetString("Menu.LabelAction.DrawCurve.Text");
  531. treeNode401.Name = PdnResources.GetString("Menu.node.Text") + "4";
  532. treeNode401.Text = PdnResources.GetString("Menu.MeasureAction.CurveLength.Text");
  533. treeNode402.Name = "MeasurePLine";
  534. treeNode402.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePLine.Text");
  535. treeNode4021.Name = "MeasurePointHLine";
  536. treeNode4021.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointHLine.Text");
  537. treeNode403.Name = "MeasureMulPLine";
  538. treeNode403.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulPLine.Text");
  539. treeNode404.Name = "MeasureHMulPLine";
  540. treeNode404.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHMulPLine.Text");
  541. treeNode405.Name = "MeasureVMulPLine";
  542. treeNode405.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVMulPLine.Text");
  543. treeNode406.Name = PdnResources.GetString("Menu.node.Text") + "5";
  544. treeNode406.Text = PdnResources.GetString("Menu.MeasureAction.PointPerpendicular.Text");
  545. treeNode407.Name = "MeasureParallelLine";
  546. treeNode407.Text = PdnResources.GetString("Menu.MeasureAction.MeasureParallelLine.Text");
  547. treeNode408.Name = "MeasureMulParallelLine";
  548. treeNode408.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulParallelLine.Text");
  549. treeNode409.Name = "MeasureHMulParallelLine";
  550. treeNode409.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHMulParallelLine.Text");
  551. treeNode410.Name = "MeasureVMulParallelLine";
  552. treeNode410.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVMulParallelLine.Text");
  553. treeNode411.Name = PdnResources.GetString("Menu.node.Text") + "6";
  554. treeNode411.Text = PdnResources.GetString("Menu.MeasureAction.ParallelLines.Text");
  555. treeNode412.Name = "MeasureClosedCurve";
  556. treeNode412.Text = PdnResources.GetString("Menu.LabelAction.DrawClosedCurve.Text");
  557. treeNode413.Name = "MeasurePolygon";
  558. treeNode413.Text = PdnResources.GetString("Menu.LabelAction.DrawPolygon.Text");
  559. treeNode414.Name = "MeasureRectangle";
  560. treeNode414.Text = PdnResources.GetString("Menu.LabelAction.DrawRectangle.Text");
  561. treeNode415.Name = "MeasureRandRectangle";
  562. treeNode415.Text = PdnResources.GetString("Menu.MeasureAction.MeasureRandRectangle.Text");
  563. treeNode416.Name = "MeasureSquare";
  564. treeNode416.Text = PdnResources.GetString("Menu.MeasureAction.MeasureSquare.Text");
  565. treeNode417.Name = "MeasureRandSquare";
  566. treeNode417.Text = PdnResources.GetString("Menu.MeasureAction.MeasureRandSquare.Text");
  567. treeNode418.Name = "MeasureTracePolygon";
  568. treeNode418.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTracePolygon.Text");
  569. treeNode419.Name = PdnResources.GetString("Menu.node.Text") + "7";
  570. treeNode419.Text = PdnResources.GetString("Menu.MeasureAction.PolygonMeasurement.Text");
  571. treeNode420.Name = "MeasureCircle";
  572. treeNode420.Text = PdnResources.GetString("Menu.MeasureAction.MeasureCircle.Text");
  573. treeNode421.Name = "MeasureInnerCircle";
  574. treeNode421.Text = PdnResources.GetString("Menu.MeasureAction.MeasureInnerCircle.Text");
  575. treeNode422.Name = "MeasureOuterCircle";
  576. treeNode422.Text = PdnResources.GetString("Menu.MeasureAction.MeasureOuterCircle.Text");
  577. treeNode423.Name = "MeasureDiameterCircle";
  578. treeNode423.Text = PdnResources.GetString("Menu.MeasureAction.MeasureDiameterCircle.Text");
  579. treeNode424.Name = "MeasurePointEdgeSize";
  580. treeNode424.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointEdgeSize.Text");
  581. treeNode4241.Name = "MeasurePointArcSize";
  582. treeNode4241.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointArcSize.Text");
  583. treeNode425.Name = "MeasurePointCenterSize";
  584. treeNode425.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointCenterSize.Text");
  585. treeNode426.Name = PdnResources.GetString("Menu.node.Text") + "8";
  586. treeNode426.Text = PdnResources.GetString("Menu.MeasureAction.CircularMeasurement.Text");
  587. treeNode427.Name = "MeasureThreePointAngle";
  588. treeNode427.Text = PdnResources.GetString("Menu.MeasureAction.MeasureThreePointAngle.Text");
  589. treeNode428.Name = "MeasureFourPointAngle";
  590. treeNode428.Text = PdnResources.GetString("Menu.MeasureAction.MeasureFourPointAngle.Text");
  591. treeNode429.Name = "MeasureThreePointArc";
  592. treeNode429.Text = PdnResources.GetString("Menu.MeasureAction.MeasureThreePointArc.Text");
  593. treeNode430.Name = PdnResources.GetString("Menu.node.Text") + "9";
  594. treeNode430.Text = PdnResources.GetString("Menu.MeasureAction.AngleMeasurement.Text");
  595. treeNode4251.Name = "MeasureCenterCenterSize";
  596. treeNode4251.Text = PdnResources.GetString("Menu.MeasureAction.MeasureCenterCenterSize.Text");
  597. treeNode4252.Name = "MeasureTwoLineVLDistance";
  598. treeNode4252.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTwoLineVLDistance.Text");
  599. treeNode4261.Name = PdnResources.GetString("Menu.node.Text") + "10";
  600. treeNode4261.Text = PdnResources.GetString("Menu.MeasureAction.RegistrationMeasurement.Text");
  601. this.treeView3.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
  602. treeNode392,
  603. treeNode397,
  604. treeNode401,
  605. treeNode406,
  606. treeNode411,
  607. treeNode419,
  608. treeNode426,
  609. treeNode430,
  610. treeNode4261});
  611. treeNode431.Name = "MeasureLine";
  612. treeNode431.Text = PdnResources.GetString("Menu.LabelAction.DrawLine.Text");
  613. treeNode432.Name = "MeasureLength";
  614. treeNode432.Text = PdnResources.GetString("Menu.MeasureAction.MeasureLength.Text");
  615. treeNode433.Name = "MeasureHLine";
  616. treeNode433.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHLine.Text");
  617. treeNode434.Name = "MeasureVLine";
  618. treeNode434.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVLine.Text");
  619. treeNode4344.Name = "MeasureDistanceLine";
  620. treeNode4344.Text = PdnResources.GetString("Menu.MeasureAction.MeasureDistanceLine.Text");
  621. treeNode435.Name = PdnResources.GetString("Menu.node.Text") + "0";
  622. treeNode435.Text = PdnResources.GetString("Menu.MeasureAction.LengthMeasurement.Text");
  623. treeNode436.Name = "MeasureMulLine";
  624. treeNode436.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulLine.Text");
  625. treeNode437.Name = "MeasureMulHVLine";
  626. treeNode437.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulHVLine.Text");
  627. treeNode438.Name = "MeasureMulSegment";
  628. treeNode438.Text = PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text");
  629. treeNode439.Name = "MeasureMulVLine";
  630. treeNode439.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulVLine.Text");
  631. treeNode440.Name = PdnResources.GetString("Menu.node.Text") + "2";
  632. treeNode440.Text = PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text");
  633. treeNode441.Name = "MeasureBrokenLine";
  634. treeNode441.Text = PdnResources.GetString("Menu.MeasureAction.MeasureBrokenLine.Text");
  635. treeNode442.Name = "MeasureTraceCurve";
  636. treeNode442.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTraceCurve.Text");
  637. treeNode443.Name = "MeasureCurveLine";
  638. treeNode443.Text = PdnResources.GetString("Menu.LabelAction.DrawCurve.Text");
  639. treeNode444.Name = PdnResources.GetString("Menu.node.Text") + "4";
  640. treeNode444.Text = PdnResources.GetString("Menu.MeasureAction.CurveLength.Text");
  641. treeNode445.Name = "MeasurePLine";
  642. treeNode445.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePLine.Text");
  643. treeNode4451.Name = "MeasurePointHLine";
  644. treeNode4451.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointHLine.Text");
  645. treeNode446.Name = "MeasureMulPLine";
  646. treeNode446.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulPLine.Text");
  647. treeNode447.Name = "MeasureHMulPLine";
  648. treeNode447.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHMulPLine.Text");
  649. treeNode448.Name = "MeasureVMulPLine";
  650. treeNode448.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVMulPLine.Text");
  651. treeNode449.Name = PdnResources.GetString("Menu.node.Text") + "5";
  652. treeNode449.Text = PdnResources.GetString("Menu.MeasureAction.PointPerpendicular.Text");
  653. treeNode450.Name = "MeasureParallelLine";
  654. treeNode450.Text = PdnResources.GetString("Menu.MeasureAction.MeasureParallelLine.Text");
  655. treeNode451.Name = "MeasureMulParallelLine";
  656. treeNode451.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulParallelLine.Text");
  657. treeNode452.Name = "MeasureHMulParallelLine";
  658. treeNode452.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHMulParallelLine.Text");
  659. treeNode453.Name = "MeasureVMulParallelLine";
  660. treeNode453.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVMulParallelLine.Text");
  661. treeNode454.Name = PdnResources.GetString("Menu.node.Text") + "6";
  662. treeNode454.Text = PdnResources.GetString("Menu.MeasureAction.ParallelLines.Text");
  663. treeNode455.Name = "MeasureClosedCurve";
  664. treeNode455.Text = PdnResources.GetString("Menu.LabelAction.DrawClosedCurve.Text");
  665. treeNode456.Name = "MeasurePolygon";
  666. treeNode456.Text = PdnResources.GetString("Menu.LabelAction.DrawPolygon.Text");
  667. treeNode457.Name = "MeasureRectangle";
  668. treeNode457.Text = PdnResources.GetString("Menu.LabelAction.DrawRectangle.Text");
  669. treeNode458.Name = "MeasureRandRectangle";
  670. treeNode458.Text = PdnResources.GetString("Menu.MeasureAction.MeasureRandRectangle.Text");
  671. treeNode459.Name = "MeasureSquare";
  672. treeNode459.Text = PdnResources.GetString("Menu.MeasureAction.MeasureSquare.Text");
  673. treeNode460.Name = "MeasureRandSquare";
  674. treeNode460.Text = PdnResources.GetString("Menu.MeasureAction.MeasureRandSquare.Text");
  675. treeNode461.Name = "MeasureTracePolygon";
  676. treeNode461.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTracePolygon.Text");
  677. treeNode462.Name = PdnResources.GetString("Menu.node.Text") + "7";
  678. treeNode462.Text = PdnResources.GetString("Menu.MeasureAction.PolygonMeasurement.Text");
  679. treeNode463.Name = "MeasureCircle";
  680. treeNode463.Text = PdnResources.GetString("Menu.MeasureAction.MeasureCircle.Text");
  681. treeNode464.Name = "MeasureInnerCircle";
  682. treeNode464.Text = PdnResources.GetString("Menu.MeasureAction.MeasureInnerCircle.Text");
  683. treeNode465.Name = "MeasureOuterCircle";
  684. treeNode465.Text = PdnResources.GetString("Menu.MeasureAction.MeasureOuterCircle.Text");
  685. treeNode466.Name = "MeasureDiameterCircle";
  686. treeNode466.Text = PdnResources.GetString("Menu.MeasureAction.MeasureDiameterCircle.Text");
  687. treeNode467.Name = "MeasurePointEdgeSize";
  688. treeNode467.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointEdgeSize.Text");
  689. treeNode4671.Name = "MeasurePointArcSize";
  690. treeNode4671.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointArcSize.Text");
  691. treeNode468.Name = "MeasurePointCenterSize";
  692. treeNode468.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointCenterSize.Text");
  693. treeNode469.Name = PdnResources.GetString("Menu.node.Text") + "8";
  694. treeNode469.Text = PdnResources.GetString("Menu.MeasureAction.CircularMeasurement.Text");
  695. treeNode470.Name = "MeasureThreePointAngle";
  696. treeNode470.Text = PdnResources.GetString("Menu.MeasureAction.MeasureThreePointAngle.Text");
  697. treeNode471.Name = "MeasureFourPointAngle";
  698. treeNode471.Text = PdnResources.GetString("Menu.MeasureAction.MeasureFourPointAngle.Text");
  699. treeNode472.Name = "MeasureThreePointArc";
  700. treeNode472.Text = PdnResources.GetString("Menu.MeasureAction.MeasureThreePointArc.Text");
  701. treeNode473.Name = PdnResources.GetString("Menu.node.Text") + "9";
  702. treeNode473.Text = PdnResources.GetString("Menu.MeasureAction.AngleMeasurement.Text");
  703. treeNode4681.Name = "MeasureCenterCenterSize";
  704. treeNode4681.Text = PdnResources.GetString("Menu.MeasureAction.MeasureCenterCenterSize.Text");
  705. treeNode4682.Name = "MeasureTwoLineVLDistance";
  706. treeNode4682.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTwoLineVLDistance.Text");
  707. treeNode4691.Name = PdnResources.GetString("Menu.node.Text") + "10";
  708. treeNode4691.Text = PdnResources.GetString("Menu.MeasureAction.RegistrationMeasurement.Text");
  709. this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
  710. treeNode435,
  711. treeNode440,
  712. treeNode444,
  713. treeNode449,
  714. treeNode454,
  715. treeNode462,
  716. treeNode469,
  717. treeNode473,
  718. treeNode4691});
  719. treeNode474.Name = "MeasureLine";
  720. treeNode474.Text = PdnResources.GetString("Menu.LabelAction.DrawLine.Text");
  721. treeNode475.Name = "MeasureLength";
  722. treeNode475.Text = PdnResources.GetString("Menu.MeasureAction.MeasureLength.Text");
  723. treeNode476.Name = "MeasureHLine";
  724. treeNode476.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHLine.Text");
  725. treeNode477.Name = "MeasureVLine";
  726. treeNode477.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVLine.Text");
  727. treeNode4777.Name = "MeasureDistanceLine";
  728. treeNode4777.Text = PdnResources.GetString("Menu.MeasureAction.MeasureDistanceLine.Text");
  729. treeNode478.Name = PdnResources.GetString("Menu.node.Text") + "0";
  730. treeNode478.Text = PdnResources.GetString("Menu.MeasureAction.LengthMeasurement.Text");
  731. treeNode479.Name = "MeasureMulLine";
  732. treeNode479.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulLine.Text");
  733. treeNode480.Name = "MeasureMulHVLine";
  734. treeNode480.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulHVLine.Text");
  735. treeNode481.Name = "MeasureMulSegment";
  736. treeNode481.Text = PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text");
  737. treeNode482.Name = "MeasureMulVLine";
  738. treeNode482.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulVLine.Text");
  739. treeNode483.Name = PdnResources.GetString("Menu.node.Text") + "2";
  740. treeNode483.Text = PdnResources.GetString("Menu.MeasureAction.MultiPointLineSegment.Text");
  741. treeNode484.Name = "MeasureBrokenLine";
  742. treeNode484.Text = PdnResources.GetString("Menu.MeasureAction.MeasureBrokenLine.Text");
  743. treeNode485.Name = "MeasureTraceCurve";
  744. treeNode485.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTraceCurve.Text");
  745. treeNode486.Name = "MeasureCurveLine";
  746. treeNode486.Text = PdnResources.GetString("Menu.LabelAction.DrawCurve.Text");
  747. treeNode487.Name = PdnResources.GetString("Menu.node.Text") + "4";
  748. treeNode487.Text = PdnResources.GetString("Menu.MeasureAction.CurveLength.Text");
  749. treeNode488.Name = "MeasurePLine";
  750. treeNode488.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePLine.Text");
  751. treeNode4881.Name = "MeasurePointHLine";
  752. treeNode4881.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointHLine.Text");
  753. treeNode489.Name = "MeasureMulPLine";
  754. treeNode489.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulPLine.Text");
  755. treeNode490.Name = "MeasureHMulPLine";
  756. treeNode490.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHMulPLine.Text");
  757. treeNode491.Name = "MeasureVMulPLine";
  758. treeNode491.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVMulPLine.Text");
  759. treeNode492.Name = PdnResources.GetString("Menu.node.Text") + "5";
  760. treeNode492.Text = PdnResources.GetString("Menu.MeasureAction.PointPerpendicular.Text");
  761. treeNode493.Name = "MeasureParallelLine";
  762. treeNode493.Text = PdnResources.GetString("Menu.MeasureAction.MeasureParallelLine.Text");
  763. treeNode494.Name = "MeasureMulParallelLine";
  764. treeNode494.Text = PdnResources.GetString("Menu.MeasureAction.MeasureMulParallelLine.Text");
  765. treeNode495.Name = "MeasureHMulParallelLine";
  766. treeNode495.Text = PdnResources.GetString("Menu.MeasureAction.MeasureHMulParallelLine.Text");
  767. treeNode496.Name = "MeasureVMulParallelLine";
  768. treeNode496.Text = PdnResources.GetString("Menu.MeasureAction.MeasureVMulParallelLine.Text");
  769. treeNode497.Name = PdnResources.GetString("Menu.node.Text") + "6";
  770. treeNode497.Text = PdnResources.GetString("Menu.MeasureAction.ParallelLines.Text");
  771. treeNode498.Name = "MeasureClosedCurve";
  772. treeNode498.Text = PdnResources.GetString("Menu.LabelAction.DrawClosedCurve.Text");
  773. treeNode499.Name = "MeasurePolygon";
  774. treeNode499.Text = PdnResources.GetString("Menu.LabelAction.DrawPolygon.Text");
  775. treeNode500.Name = "MeasureRectangle";
  776. treeNode500.Text = PdnResources.GetString("Menu.LabelAction.DrawRectangle.Text");
  777. treeNode501.Name = "MeasureRandRectangle";
  778. treeNode501.Text = PdnResources.GetString("Menu.MeasureAction.MeasureRandRectangle.Text");
  779. treeNode502.Name = "MeasureSquare";
  780. treeNode502.Text = PdnResources.GetString("Menu.MeasureAction.MeasureSquare.Text");
  781. treeNode503.Name = "MeasureRandSquare";
  782. treeNode503.Text = PdnResources.GetString("Menu.MeasureAction.MeasureRandSquare.Text");
  783. treeNode504.Name = "MeasureTracePolygon";
  784. treeNode504.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTracePolygon.Text");
  785. treeNode505.Name = PdnResources.GetString("Menu.node.Text") + "7";
  786. treeNode505.Text = PdnResources.GetString("Menu.MeasureAction.PolygonMeasurement.Text");
  787. treeNode506.Name = "MeasureCircle";
  788. treeNode506.Text = PdnResources.GetString("Menu.MeasureAction.MeasureCircle.Text");
  789. treeNode507.Name = "MeasureInnerCircle";
  790. treeNode507.Text = PdnResources.GetString("Menu.MeasureAction.MeasureInnerCircle.Text");
  791. treeNode508.Name = "MeasureOuterCircle";
  792. treeNode508.Text = PdnResources.GetString("Menu.MeasureAction.MeasureOuterCircle.Text");
  793. treeNode509.Name = "MeasureDiameterCircle";
  794. treeNode509.Text = PdnResources.GetString("Menu.MeasureAction.MeasureDiameterCircle.Text");
  795. treeNode510.Name = "MeasurePointEdgeSize";
  796. treeNode510.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointEdgeSize.Text");
  797. treeNode5101.Name = "MeasurePointArcSize";
  798. treeNode5101.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointArcSize.Text");
  799. treeNode511.Name = "MeasurePointCenterSize";
  800. treeNode511.Text = PdnResources.GetString("Menu.MeasureAction.MeasurePointCenterSize.Text");
  801. treeNode512.Name = PdnResources.GetString("Menu.node.Text") + "8";
  802. treeNode512.Text = PdnResources.GetString("Menu.MeasureAction.CircularMeasurement.Text");
  803. treeNode513.Name = "MeasureThreePointAngle";
  804. treeNode513.Text = PdnResources.GetString("Menu.MeasureAction.MeasureThreePointAngle.Text");
  805. treeNode514.Name = "MeasureFourPointAngle";
  806. treeNode514.Text = PdnResources.GetString("Menu.MeasureAction.MeasureFourPointAngle.Text");
  807. treeNode515.Name = "MeasureThreePointArc";
  808. treeNode515.Text = PdnResources.GetString("Menu.MeasureAction.MeasureThreePointArc.Text");
  809. treeNode516.Name = PdnResources.GetString("Menu.node.Text") + "9";
  810. treeNode516.Text = PdnResources.GetString("Menu.MeasureAction.AngleMeasurement.Text");
  811. treeNode5111.Name = "MeasureCenterCenterSize";
  812. treeNode5111.Text = PdnResources.GetString("Menu.MeasureAction.MeasureCenterCenterSize.Text");
  813. treeNode5112.Name = "MeasureTwoLineVLDistance";
  814. treeNode5112.Text = PdnResources.GetString("Menu.MeasureAction.MeasureTwoLineVLDistance.Text");
  815. treeNode5121.Name = PdnResources.GetString("Menu.node.Text") + "10";
  816. treeNode5121.Text = PdnResources.GetString("Menu.MeasureAction.RegistrationMeasurement.Text");
  817. this.treeView2.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
  818. treeNode478,
  819. treeNode483,
  820. treeNode487,
  821. treeNode492,
  822. treeNode497,
  823. treeNode505,
  824. treeNode512,
  825. treeNode516,
  826. treeNode5121});
  827. this.groupBox1.Text = PdnResources.GetString("Menu.Type.text");
  828. this.button3.Text = PdnResources.GetString("Menu.File.Close.Text");
  829. this.button2.Text = PdnResources.GetString("Menu.Dataattrs.text");
  830. this.button1.Text = PdnResources.GetString("Menu.Drawingattributes.text");
  831. this.groupBox2.Text = PdnResources.GetString("Menu.operation.text");
  832. this.button4.Text = PdnResources.GetString("Menu.File.Save.Text");
  833. this.groupBox5.Text = PdnResources.GetString("Menu.Dataattrs.text");
  834. this.button5.Text = PdnResources.GetString("Menu.Moveout.text") + ">";
  835. this.button6.Text = "<" + PdnResources.GetString("Menu.Addto.text");
  836. this.groupBox3.Text = PdnResources.GetString("Menu.Drawingattributes.text");
  837. this.groupBox4.Text = PdnResources.GetString("Menu.Imagement.Measurementlist.Elementattributes.text");
  838. this.Text = PdnResources.GetString("Menu.Setting.Text");
  839. }
  840. /// <summary>
  841. /// Required method for Designer support - do not modify
  842. /// the contents of this method with the code editor.
  843. /// </summary>
  844. private void InitializeComponent()
  845. {
  846. this.groupBox1 = new System.Windows.Forms.GroupBox();
  847. this.button3 = new System.Windows.Forms.Button();
  848. this.button2 = new System.Windows.Forms.Button();
  849. this.button1 = new System.Windows.Forms.Button();
  850. this.groupBox2 = new System.Windows.Forms.GroupBox();
  851. this.button4 = new System.Windows.Forms.Button();
  852. this.groupBox5 = new System.Windows.Forms.GroupBox();
  853. this.treeView4 = new System.Windows.Forms.TreeView();
  854. this.button5 = new System.Windows.Forms.Button();
  855. this.button6 = new System.Windows.Forms.Button();
  856. this.groupBox3 = new System.Windows.Forms.GroupBox();
  857. this.treeView3 = new System.Windows.Forms.TreeView();
  858. this.groupBox4 = new System.Windows.Forms.GroupBox();
  859. this.treeView1 = new System.Windows.Forms.TreeView();
  860. this.treeView2 = new System.Windows.Forms.TreeView();
  861. this.groupBox1.SuspendLayout();
  862. this.groupBox2.SuspendLayout();
  863. this.groupBox5.SuspendLayout();
  864. this.groupBox3.SuspendLayout();
  865. this.groupBox4.SuspendLayout();
  866. this.SuspendLayout();
  867. //
  868. // groupBox1
  869. //
  870. this.groupBox1.Controls.Add(this.button3);
  871. this.groupBox1.Controls.Add(this.button2);
  872. this.groupBox1.Controls.Add(this.button1);
  873. this.groupBox1.Location = new System.Drawing.Point(2, 2);
  874. this.groupBox1.Name = "groupBox1";
  875. this.groupBox1.Size = new System.Drawing.Size(96, 561);
  876. this.groupBox1.TabIndex = 0;
  877. this.groupBox1.TabStop = false;
  878. this.groupBox1.Text = "类型";
  879. //
  880. // button3
  881. //
  882. this.button3.BackColor = System.Drawing.SystemColors.Control;
  883. this.button3.Location = new System.Drawing.Point(6, 528);
  884. this.button3.Name = "button3";
  885. this.button3.Size = new System.Drawing.Size(84, 27);
  886. this.button3.TabIndex = 3;
  887. this.button3.Text = "关闭";
  888. this.button3.UseVisualStyleBackColor = false;
  889. this.button3.Click += new System.EventHandler(this.button3_Click);
  890. //
  891. // button2
  892. //
  893. this.button2.Location = new System.Drawing.Point(6, 105);
  894. this.button2.Name = "button2";
  895. this.button2.Size = new System.Drawing.Size(84, 27);
  896. this.button2.TabIndex = 2;
  897. this.button2.Text = "数据属性";
  898. this.button2.UseVisualStyleBackColor = true;
  899. this.button2.Click += new System.EventHandler(this.button2_Click);
  900. //
  901. // button1
  902. //
  903. this.button1.BackColor = System.Drawing.Color.Black;
  904. this.button1.ForeColor = System.Drawing.Color.White;
  905. this.button1.Location = new System.Drawing.Point(6, 53);
  906. this.button1.Name = "button1";
  907. this.button1.Size = new System.Drawing.Size(84, 27);
  908. this.button1.TabIndex = 1;
  909. this.button1.Text = "绘制属性";
  910. this.button1.UseVisualStyleBackColor = false;
  911. this.button1.Click += new System.EventHandler(this.button1_Click);
  912. //
  913. // groupBox2
  914. //
  915. this.groupBox2.Controls.Add(this.button4);
  916. this.groupBox2.Location = new System.Drawing.Point(104, 2);
  917. this.groupBox2.Name = "groupBox2";
  918. this.groupBox2.Size = new System.Drawing.Size(582, 49);
  919. this.groupBox2.TabIndex = 1;
  920. this.groupBox2.TabStop = false;
  921. this.groupBox2.Text = "操作";
  922. //
  923. // button4
  924. //
  925. this.button4.BackColor = System.Drawing.SystemColors.Window;
  926. this.button4.Location = new System.Drawing.Point(497, 14);
  927. this.button4.Name = "button4";
  928. this.button4.Size = new System.Drawing.Size(75, 27);
  929. this.button4.TabIndex = 4;
  930. this.button4.UseVisualStyleBackColor = false;
  931. this.button4.Click += new System.EventHandler(this.button4_Click);
  932. //
  933. // groupBox5
  934. //
  935. this.groupBox5.Controls.Add(this.treeView4);
  936. this.groupBox5.Location = new System.Drawing.Point(106, 57);
  937. this.groupBox5.Name = "groupBox5";
  938. this.groupBox5.Size = new System.Drawing.Size(244, 506);
  939. this.groupBox5.TabIndex = 7;
  940. this.groupBox5.TabStop = false;
  941. this.groupBox5.Text = "绘制属性";
  942. this.groupBox5.Visible = false;
  943. //
  944. // treeView4
  945. //
  946. this.treeView4.BackColor = System.Drawing.SystemColors.Control;
  947. this.treeView4.ForeColor = System.Drawing.SystemColors.MenuText;
  948. this.treeView4.Location = new System.Drawing.Point(6, 20);
  949. this.treeView4.Name = "treeView4";
  950. this.treeView4.Size = new System.Drawing.Size(232, 486);
  951. this.treeView4.TabIndex = 1;
  952. //
  953. // button5
  954. //
  955. this.button5.BackColor = System.Drawing.SystemColors.Control;
  956. this.button5.Location = new System.Drawing.Point(354, 294);
  957. this.button5.Name = "button5";
  958. this.button5.Size = new System.Drawing.Size(72, 27);
  959. this.button5.TabIndex = 4;
  960. this.button5.Text = "移出";
  961. this.button5.UseVisualStyleBackColor = false;
  962. this.button5.Click += new System.EventHandler(this.button5_Click);
  963. //
  964. // button6
  965. //
  966. this.button6.BackColor = System.Drawing.SystemColors.Control;
  967. this.button6.Location = new System.Drawing.Point(354, 234);
  968. this.button6.Name = "button6";
  969. this.button6.Size = new System.Drawing.Size(72, 27);
  970. this.button6.TabIndex = 5;
  971. this.button6.Text = "添加";
  972. this.button6.UseVisualStyleBackColor = false;
  973. this.button6.Click += new System.EventHandler(this.button6_Click);
  974. //
  975. // groupBox3
  976. //
  977. this.groupBox3.Controls.Add(this.treeView3);
  978. this.groupBox3.Location = new System.Drawing.Point(106, 57);
  979. this.groupBox3.Name = "groupBox3";
  980. this.groupBox3.Size = new System.Drawing.Size(244, 506);
  981. this.groupBox3.TabIndex = 6;
  982. this.groupBox3.TabStop = false;
  983. //
  984. // treeView3
  985. //
  986. this.treeView3.BackColor = System.Drawing.SystemColors.Control;
  987. this.treeView3.ForeColor = System.Drawing.SystemColors.MenuText;
  988. this.treeView3.Location = new System.Drawing.Point(6, 20);
  989. this.treeView3.Name = "treeView3";
  990. this.treeView3.Size = new System.Drawing.Size(232, 486);
  991. this.treeView3.TabIndex = 1;
  992. //
  993. // groupBox4
  994. //
  995. this.groupBox4.Controls.Add(this.treeView1);
  996. this.groupBox4.Location = new System.Drawing.Point(432, 57);
  997. this.groupBox4.Name = "groupBox4";
  998. this.groupBox4.Size = new System.Drawing.Size(244, 506);
  999. this.groupBox4.TabIndex = 7;
  1000. this.groupBox4.TabStop = false;
  1001. this.groupBox4.Text = "元素属性";
  1002. //
  1003. // treeView1
  1004. //
  1005. this.treeView1.BackColor = System.Drawing.SystemColors.Control;
  1006. this.treeView1.ForeColor = System.Drawing.SystemColors.MenuText;
  1007. this.treeView1.Location = new System.Drawing.Point(6, 20);
  1008. this.treeView1.Name = "treeView1";
  1009. this.treeView1.Size = new System.Drawing.Size(232, 486);
  1010. this.treeView1.TabIndex = 0;
  1011. //
  1012. // treeView2
  1013. //
  1014. this.treeView2.BackColor = System.Drawing.SystemColors.Control;
  1015. this.treeView2.ForeColor = System.Drawing.SystemColors.MenuText;
  1016. this.treeView2.Location = new System.Drawing.Point(438, 77);
  1017. this.treeView2.Name = "treeView2";
  1018. this.treeView2.Size = new System.Drawing.Size(232, 486);
  1019. this.treeView2.TabIndex = 0;
  1020. this.treeView2.Visible = false;
  1021. //
  1022. // MeasureListSetDialog
  1023. //
  1024. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  1025. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  1026. this.BackColor = System.Drawing.SystemColors.Control;
  1027. this.ClientSize = new System.Drawing.Size(689, 562);
  1028. this.Controls.Add(this.treeView2);
  1029. this.Controls.Add(this.groupBox5);
  1030. this.Controls.Add(this.groupBox4);
  1031. this.Controls.Add(this.groupBox3);
  1032. this.Controls.Add(this.button5);
  1033. this.Controls.Add(this.button6);
  1034. this.Controls.Add(this.groupBox2);
  1035. this.Controls.Add(this.groupBox1);
  1036. this.MaximumSize = new System.Drawing.Size(705, 601);
  1037. this.MinimumSize = new System.Drawing.Size(705, 601);
  1038. this.Name = "MeasureListSetDialog";
  1039. this.Text = "测量设置";
  1040. this.groupBox1.ResumeLayout(false);
  1041. this.groupBox2.ResumeLayout(false);
  1042. this.groupBox5.ResumeLayout(false);
  1043. this.groupBox3.ResumeLayout(false);
  1044. this.groupBox4.ResumeLayout(false);
  1045. this.ResumeLayout(false);
  1046. }
  1047. #endregion
  1048. private System.Windows.Forms.GroupBox groupBox1;
  1049. private System.Windows.Forms.Button button3;
  1050. private System.Windows.Forms.Button button2;
  1051. private System.Windows.Forms.Button button1;
  1052. private System.Windows.Forms.GroupBox groupBox2;
  1053. private System.Windows.Forms.Button button4;
  1054. private System.Windows.Forms.Button button5;
  1055. private System.Windows.Forms.Button button6;
  1056. private System.Windows.Forms.GroupBox groupBox3;
  1057. private System.Windows.Forms.GroupBox groupBox4;
  1058. private System.Windows.Forms.TreeView treeView1;
  1059. private System.Windows.Forms.GroupBox groupBox5;
  1060. private System.Windows.Forms.TreeView treeView3;
  1061. private System.Windows.Forms.TreeView treeView4;
  1062. private System.Windows.Forms.TreeView treeView2;
  1063. #endregion
  1064. /// <summary>
  1065. /// 主控件
  1066. /// </summary>
  1067. private AppWorkspace appWorkspace;
  1068. /// <summary>
  1069. /// 设置画面属性(绘制属性)
  1070. /// </summary>
  1071. private TreeView drawNodes;
  1072. /// <summary>
  1073. /// 设置画面属性(数据属性)
  1074. /// </summary>
  1075. private TreeView dataNodes;
  1076. /// <summary>
  1077. /// 设置画面属性(绘制元素属性)
  1078. /// </summary>
  1079. public TreeView allDrawNodes;
  1080. /// <summary>
  1081. /// 设置画面属性(数据元素属性)
  1082. /// </summary>
  1083. public TreeView allDataNodes;
  1084. public MeasureListSetDialog(AppWorkspace appWorkspace, TreeView drawNodes, TreeView dataNodes, TreeView allDrawNodes, TreeView allDataNodes)
  1085. {
  1086. this.appWorkspace = appWorkspace;
  1087. this.drawNodes = drawNodes;
  1088. this.dataNodes = dataNodes;
  1089. this.allDrawNodes = allDrawNodes;
  1090. this.allDataNodes = allDataNodes;
  1091. InitializeComponent();
  1092. InitializeLanguageText();
  1093. if (this.drawNodes == null && this.dataNodes == null && this.allDrawNodes == null && this.allDataNodes == null)
  1094. this.InitAddNodes();
  1095. else
  1096. this.ModifiedAddNodes();
  1097. }
  1098. /// <summary>
  1099. /// 初始在treeview中添加元素属性节点
  1100. /// </summary>
  1101. private void InitAddNodes()
  1102. {
  1103. int count = treeView3.Nodes.Count;
  1104. for (int i = 0; i < count; i++)
  1105. {
  1106. foreach (TreeNode node in this.treeView3.Nodes[i].Nodes)
  1107. {
  1108. int[] arr;
  1109. InvariantData.measureRelationAttributes.TryGetValue((DrawToolType)Enum.Parse(typeof(DrawToolType), node.Name, false), out arr);
  1110. Dictionary<Enum, Object> models = new Dictionary<Enum, object>();
  1111. if (arr != null)
  1112. {
  1113. foreach (int t in arr)
  1114. {
  1115. if (t != 0)
  1116. {
  1117. object v;
  1118. InvariantData.measureAttributes.TryGetValue((MeasureAttributes)t, out v);
  1119. models.Add((MeasureAttributes)t, v);
  1120. }
  1121. }
  1122. int a = 0;
  1123. foreach (var model in models)
  1124. {
  1125. node.Nodes.Add(new TreeNode(model.Value.ToString()));
  1126. node.Nodes[a].Name = model.Key.ToString();
  1127. a++;
  1128. }
  1129. }
  1130. }
  1131. foreach (TreeNode node in this.treeView4.Nodes[i].Nodes)
  1132. {
  1133. int[] arr;
  1134. InvariantData.measureRelationAttributes.TryGetValue((DrawToolType)Enum.Parse(typeof(DrawToolType), node.Name, false), out arr);
  1135. Dictionary<Enum, Object> models = new Dictionary<Enum, object>();
  1136. if (arr != null)
  1137. {
  1138. foreach (int t in arr)
  1139. {
  1140. if (t != 0)
  1141. {
  1142. object v;
  1143. InvariantData.measureAttributes.TryGetValue((MeasureAttributes)t, out v);
  1144. models.Add((MeasureAttributes)t, v);
  1145. }
  1146. }
  1147. int b = 0;
  1148. foreach (var model in models)
  1149. {
  1150. node.Nodes.Add(new TreeNode(model.Value.ToString()));
  1151. node.Nodes[b].Name = model.Key.ToString();
  1152. b++;
  1153. }
  1154. }
  1155. }
  1156. }
  1157. }
  1158. /// <summary>
  1159. /// 修改过元素的节点设置
  1160. /// </summary>
  1161. private void ModifiedAddNodes()
  1162. {
  1163. int count1 = this.drawNodes.Nodes.Count;
  1164. for (int i = 0; i < count1; i++)
  1165. {
  1166. int count2 = this.drawNodes.Nodes[i].Nodes.Count;
  1167. for (int j = 0; j < count2; j++)
  1168. {
  1169. int b = 0;
  1170. foreach (TreeNode node2 in this.drawNodes.Nodes[i].Nodes[j].Nodes)
  1171. {
  1172. this.treeView3.Nodes[i].Nodes[j].Nodes.Add(new TreeNode(node2.Text));
  1173. this.treeView3.Nodes[i].Nodes[j].Nodes[b].Name = node2.Name;
  1174. b++;
  1175. }
  1176. }
  1177. }
  1178. int count3 = this.dataNodes.Nodes.Count;
  1179. for (int i = 0; i < count3; i++)
  1180. {
  1181. int count4 = this.dataNodes.Nodes[i].Nodes.Count;
  1182. for (int j = 0; j < count4; j++)
  1183. {
  1184. int b = 0;
  1185. foreach (TreeNode node2 in this.dataNodes.Nodes[i].Nodes[j].Nodes)
  1186. {
  1187. this.treeView4.Nodes[i].Nodes[j].Nodes.Add(new TreeNode(node2.Text));
  1188. this.treeView4.Nodes[i].Nodes[j].Nodes[b].Name = node2.Name;
  1189. b++;
  1190. }
  1191. }
  1192. }
  1193. int count5 = this.allDrawNodes.Nodes.Count;
  1194. for (int i = 0; i < count5; i++)
  1195. {
  1196. int count6 = this.allDrawNodes.Nodes[i].Nodes.Count;
  1197. for (int j = 0; j < count6; j++)
  1198. {
  1199. int b = 0;
  1200. foreach (TreeNode node2 in this.allDrawNodes.Nodes[i].Nodes[j].Nodes)
  1201. {
  1202. this.treeView1.Nodes[i].Nodes[j].Nodes.Add(new TreeNode(node2.Text));
  1203. this.treeView1.Nodes[i].Nodes[j].Nodes[b].Name = node2.Name;
  1204. b++;
  1205. }
  1206. }
  1207. }
  1208. int count7 = this.allDataNodes.Nodes.Count;
  1209. for (int i = 0; i < count7; i++)
  1210. {
  1211. int count8 = this.allDataNodes.Nodes[i].Nodes.Count;
  1212. for (int j = 0; j < count8; j++)
  1213. {
  1214. int b = 0;
  1215. foreach (TreeNode node2 in this.allDataNodes.Nodes[i].Nodes[j].Nodes)
  1216. {
  1217. this.treeView2.Nodes[i].Nodes[j].Nodes.Add(new TreeNode(node2.Text));
  1218. this.treeView2.Nodes[i].Nodes[j].Nodes[b].Name = node2.Name;
  1219. b++;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. /// <summary>
  1225. /// 绘制属性按钮按下事件
  1226. /// </summary>
  1227. /// <param name="sender"></param>
  1228. /// <param name="e"></param>
  1229. private void button1_Click(object sender, EventArgs e)
  1230. {
  1231. this.groupBox3.Visible = true;
  1232. this.treeView3.Visible = true;
  1233. this.groupBox5.Visible = false;
  1234. this.treeView4.Visible = false;
  1235. this.treeView1.Visible = true;
  1236. this.treeView2.Visible = false;
  1237. this.button1.BackColor = Color.Black;
  1238. this.button1.ForeColor = Color.White;
  1239. this.button2.BackColor = Color.White;
  1240. this.button2.ForeColor = Color.Black;
  1241. }
  1242. /// <summary>
  1243. /// 数据属性按钮按下事件
  1244. /// </summary>
  1245. /// <param name="sender"></param>
  1246. /// <param name="e"></param>
  1247. private void button2_Click(object sender, EventArgs e)
  1248. {
  1249. this.groupBox5.Visible = true;
  1250. this.treeView4.Visible = true;
  1251. this.groupBox3.Visible = false;
  1252. this.treeView3.Visible = false;
  1253. this.treeView1.Visible = false;
  1254. this.treeView2.Visible = true;
  1255. this.button2.BackColor = Color.Black;
  1256. this.button2.ForeColor = Color.White;
  1257. this.button1.BackColor = Color.White;
  1258. this.button1.ForeColor = Color.Black;
  1259. }
  1260. /// <summary>
  1261. /// 添加按钮按下事件
  1262. /// </summary>
  1263. /// <param name="sender"></param>
  1264. /// <param name="e"></param>
  1265. private void button6_Click(object sender, EventArgs e)
  1266. {
  1267. if (this.treeView4.Visible == true
  1268. && this.treeView2.SelectedNode != null)
  1269. {
  1270. string name = string.Empty;
  1271. if (this.treeView2.SelectedNode.Parent != null)
  1272. name = this.treeView2.SelectedNode.Parent.Name;
  1273. TreeNode treeNode = this.treeView2.SelectedNode;
  1274. int count = treeView4.Nodes.Count;
  1275. for (int i = 0; i < count; i++)
  1276. {
  1277. foreach (TreeNode node in this.treeView4.Nodes[i].Nodes)
  1278. {
  1279. if (node.Name == name)
  1280. {
  1281. this.treeView2.SelectedNode.Remove();
  1282. node.Nodes.Add(treeNode);
  1283. }
  1284. }
  1285. }
  1286. }
  1287. if (this.treeView3.Visible == true
  1288. && this.treeView1.SelectedNode != null)
  1289. {
  1290. string name = string.Empty;
  1291. if (this.treeView1.SelectedNode.Parent != null)
  1292. name = this.treeView1.SelectedNode.Parent.Name;
  1293. TreeNode treeNode = this.treeView1.SelectedNode;
  1294. int count = treeView3.Nodes.Count;
  1295. for (int i = 0; i < count; i++)
  1296. {
  1297. foreach (TreeNode node in this.treeView3.Nodes[i].Nodes)
  1298. {
  1299. if (node.Name == name)
  1300. {
  1301. this.treeView1.SelectedNode.Remove();
  1302. node.Nodes.Add(treeNode);
  1303. }
  1304. }
  1305. }
  1306. }
  1307. }
  1308. /// <summary>
  1309. /// 移出按钮按下事件
  1310. /// </summary>
  1311. /// <param name="sender"></param>
  1312. /// <param name="e"></param>
  1313. private void button5_Click(object sender, EventArgs e)
  1314. {
  1315. if (this.treeView4.Visible == true
  1316. && this.treeView4.SelectedNode != null)
  1317. {
  1318. string name = string.Empty;
  1319. if(this.treeView4.SelectedNode.Parent != null)
  1320. name = this.treeView4.SelectedNode.Parent.Name;
  1321. TreeNode treeNode = this.treeView4.SelectedNode;
  1322. int count = treeView2.Nodes.Count;
  1323. for (int i = 0; i < count; i++)
  1324. {
  1325. foreach (TreeNode node in this.treeView2.Nodes[i].Nodes)
  1326. {
  1327. if (node.Name == name)
  1328. {
  1329. this.treeView4.SelectedNode.Remove();
  1330. node.Nodes.Add(treeNode);
  1331. }
  1332. }
  1333. }
  1334. }
  1335. if (this.treeView3.Visible == true
  1336. && this.treeView3.SelectedNode != null)
  1337. {
  1338. string name = string.Empty;
  1339. if(this.treeView3.SelectedNode.Parent != null)
  1340. name = this.treeView3.SelectedNode.Parent.Name;
  1341. TreeNode treeNode = this.treeView3.SelectedNode;
  1342. int count = treeView1.Nodes.Count;
  1343. for (int i = 0; i < count; i++)
  1344. {
  1345. foreach (TreeNode node in this.treeView1.Nodes[i].Nodes)
  1346. {
  1347. if (node.Name == name)
  1348. {
  1349. this.treeView3.SelectedNode.Remove();
  1350. node.Nodes.Add(treeNode);
  1351. }
  1352. }
  1353. }
  1354. }
  1355. }
  1356. /// <summary>
  1357. /// 关闭按钮按下事件
  1358. /// </summary>
  1359. /// <param name="sender"></param>
  1360. /// <param name="e"></param>
  1361. private void button3_Click(object sender, EventArgs e)
  1362. {
  1363. this.Close();
  1364. }
  1365. /// <summary>
  1366. /// 保存按钮按下事件
  1367. /// </summary>
  1368. /// <param name="sender"></param>
  1369. /// <param name="e"></param>
  1370. private void button4_Click(object sender, EventArgs e)
  1371. {
  1372. MeasureListSetModel measureListSetModel = new MeasureListSetModel();
  1373. MeasureListDialog.drawNodes = this.treeView3;
  1374. MeasureListDialog.dataNodes = this.treeView4;
  1375. MeasureListDialog.allDrawNodes = this.treeView1;
  1376. MeasureListDialog.allDataNodes = this.treeView2;
  1377. // 绘制属性树状图保存
  1378. measureListSetModel.AttributeMapDrawNodes = new List<MeasureListSetModel.FirstNode>();
  1379. for (int i = 0; i < this.treeView3.Nodes.Count; i++)
  1380. {
  1381. MeasureListSetModel.FirstNode firstNode = new MeasureListSetModel.FirstNode();
  1382. firstNode.Attribute = new List<MeasureListSetModel.FirstNode.SecondNode>();
  1383. firstNode.Name = this.treeView3.Nodes[i].Text;
  1384. if (this.treeView3.Nodes[i].Nodes.Count > 0)
  1385. {
  1386. for (int j = 0; j < this.treeView3.Nodes[i].Nodes.Count; j++)
  1387. {
  1388. MeasureListSetModel.FirstNode.SecondNode second = new MeasureListSetModel.FirstNode.SecondNode();
  1389. second.Attribute = new List<MeasureListSetModel.FirstNode.SecondNode.Item>();
  1390. second.Text = this.treeView3.Nodes[i].Nodes[j].Text;
  1391. second.Name = this.treeView3.Nodes[i].Nodes[j].Name;
  1392. foreach (TreeNode Node in this.treeView3.Nodes[i].Nodes[j].Nodes)
  1393. {
  1394. MeasureListSetModel.FirstNode.SecondNode.Item item = new MeasureListSetModel.FirstNode.SecondNode.Item();
  1395. item.Text = Node.Text;
  1396. item.Name = Node.Name;
  1397. second.Attribute.Add(item);
  1398. }
  1399. firstNode.Attribute.Add(second);
  1400. }
  1401. }
  1402. measureListSetModel.AttributeMapDrawNodes.Add(firstNode);
  1403. }
  1404. // 数据属性树状图保存
  1405. measureListSetModel.AttributeMapDataNodes = new List<MeasureListSetModel.FirstNode>();
  1406. for (int i = 0; i < this.treeView4.Nodes.Count; i++)
  1407. {
  1408. MeasureListSetModel.FirstNode firstNode = new MeasureListSetModel.FirstNode();
  1409. firstNode.Attribute = new List<MeasureListSetModel.FirstNode.SecondNode>();
  1410. firstNode.Name = this.treeView4.Nodes[i].Text;
  1411. if (this.treeView4.Nodes[i].Nodes.Count > 0)
  1412. {
  1413. for (int j = 0; j < this.treeView4.Nodes[i].Nodes.Count; j++)
  1414. {
  1415. MeasureListSetModel.FirstNode.SecondNode second = new MeasureListSetModel.FirstNode.SecondNode();
  1416. second.Attribute = new List<MeasureListSetModel.FirstNode.SecondNode.Item>();
  1417. second.Text = this.treeView4.Nodes[i].Nodes[j].Text;
  1418. second.Name = this.treeView4.Nodes[i].Nodes[j].Name;
  1419. foreach (TreeNode Node in this.treeView4.Nodes[i].Nodes[j].Nodes)
  1420. {
  1421. MeasureListSetModel.FirstNode.SecondNode.Item item = new MeasureListSetModel.FirstNode.SecondNode.Item();
  1422. item.Text = Node.Text;
  1423. item.Name = Node.Name;
  1424. second.Attribute.Add(item);
  1425. }
  1426. firstNode.Attribute.Add(second);
  1427. }
  1428. }
  1429. measureListSetModel.AttributeMapDataNodes.Add(firstNode);
  1430. }
  1431. // 绘制属性(元素)树状图保存
  1432. measureListSetModel.AttributeMapAllDrawNodes = new List<MeasureListSetModel.FirstNode>();
  1433. for (int i = 0; i < this.treeView1.Nodes.Count; i++)
  1434. {
  1435. MeasureListSetModel.FirstNode firstNode = new MeasureListSetModel.FirstNode();
  1436. firstNode.Attribute = new List<MeasureListSetModel.FirstNode.SecondNode>();
  1437. firstNode.Name = this.treeView1.Nodes[i].Text;
  1438. if (this.treeView1.Nodes[i].Nodes.Count > 0)
  1439. {
  1440. for (int j = 0; j < this.treeView1.Nodes[i].Nodes.Count; j++)
  1441. {
  1442. MeasureListSetModel.FirstNode.SecondNode second = new MeasureListSetModel.FirstNode.SecondNode();
  1443. second.Attribute = new List<MeasureListSetModel.FirstNode.SecondNode.Item>();
  1444. second.Text = this.treeView1.Nodes[i].Nodes[j].Text;
  1445. second.Name = this.treeView1.Nodes[i].Nodes[j].Name;
  1446. foreach (TreeNode Node in this.treeView1.Nodes[i].Nodes[j].Nodes)
  1447. {
  1448. MeasureListSetModel.FirstNode.SecondNode.Item item = new MeasureListSetModel.FirstNode.SecondNode.Item();
  1449. item.Text = Node.Text;
  1450. item.Name = Node.Name;
  1451. second.Attribute.Add(item);
  1452. }
  1453. firstNode.Attribute.Add(second);
  1454. }
  1455. }
  1456. measureListSetModel.AttributeMapAllDrawNodes.Add(firstNode);
  1457. }
  1458. // 数据属性(元素)树状图保存
  1459. measureListSetModel.AttributeMapAllDataNodes = new List<MeasureListSetModel.FirstNode>();
  1460. for (int i = 0; i < this.treeView2.Nodes.Count; i++)
  1461. {
  1462. MeasureListSetModel.FirstNode firstNode = new MeasureListSetModel.FirstNode();
  1463. firstNode.Attribute = new List<MeasureListSetModel.FirstNode.SecondNode>();
  1464. firstNode.Name = this.treeView2.Nodes[i].Text;
  1465. if (this.treeView2.Nodes[i].Nodes.Count > 0)
  1466. {
  1467. for (int j = 0; j < this.treeView2.Nodes[i].Nodes.Count; j++)
  1468. {
  1469. MeasureListSetModel.FirstNode.SecondNode second = new MeasureListSetModel.FirstNode.SecondNode();
  1470. second.Attribute = new List<MeasureListSetModel.FirstNode.SecondNode.Item>();
  1471. second.Text = this.treeView2.Nodes[i].Nodes[j].Text;
  1472. second.Name = this.treeView2.Nodes[i].Nodes[j].Name;
  1473. foreach (TreeNode Node in this.treeView2.Nodes[i].Nodes[j].Nodes)
  1474. {
  1475. MeasureListSetModel.FirstNode.SecondNode.Item item = new MeasureListSetModel.FirstNode.SecondNode.Item();
  1476. item.Text = Node.Text;
  1477. item.Name = Node.Name;
  1478. second.Attribute.Add(item);
  1479. }
  1480. firstNode.Attribute.Add(second);
  1481. }
  1482. }
  1483. measureListSetModel.AttributeMapAllDataNodes.Add(firstNode);
  1484. }
  1485. string configXml = XmlSerializeHelper.XmlSerialize<MeasureListSetModel>(measureListSetModel);
  1486. string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\MeasureListSetModel.xml";
  1487. if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
  1488. {
  1489. MessageBox.Show(PdnResources.GetString("Menu.Attributesavedsuccessfully.Text"));
  1490. }
  1491. else
  1492. {
  1493. MessageBox.Show(PdnResources.GetString("Menu.Propertysavefailed.Text"));
  1494. }
  1495. if (this.appWorkspace != null)
  1496. {
  1497. this.appWorkspace.SetDrawNodes();
  1498. this.appWorkspace.RefreshListView();
  1499. }
  1500. this.Close();
  1501. }
  1502. }
  1503. }