MeasureSettingDialog.cs 231 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730
  1. using PaintDotNet.Annotation.Enum;
  2. using PaintDotNet.Annotation.relationModel;
  3. using PaintDotNet.Base.SettingModel;
  4. using PaintDotNet.Base.CommTool;
  5. using System;
  6. using System.Collections;
  7. using System.Collections.Generic;
  8. using System.Drawing;
  9. using System.IO;
  10. using System.Windows.Forms;
  11. using PaintDotNet.Annotation;
  12. using PaintDotNet.Base;
  13. namespace PaintDotNet.Setting
  14. {
  15. internal class MeasureSettingDialog : PdnBaseForm
  16. {
  17. /// <summary>
  18. /// 测量一二级关系
  19. /// </summary>
  20. private static List<MeasureRelationModel> list;
  21. /// <summary>
  22. /// 当前选中的二级标注
  23. /// </summary>
  24. private DrawToolType drawToolType;
  25. /// <summary>
  26. /// 测量的样式
  27. /// </summary>
  28. private MeasureStyleModel measureStyleModel = Startup.instance.measureStyleModel;
  29. /// <summary>
  30. /// 主配置文件的model
  31. /// </summary>
  32. private ConfigModel configModel = Startup.instance.configModel;
  33. /// <summary>
  34. /// 操作区控件
  35. /// </summary>
  36. private GroupBox groupBox1;
  37. private Label label1;
  38. private ComboBox comboBox1;
  39. private Button button4;
  40. private Button button3;
  41. private Button button2;
  42. private ListBox listBox1;
  43. private GroupBox groupBox3;
  44. private ConfigModel config = Startup.instance.configModel;
  45. private Button button5;
  46. /// <summary>
  47. /// 字体列表
  48. /// </summary>
  49. ArrayList fontsItems = new ArrayList();
  50. /// <summary>
  51. /// 另存为弹出框显示
  52. /// </summary>
  53. private CreateNameDialog dialog;
  54. /// <summary>
  55. /// 操作样式下拉数据
  56. /// </summary>
  57. private List<string> files = new List<string>();
  58. /// <summary>
  59. /// 另存为文件名
  60. /// </summary>
  61. private string newName;
  62. /// <summary>
  63. /// 选中的测量类型
  64. /// </summary>
  65. private int selectId;
  66. PaintDotNet.ColorsForm colorsForm;
  67. PaintDotNet.ColorsForm colorsForm1;
  68. PaintDotNet.ColorsForm colorsForm2;
  69. PaintDotNet.ColorsForm colorsForm3;
  70. PaintDotNet.ColorsForm colorsForm4;
  71. PaintDotNet.ColorsForm colorsForm5;
  72. private Button button6;
  73. private int initflag = 0;
  74. private NumericUpDown numericUpDown71;
  75. private Label label71;
  76. private GroupBox groupBox4;
  77. private Panel panel1;
  78. private Label label11;
  79. private ComboBox comboBox11;
  80. private Label label21;
  81. private ComboBox comboBox91;
  82. private Label label91;
  83. private Label label31;
  84. private Panel textPanel;
  85. private Label label41;
  86. private Panel linePanel;
  87. private Label label51;
  88. private Label label61;
  89. private NumericUpDown numericUpDown21;
  90. private ComboBox comboBox21;
  91. private NumericUpDown numericUpDown11;
  92. private Panel panel2;
  93. private ComboBox comboBox2;
  94. private Label label2;
  95. private Panel panel3;
  96. private ComboBox comboBox4;
  97. private Label label4;
  98. private ComboBox comboBox3;
  99. private Label label3;
  100. private Label label5;
  101. private NumericUpDown numericUpDown1;
  102. private Label label6;
  103. private ComboBox comboBox5;
  104. private GroupBox groupBox2;
  105. private Label label8;
  106. private Label label7;
  107. private Label label9;
  108. private ComboBox comboBox6;
  109. private TextBox textBox2;
  110. private TextBox textBox1;
  111. private ComboBox comboBox8;
  112. private Label label12;
  113. private ComboBox comboBox7;
  114. private Label label10;
  115. private Panel panel5;
  116. private Panel panel4;
  117. private NumericUpDown numericUpDown2;
  118. private ComboBox comboBox9;
  119. private Label label19;
  120. private Label label17;
  121. private Label label16;
  122. private Label label15;
  123. private GroupBox groupBox5;
  124. private NumericUpDown numericUpDown3;
  125. private Label label24;
  126. private NumericUpDown numericUpDown4;
  127. private ComboBox comboBox18;
  128. private NumericUpDown numericUpDown5;
  129. private Label label28;
  130. private Label label29;
  131. private Panel panel8;
  132. private Label label30;
  133. private Panel panel9;
  134. private Label label32;
  135. private Label label34;
  136. private ComboBox comboBox20;
  137. private Label label35;
  138. private CheckBox checkbox1;
  139. private AppWorkspace appWorkspace;
  140. public MeasureSettingDialog(AppWorkspace appWorkspace)
  141. {
  142. if (list == null)
  143. {
  144. list = InvariantData.GetMeasureRelations();
  145. }
  146. this.appWorkspace = appWorkspace;
  147. InitializeComponent();
  148. InitializeLanguageText();
  149. InitializeComponent2();
  150. //绑定线样式数据
  151. this.comboBox21.Items.AddRange(InvariantData.dashStyles);
  152. this.comboBox18.Items.AddRange(InvariantData.dashStyles);
  153. InitializeData();
  154. }
  155. private void InitializeLanguageText()
  156. {
  157. this.label1.Text = PdnResources.GetString("Menu.Currentoperationstyle.text") + ":";
  158. this.button4.Text = PdnResources.GetString("Menu.Edit.Delete.Text");
  159. this.button3.Text = PdnResources.GetString("Menu.File.SaveAs.Text");
  160. this.button2.Text = PdnResources.GetString("Menu.File.Save.Text");
  161. this.groupBox2.Text = PdnResources.GetString("Menu.Setting.Text");
  162. this.groupBox4.Text = PdnResources.GetString("Menu.Setting.Text");
  163. this.label71.Text = PdnResources.GetString("Markpointsize.Text") + ":";
  164. this.label91.Text = PdnResources.GetString("AngleUnit.Text") + ":";
  165. this.label7.Text = PdnResources.GetString("Alias.Text") + ":";
  166. this.label8.Text = PdnResources.GetString("Menu.file.Batchsaving.postfix.text") + ":";
  167. this.label9.Text = PdnResources.GetString("ShowAlias") + ":";
  168. this.label10.Text = PdnResources.GetString("ShowSuffix") + ":";
  169. this.label12.Text = PdnResources.GetString("ShowNumber") + ":";
  170. this.label5.Text = PdnResources.GetString("VerticalLength") + ":";
  171. this.label6.Text = PdnResources.GetString("TextDirection") + ":";
  172. this.comboBox3.Items.AddRange(new object[] {
  173. PdnResources.GetString("Menu.Upperleft.text"),
  174. PdnResources.GetString("Menu.Uppermiddle.Text"),
  175. PdnResources.GetString("Menu.Upperright.text"),
  176. PdnResources.GetString("Menu.Lowerleft.text"),
  177. PdnResources.GetString("Menu.Themiddleandlower.Text"),
  178. PdnResources.GetString("Menu.Lowerright.text")});
  179. this.comboBox91.Items.AddRange(new object[] {
  180. PdnResources.GetString("Menu.degree.Text"),
  181. PdnResources.GetString("mil")});
  182. this.comboBox4.Items.AddRange(new object[] {
  183. PdnResources.GetString("Menu.Upperleft.text"),
  184. PdnResources.GetString("Menu.Uppermiddle.Text"),
  185. PdnResources.GetString("Menu.Upperright.text"),
  186. PdnResources.GetString("Menu.Lowerleft.text"),
  187. PdnResources.GetString("Menu.Themiddleandlower.Text"),
  188. PdnResources.GetString("Menu.Lowerright.text")});
  189. this.label4.Text = PdnResources.GetString("Menu.Set.Rulersettings.Textposition.text") + "(" + PdnResources.GetString("Menu.Generalanalysis.Integrator.point.text") + "):";
  190. this.label3.Text = PdnResources.GetString("Menu.Textpositionli.Text") + ":";
  191. this.label2.Text = PdnResources.GetString("Menu.Set.Rulersettings.Textposition.text") + ":";
  192. this.label61.Text = PdnResources.GetString("Menu.Linestyle.Text") + ":";
  193. this.label51.Text = PdnResources.GetString("Menu.Set.Rulersettings.Linewidth.text") + ":";
  194. this.label41.Text = PdnResources.GetString("Menu.Set.Rulersettings.Linecolor.text") + ":";
  195. this.label31.Text = PdnResources.GetString("Menu.Textcolor.text") + ":";
  196. this.label21.Text = PdnResources.GetString("Menu.Set.Rulersettings.Fontsize.text") + ":";
  197. this.label11.Text = PdnResources.GetString("Menu.Textfont.text") + ":";
  198. this.button6.Text = PdnResources.GetString("Menu.File.SaveAll.Text");
  199. this.groupBox3.Text = PdnResources.GetString("Menu.Type.text");
  200. this.Text = PdnResources.GetString("Menu.Setting.MeasureSetting.Text");
  201. this.groupBox1.Text = PdnResources.GetString("Menu.operation.text");
  202. this.comboBox5.Items.AddRange(new object[] {
  203. PdnResources.GetString("Menu.Setting.MeasureSetting.FollowLine"),
  204. PdnResources.GetString("Menu.Level.text")});
  205. this.comboBox8.Items.AddRange(new object[] {
  206. PdnResources.GetString("Menu.Yes.text"),
  207. PdnResources.GetString("Menu.no.text")});
  208. this.comboBox7.Items.AddRange(new object[] {
  209. PdnResources.GetString("Menu.Yes.text"),
  210. PdnResources.GetString("Menu.no.text")});
  211. this.comboBox6.Items.AddRange(new object[] {
  212. PdnResources.GetString("Menu.Yes.text"),
  213. PdnResources.GetString("Menu.no.text")});
  214. }
  215. private void InitializeComponent() {
  216. this.groupBox1 = new System.Windows.Forms.GroupBox();
  217. this.label1 = new System.Windows.Forms.Label();
  218. this.comboBox1 = new System.Windows.Forms.ComboBox();
  219. this.button4 = new System.Windows.Forms.Button();
  220. this.button3 = new System.Windows.Forms.Button();
  221. this.button2 = new System.Windows.Forms.Button();
  222. this.button6 = new System.Windows.Forms.Button();
  223. this.listBox1 = new System.Windows.Forms.ListBox();
  224. this.groupBox3 = new System.Windows.Forms.GroupBox();
  225. this.button5 = new System.Windows.Forms.Button();
  226. this.numericUpDown71 = new System.Windows.Forms.NumericUpDown();
  227. this.label71 = new System.Windows.Forms.Label();
  228. this.groupBox4 = new System.Windows.Forms.GroupBox();
  229. this.checkbox1 = new System.Windows.Forms.CheckBox();
  230. this.panel5 = new System.Windows.Forms.Panel();
  231. this.panel4 = new System.Windows.Forms.Panel();
  232. this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
  233. this.comboBox9 = new System.Windows.Forms.ComboBox();
  234. this.label19 = new System.Windows.Forms.Label();
  235. this.label17 = new System.Windows.Forms.Label();
  236. this.label16 = new System.Windows.Forms.Label();
  237. this.label15 = new System.Windows.Forms.Label();
  238. this.panel1 = new System.Windows.Forms.Panel();
  239. this.label11 = new System.Windows.Forms.Label();
  240. this.comboBox11 = new System.Windows.Forms.ComboBox();
  241. this.label21 = new System.Windows.Forms.Label();
  242. this.comboBox91 = new System.Windows.Forms.ComboBox();
  243. this.label91 = new System.Windows.Forms.Label();
  244. this.label31 = new System.Windows.Forms.Label();
  245. this.textPanel = new System.Windows.Forms.Panel();
  246. this.label41 = new System.Windows.Forms.Label();
  247. this.linePanel = new System.Windows.Forms.Panel();
  248. this.label51 = new System.Windows.Forms.Label();
  249. this.label61 = new System.Windows.Forms.Label();
  250. this.numericUpDown21 = new System.Windows.Forms.NumericUpDown();
  251. this.comboBox21 = new System.Windows.Forms.ComboBox();
  252. this.numericUpDown11 = new System.Windows.Forms.NumericUpDown();
  253. this.panel2 = new System.Windows.Forms.Panel();
  254. this.comboBox2 = new System.Windows.Forms.ComboBox();
  255. this.label2 = new System.Windows.Forms.Label();
  256. this.panel3 = new System.Windows.Forms.Panel();
  257. this.comboBox4 = new System.Windows.Forms.ComboBox();
  258. this.label4 = new System.Windows.Forms.Label();
  259. this.comboBox3 = new System.Windows.Forms.ComboBox();
  260. this.label3 = new System.Windows.Forms.Label();
  261. this.label5 = new System.Windows.Forms.Label();
  262. this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
  263. this.label6 = new System.Windows.Forms.Label();
  264. this.comboBox5 = new System.Windows.Forms.ComboBox();
  265. this.groupBox2 = new System.Windows.Forms.GroupBox();
  266. this.comboBox8 = new System.Windows.Forms.ComboBox();
  267. this.label12 = new System.Windows.Forms.Label();
  268. this.comboBox7 = new System.Windows.Forms.ComboBox();
  269. this.label10 = new System.Windows.Forms.Label();
  270. this.textBox2 = new System.Windows.Forms.TextBox();
  271. this.textBox1 = new System.Windows.Forms.TextBox();
  272. this.comboBox6 = new System.Windows.Forms.ComboBox();
  273. this.label9 = new System.Windows.Forms.Label();
  274. this.label8 = new System.Windows.Forms.Label();
  275. this.label7 = new System.Windows.Forms.Label();
  276. this.groupBox5 = new System.Windows.Forms.GroupBox();
  277. this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
  278. this.label24 = new System.Windows.Forms.Label();
  279. this.numericUpDown4 = new System.Windows.Forms.NumericUpDown();
  280. this.comboBox18 = new System.Windows.Forms.ComboBox();
  281. this.numericUpDown5 = new System.Windows.Forms.NumericUpDown();
  282. this.label28 = new System.Windows.Forms.Label();
  283. this.label29 = new System.Windows.Forms.Label();
  284. this.panel8 = new System.Windows.Forms.Panel();
  285. this.label30 = new System.Windows.Forms.Label();
  286. this.panel9 = new System.Windows.Forms.Panel();
  287. this.label32 = new System.Windows.Forms.Label();
  288. this.label34 = new System.Windows.Forms.Label();
  289. this.comboBox20 = new System.Windows.Forms.ComboBox();
  290. this.label35 = new System.Windows.Forms.Label();
  291. this.groupBox1.SuspendLayout();
  292. this.groupBox3.SuspendLayout();
  293. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown71)).BeginInit();
  294. this.groupBox4.SuspendLayout();
  295. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
  296. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown21)).BeginInit();
  297. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown11)).BeginInit();
  298. this.panel2.SuspendLayout();
  299. this.panel3.SuspendLayout();
  300. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
  301. this.groupBox2.SuspendLayout();
  302. this.groupBox5.SuspendLayout();
  303. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
  304. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
  305. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit();
  306. this.SuspendLayout();
  307. //
  308. // groupBox1
  309. //
  310. this.groupBox1.Controls.Add(this.label1);
  311. this.groupBox1.Controls.Add(this.comboBox1);
  312. this.groupBox1.Controls.Add(this.button4);
  313. this.groupBox1.Controls.Add(this.button3);
  314. this.groupBox1.Controls.Add(this.button2);
  315. this.groupBox1.Location = new System.Drawing.Point(137, 12);
  316. this.groupBox1.Name = "groupBox1";
  317. this.groupBox1.Size = new System.Drawing.Size(716, 58);
  318. this.groupBox1.TabIndex = 3;
  319. this.groupBox1.TabStop = false;
  320. this.groupBox1.Text = "操作";
  321. //
  322. // label1
  323. //
  324. this.label1.AutoSize = true;
  325. this.label1.Location = new System.Drawing.Point(172, 25);
  326. this.label1.Name = "label1";
  327. this.label1.Size = new System.Drawing.Size(0, 12);
  328. this.label1.TabIndex = 5;
  329. //
  330. // comboBox1
  331. //
  332. this.comboBox1.FormattingEnabled = true;
  333. this.comboBox1.Location = new System.Drawing.Point(351, 21);
  334. this.comboBox1.Name = "comboBox1";
  335. this.comboBox1.Size = new System.Drawing.Size(116, 20);
  336. this.comboBox1.TabIndex = 4;
  337. this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
  338. //
  339. // button4
  340. //
  341. this.button4.Location = new System.Drawing.Point(473, 20);
  342. this.button4.Name = "button4";
  343. this.button4.Size = new System.Drawing.Size(75, 23);
  344. this.button4.TabIndex = 3;
  345. this.button4.Text = "删除";
  346. this.button4.UseVisualStyleBackColor = true;
  347. this.button4.Click += new System.EventHandler(this.Button4_Click);
  348. //
  349. // button3
  350. //
  351. this.button3.Location = new System.Drawing.Point(554, 20);
  352. this.button3.Name = "button3";
  353. this.button3.Size = new System.Drawing.Size(75, 23);
  354. this.button3.TabIndex = 2;
  355. this.button3.Text = "另存为";
  356. this.button3.UseVisualStyleBackColor = true;
  357. this.button3.Click += new System.EventHandler(this.Button3_Click);
  358. //
  359. // button2
  360. //
  361. this.button2.Location = new System.Drawing.Point(635, 20);
  362. this.button2.Name = "button2";
  363. this.button2.Size = new System.Drawing.Size(75, 23);
  364. this.button2.TabIndex = 1;
  365. this.button2.Text = "保存";
  366. this.button2.UseVisualStyleBackColor = true;
  367. this.button2.Click += new System.EventHandler(this.Button2_Click);
  368. //
  369. // button6
  370. //
  371. this.button6.Location = new System.Drawing.Point(778, 76);
  372. this.button6.Name = "button6";
  373. this.button6.Size = new System.Drawing.Size(75, 23);
  374. this.button6.TabIndex = 17;
  375. this.button6.Text = "保存全部";
  376. this.button6.UseVisualStyleBackColor = true;
  377. this.button6.Click += new System.EventHandler(this.button6_Click);
  378. //
  379. // listBox1
  380. //
  381. this.listBox1.FormattingEnabled = true;
  382. this.listBox1.ItemHeight = 12;
  383. this.listBox1.Location = new System.Drawing.Point(6, 20);
  384. this.listBox1.Name = "listBox1";
  385. this.listBox1.Size = new System.Drawing.Size(103, 484);
  386. this.listBox1.TabIndex = 0;
  387. this.listBox1.SelectedValueChanged += new System.EventHandler(this.listBox1_SelectedValueChanged);
  388. //
  389. // groupBox3
  390. //
  391. this.groupBox3.Controls.Add(this.listBox1);
  392. this.groupBox3.Location = new System.Drawing.Point(12, 12);
  393. this.groupBox3.Name = "groupBox3";
  394. this.groupBox3.Size = new System.Drawing.Size(115, 511);
  395. this.groupBox3.TabIndex = 9;
  396. this.groupBox3.TabStop = false;
  397. this.groupBox3.Text = "类型";
  398. //
  399. // button5
  400. //
  401. this.button5.Location = new System.Drawing.Point(0, 0);
  402. this.button5.Name = "button5";
  403. this.button5.Size = new System.Drawing.Size(75, 23);
  404. this.button5.TabIndex = 0;
  405. //
  406. // numericUpDown71
  407. //
  408. this.numericUpDown71.Location = new System.Drawing.Point(136, 23);
  409. this.numericUpDown71.Maximum = new decimal(new int[] {
  410. 100000,
  411. 0,
  412. 0,
  413. 0});
  414. this.numericUpDown71.Name = "numericUpDown71";
  415. this.numericUpDown71.Size = new System.Drawing.Size(152, 21);
  416. this.numericUpDown71.TabIndex = 14;
  417. //
  418. // label71
  419. //
  420. this.label71.Location = new System.Drawing.Point(7, 26);
  421. this.label71.Name = "label71";
  422. this.label71.Size = new System.Drawing.Size(125, 13);
  423. this.label71.TabIndex = 0;
  424. this.label71.Text = "标记点大小:";
  425. this.label71.TextAlign = System.Drawing.ContentAlignment.TopRight;
  426. //
  427. // groupBox4
  428. //
  429. this.groupBox4.Controls.Add(this.checkbox1);
  430. this.groupBox4.Controls.Add(this.panel5);
  431. this.groupBox4.Controls.Add(this.panel4);
  432. this.groupBox4.Controls.Add(this.numericUpDown2);
  433. this.groupBox4.Controls.Add(this.comboBox9);
  434. this.groupBox4.Controls.Add(this.label19);
  435. this.groupBox4.Controls.Add(this.label17);
  436. this.groupBox4.Controls.Add(this.label16);
  437. this.groupBox4.Controls.Add(this.label15);
  438. this.groupBox4.Controls.Add(this.label71);
  439. this.groupBox4.Controls.Add(this.numericUpDown71);
  440. this.groupBox4.Location = new System.Drawing.Point(137, 76);
  441. this.groupBox4.Name = "groupBox4";
  442. this.groupBox4.Size = new System.Drawing.Size(716, 277);
  443. this.groupBox4.TabIndex = 6;
  444. this.groupBox4.TabStop = false;
  445. this.groupBox4.Text = "设置";
  446. this.groupBox4.Visible = false;
  447. //
  448. // checkbox1
  449. //
  450. this.checkbox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
  451. this.checkbox1.AutoSize = true;
  452. this.checkbox1.Location = new System.Drawing.Point(137, 245);
  453. this.checkbox1.Name = "checkbox1";
  454. this.checkbox1.Size = new System.Drawing.Size(78, 16);
  455. this.checkbox1.TabIndex = 33;
  456. this.checkbox1.Text = "跟随缩放 ";
  457. this.checkbox1.UseVisualStyleBackColor = true;
  458. //
  459. // panel5
  460. //
  461. this.panel5.BackColor = System.Drawing.SystemColors.Window;
  462. this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  463. this.panel5.Location = new System.Drawing.Point(138, 113);
  464. this.panel5.Name = "panel5";
  465. this.panel5.Size = new System.Drawing.Size(152, 20);
  466. this.panel5.TabIndex = 32;
  467. this.panel5.Click += new System.EventHandler(this.panel5Click);
  468. //
  469. // panel4
  470. //
  471. this.panel4.BackColor = System.Drawing.SystemColors.Window;
  472. this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  473. this.panel4.Location = new System.Drawing.Point(138, 199);
  474. this.panel4.Name = "panel4";
  475. this.panel4.Size = new System.Drawing.Size(152, 20);
  476. this.panel4.TabIndex = 31;
  477. this.panel4.Click += new System.EventHandler(this.panel4Click);
  478. //
  479. // numericUpDown2
  480. //
  481. this.numericUpDown2.Location = new System.Drawing.Point(138, 154);
  482. this.numericUpDown2.Maximum = new decimal(new int[] {
  483. 100000,
  484. 0,
  485. 0,
  486. 0});
  487. this.numericUpDown2.Name = "numericUpDown2";
  488. this.numericUpDown2.Size = new System.Drawing.Size(152, 21);
  489. this.numericUpDown2.TabIndex = 30;
  490. //
  491. // comboBox9
  492. //
  493. this.comboBox9.FormattingEnabled = true;
  494. this.comboBox9.Location = new System.Drawing.Point(138, 67);
  495. this.comboBox9.Name = "comboBox9";
  496. this.comboBox9.Size = new System.Drawing.Size(150, 20);
  497. this.comboBox9.TabIndex = 29;
  498. //
  499. // label19
  500. //
  501. this.label19.AutoSize = true;
  502. this.label19.Location = new System.Drawing.Point(65, 203);
  503. this.label19.Name = "label19";
  504. this.label19.Size = new System.Drawing.Size(65, 12);
  505. this.label19.TabIndex = 28;
  506. this.label19.Text = "填充颜色:";
  507. //
  508. // label17
  509. //
  510. this.label17.AutoSize = true;
  511. this.label17.Location = new System.Drawing.Point(65, 158);
  512. this.label17.Name = "label17";
  513. this.label17.Size = new System.Drawing.Size(65, 12);
  514. this.label17.TabIndex = 27;
  515. this.label17.Text = "线条宽度:";
  516. //
  517. // label16
  518. //
  519. this.label16.AutoSize = true;
  520. this.label16.Location = new System.Drawing.Point(67, 117);
  521. this.label16.Name = "label16";
  522. this.label16.Size = new System.Drawing.Size(65, 12);
  523. this.label16.TabIndex = 26;
  524. this.label16.Text = "线条颜色:";
  525. //
  526. // label15
  527. //
  528. this.label15.AutoSize = true;
  529. this.label15.Location = new System.Drawing.Point(55, 71);
  530. this.label15.Name = "label15";
  531. this.label15.Size = new System.Drawing.Size(77, 12);
  532. this.label15.TabIndex = 25;
  533. this.label15.Text = "标记点样式:";
  534. //
  535. // panel1
  536. //
  537. this.panel1.Location = new System.Drawing.Point(137, 76);
  538. this.panel1.Name = "panel1";
  539. this.panel1.Size = new System.Drawing.Size(633, 36);
  540. this.panel1.TabIndex = 8;
  541. //
  542. // label11
  543. //
  544. this.label11.AutoSize = true;
  545. this.label11.Location = new System.Drawing.Point(13, 23);
  546. this.label11.Name = "label11";
  547. this.label11.Size = new System.Drawing.Size(65, 12);
  548. this.label11.TabIndex = 0;
  549. this.label11.Text = "文字字体:";
  550. //
  551. // comboBox11
  552. //
  553. this.comboBox11.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  554. this.comboBox11.FormattingEnabled = true;
  555. this.comboBox11.Location = new System.Drawing.Point(91, 20);
  556. this.comboBox11.Name = "comboBox11";
  557. this.comboBox11.Size = new System.Drawing.Size(152, 20);
  558. this.comboBox11.TabIndex = 1;
  559. //
  560. // label21
  561. //
  562. this.label21.AutoSize = true;
  563. this.label21.Location = new System.Drawing.Point(13, 50);
  564. this.label21.Name = "label21";
  565. this.label21.Size = new System.Drawing.Size(65, 12);
  566. this.label21.TabIndex = 2;
  567. this.label21.Text = "文字字号:";
  568. //
  569. // comboBox91
  570. //
  571. this.comboBox91.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  572. this.comboBox91.FormattingEnabled = true;
  573. this.comboBox91.Location = new System.Drawing.Point(91, 179);
  574. this.comboBox91.Name = "comboBox91";
  575. this.comboBox91.Size = new System.Drawing.Size(152, 20);
  576. this.comboBox91.TabIndex = 15;
  577. //
  578. // label91
  579. //
  580. this.label91.AutoSize = true;
  581. this.label91.Location = new System.Drawing.Point(14, 182);
  582. this.label91.Name = "label91";
  583. this.label91.Size = new System.Drawing.Size(65, 12);
  584. this.label91.TabIndex = 14;
  585. this.label91.Text = "角度单位:";
  586. //
  587. // label31
  588. //
  589. this.label31.AutoSize = true;
  590. this.label31.Location = new System.Drawing.Point(13, 76);
  591. this.label31.Name = "label31";
  592. this.label31.Size = new System.Drawing.Size(65, 12);
  593. this.label31.TabIndex = 4;
  594. this.label31.Text = "文字颜色:";
  595. //
  596. // textPanel
  597. //
  598. this.textPanel.BackColor = System.Drawing.SystemColors.Window;
  599. this.textPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  600. this.textPanel.Location = new System.Drawing.Point(91, 73);
  601. this.textPanel.Name = "textPanel";
  602. this.textPanel.Size = new System.Drawing.Size(152, 20);
  603. this.textPanel.TabIndex = 5;
  604. this.textPanel.Click += new System.EventHandler(this.textColorPanel_Click);
  605. //
  606. // label41
  607. //
  608. this.label41.AutoSize = true;
  609. this.label41.Location = new System.Drawing.Point(13, 99);
  610. this.label41.Name = "label41";
  611. this.label41.Size = new System.Drawing.Size(65, 12);
  612. this.label41.TabIndex = 6;
  613. this.label41.Text = "线条颜色:";
  614. //
  615. // linePanel
  616. //
  617. this.linePanel.BackColor = System.Drawing.SystemColors.Window;
  618. this.linePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  619. this.linePanel.Location = new System.Drawing.Point(91, 99);
  620. this.linePanel.Name = "linePanel";
  621. this.linePanel.Size = new System.Drawing.Size(152, 20);
  622. this.linePanel.TabIndex = 7;
  623. this.linePanel.Click += new System.EventHandler(this.lineColorPanel_Click);
  624. //
  625. // label51
  626. //
  627. this.label51.AutoSize = true;
  628. this.label51.Location = new System.Drawing.Point(13, 128);
  629. this.label51.Name = "label51";
  630. this.label51.Size = new System.Drawing.Size(65, 12);
  631. this.label51.TabIndex = 8;
  632. this.label51.Text = "线条宽度:";
  633. //
  634. // label61
  635. //
  636. this.label61.AutoSize = true;
  637. this.label61.Location = new System.Drawing.Point(13, 155);
  638. this.label61.Name = "label61";
  639. this.label61.Size = new System.Drawing.Size(65, 12);
  640. this.label61.TabIndex = 9;
  641. this.label61.Text = "线条样式:";
  642. //
  643. // numericUpDown21
  644. //
  645. this.numericUpDown21.Location = new System.Drawing.Point(91, 46);
  646. this.numericUpDown21.Maximum = new decimal(new int[] {
  647. 49000,
  648. 0,
  649. 0,
  650. 0});
  651. this.numericUpDown21.Minimum = new decimal(new int[] {
  652. 1,
  653. 0,
  654. 0,
  655. 0});
  656. this.numericUpDown21.Name = "numericUpDown21";
  657. this.numericUpDown21.Size = new System.Drawing.Size(152, 21);
  658. this.numericUpDown21.TabIndex = 12;
  659. this.numericUpDown21.Value = new decimal(new int[] {
  660. 1,
  661. 0,
  662. 0,
  663. 0});
  664. //
  665. // comboBox21
  666. //
  667. this.comboBox21.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  668. this.comboBox21.FormattingEnabled = true;
  669. this.comboBox21.Location = new System.Drawing.Point(91, 151);
  670. this.comboBox21.Name = "comboBox21";
  671. this.comboBox21.Size = new System.Drawing.Size(152, 20);
  672. this.comboBox21.TabIndex = 13;
  673. //
  674. // numericUpDown11
  675. //
  676. this.numericUpDown11.Location = new System.Drawing.Point(91, 125);
  677. this.numericUpDown11.Name = "numericUpDown11";
  678. this.numericUpDown11.Size = new System.Drawing.Size(152, 21);
  679. this.numericUpDown11.TabIndex = 14;
  680. //
  681. // panel2
  682. //
  683. this.panel2.Controls.Add(this.comboBox2);
  684. this.panel2.Controls.Add(this.label2);
  685. this.panel2.Location = new System.Drawing.Point(9, 175);
  686. this.panel2.Name = "panel2";
  687. this.panel2.Size = new System.Drawing.Size(236, 57);
  688. this.panel2.TabIndex = 15;
  689. //
  690. // comboBox2
  691. //
  692. this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  693. this.comboBox2.FormattingEnabled = true;
  694. this.comboBox2.Location = new System.Drawing.Point(82, 3);
  695. this.comboBox2.Name = "comboBox2";
  696. this.comboBox2.Size = new System.Drawing.Size(152, 20);
  697. this.comboBox2.TabIndex = 15;
  698. //
  699. // label2
  700. //
  701. this.label2.AutoSize = true;
  702. this.label2.Location = new System.Drawing.Point(5, 7);
  703. this.label2.Name = "label2";
  704. this.label2.Size = new System.Drawing.Size(0, 12);
  705. this.label2.TabIndex = 14;
  706. //
  707. // panel3
  708. //
  709. this.panel3.Controls.Add(this.comboBox4);
  710. this.panel3.Controls.Add(this.label4);
  711. this.panel3.Controls.Add(this.comboBox3);
  712. this.panel3.Controls.Add(this.label3);
  713. this.panel3.Location = new System.Drawing.Point(9, 175);
  714. this.panel3.Name = "panel3";
  715. this.panel3.Size = new System.Drawing.Size(236, 57);
  716. this.panel3.TabIndex = 16;
  717. //
  718. // comboBox4
  719. //
  720. this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  721. this.comboBox4.FormattingEnabled = true;
  722. this.comboBox4.Location = new System.Drawing.Point(112, 30);
  723. this.comboBox4.Name = "comboBox4";
  724. this.comboBox4.Size = new System.Drawing.Size(122, 20);
  725. this.comboBox4.TabIndex = 17;
  726. //
  727. // label4
  728. //
  729. this.label4.AutoSize = true;
  730. this.label4.Location = new System.Drawing.Point(5, 34);
  731. this.label4.Name = "label4";
  732. this.label4.Size = new System.Drawing.Size(89, 12);
  733. this.label4.TabIndex = 16;
  734. this.label4.Text = "文字位置(点):";
  735. //
  736. // comboBox3
  737. //
  738. this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  739. this.comboBox3.FormattingEnabled = true;
  740. this.comboBox3.Location = new System.Drawing.Point(112, 4);
  741. this.comboBox3.Name = "comboBox3";
  742. this.comboBox3.Size = new System.Drawing.Size(122, 20);
  743. this.comboBox3.TabIndex = 15;
  744. //
  745. // label3
  746. //
  747. this.label3.AutoSize = true;
  748. this.label3.Location = new System.Drawing.Point(5, 7);
  749. this.label3.Name = "label3";
  750. this.label3.Size = new System.Drawing.Size(89, 12);
  751. this.label3.TabIndex = 14;
  752. this.label3.Text = "文字位置(线):";
  753. //
  754. // label5
  755. //
  756. this.label5.AutoSize = true;
  757. this.label5.Location = new System.Drawing.Point(266, 155);
  758. this.label5.Name = "label5";
  759. this.label5.Size = new System.Drawing.Size(65, 12);
  760. this.label5.TabIndex = 17;
  761. this.label5.Text = "垂线长度:";
  762. //
  763. // numericUpDown1
  764. //
  765. this.numericUpDown1.Location = new System.Drawing.Point(368, 155);
  766. this.numericUpDown1.Name = "numericUpDown1";
  767. this.numericUpDown1.Size = new System.Drawing.Size(152, 21);
  768. this.numericUpDown1.TabIndex = 18;
  769. //
  770. // label6
  771. //
  772. this.label6.AutoSize = true;
  773. this.label6.Location = new System.Drawing.Point(266, 182);
  774. this.label6.Name = "label6";
  775. this.label6.Size = new System.Drawing.Size(65, 12);
  776. this.label6.TabIndex = 19;
  777. this.label6.Text = "文字方向:";
  778. //
  779. // comboBox5
  780. //
  781. this.comboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  782. this.comboBox5.FormattingEnabled = true;
  783. this.comboBox5.Location = new System.Drawing.Point(368, 182);
  784. this.comboBox5.Name = "comboBox5";
  785. this.comboBox5.Size = new System.Drawing.Size(152, 20);
  786. this.comboBox5.TabIndex = 20;
  787. //
  788. // groupBox2
  789. //
  790. this.groupBox2.Controls.Add(this.comboBox8);
  791. this.groupBox2.Controls.Add(this.label12);
  792. this.groupBox2.Controls.Add(this.comboBox7);
  793. this.groupBox2.Controls.Add(this.label10);
  794. this.groupBox2.Controls.Add(this.textBox2);
  795. this.groupBox2.Controls.Add(this.textBox1);
  796. this.groupBox2.Controls.Add(this.comboBox6);
  797. this.groupBox2.Controls.Add(this.label9);
  798. this.groupBox2.Controls.Add(this.label8);
  799. this.groupBox2.Controls.Add(this.label7);
  800. this.groupBox2.Controls.Add(this.comboBox5);
  801. this.groupBox2.Controls.Add(this.label6);
  802. this.groupBox2.Controls.Add(this.numericUpDown1);
  803. this.groupBox2.Controls.Add(this.label5);
  804. this.groupBox2.Controls.Add(this.panel3);
  805. this.groupBox2.Controls.Add(this.panel2);
  806. this.groupBox2.Controls.Add(this.numericUpDown11);
  807. this.groupBox2.Controls.Add(this.comboBox21);
  808. this.groupBox2.Controls.Add(this.numericUpDown21);
  809. this.groupBox2.Controls.Add(this.label61);
  810. this.groupBox2.Controls.Add(this.label51);
  811. this.groupBox2.Controls.Add(this.linePanel);
  812. this.groupBox2.Controls.Add(this.label41);
  813. this.groupBox2.Controls.Add(this.textPanel);
  814. this.groupBox2.Controls.Add(this.label31);
  815. this.groupBox2.Controls.Add(this.label91);
  816. this.groupBox2.Controls.Add(this.comboBox91);
  817. this.groupBox2.Controls.Add(this.label21);
  818. this.groupBox2.Controls.Add(this.comboBox11);
  819. this.groupBox2.Controls.Add(this.label11);
  820. this.groupBox2.Location = new System.Drawing.Point(137, 118);
  821. this.groupBox2.Name = "groupBox2";
  822. this.groupBox2.Size = new System.Drawing.Size(716, 235);
  823. this.groupBox2.TabIndex = 6;
  824. this.groupBox2.TabStop = false;
  825. this.groupBox2.Text = "设置";
  826. //
  827. // comboBox8
  828. //
  829. this.comboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  830. this.comboBox8.FormattingEnabled = true;
  831. this.comboBox8.Location = new System.Drawing.Point(368, 125);
  832. this.comboBox8.Name = "comboBox8";
  833. this.comboBox8.Size = new System.Drawing.Size(127, 20);
  834. this.comboBox8.TabIndex = 32;
  835. //
  836. // label12
  837. //
  838. this.label12.AutoSize = true;
  839. this.label12.Location = new System.Drawing.Point(266, 127);
  840. this.label12.Name = "label12";
  841. this.label12.Size = new System.Drawing.Size(89, 12);
  842. this.label12.TabIndex = 31;
  843. this.label12.Text = "是否展示序号:";
  844. //
  845. // comboBox7
  846. //
  847. this.comboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  848. this.comboBox7.FormattingEnabled = true;
  849. this.comboBox7.Location = new System.Drawing.Point(368, 99);
  850. this.comboBox7.Name = "comboBox7";
  851. this.comboBox7.Size = new System.Drawing.Size(127, 20);
  852. this.comboBox7.TabIndex = 30;
  853. //
  854. // label10
  855. //
  856. this.label10.AutoSize = true;
  857. this.label10.Location = new System.Drawing.Point(266, 99);
  858. this.label10.Name = "label10";
  859. this.label10.Size = new System.Drawing.Size(89, 12);
  860. this.label10.TabIndex = 29;
  861. this.label10.Text = "是否展示后缀:";
  862. //
  863. // textBox2
  864. //
  865. this.textBox2.Location = new System.Drawing.Point(368, 46);
  866. this.textBox2.Name = "textBox2";
  867. this.textBox2.Size = new System.Drawing.Size(152, 21);
  868. this.textBox2.TabIndex = 28;
  869. //
  870. // textBox1
  871. //
  872. this.textBox1.Location = new System.Drawing.Point(368, 19);
  873. this.textBox1.Name = "textBox1";
  874. this.textBox1.Size = new System.Drawing.Size(152, 21);
  875. this.textBox1.TabIndex = 27;
  876. //
  877. // comboBox6
  878. //
  879. this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  880. this.comboBox6.FormattingEnabled = true;
  881. this.comboBox6.Location = new System.Drawing.Point(368, 73);
  882. this.comboBox6.Name = "comboBox6";
  883. this.comboBox6.Size = new System.Drawing.Size(127, 20);
  884. this.comboBox6.TabIndex = 26;
  885. //
  886. // label9
  887. //
  888. this.label9.AutoSize = true;
  889. this.label9.Location = new System.Drawing.Point(266, 76);
  890. this.label9.Name = "label9";
  891. this.label9.Size = new System.Drawing.Size(89, 12);
  892. this.label9.TabIndex = 25;
  893. this.label9.Text = "是否展示别名:";
  894. //
  895. // label8
  896. //
  897. this.label8.AutoSize = true;
  898. this.label8.Location = new System.Drawing.Point(266, 50);
  899. this.label8.Name = "label8";
  900. this.label8.Size = new System.Drawing.Size(41, 12);
  901. this.label8.TabIndex = 22;
  902. this.label8.Text = "后缀:";
  903. //
  904. // label7
  905. //
  906. this.label7.AutoSize = true;
  907. this.label7.Location = new System.Drawing.Point(266, 23);
  908. this.label7.Name = "label7";
  909. this.label7.Size = new System.Drawing.Size(41, 12);
  910. this.label7.TabIndex = 21;
  911. this.label7.Text = "别名:";
  912. //
  913. // groupBox5
  914. //
  915. this.groupBox5.Controls.Add(this.numericUpDown3);
  916. this.groupBox5.Controls.Add(this.label24);
  917. this.groupBox5.Controls.Add(this.numericUpDown4);
  918. this.groupBox5.Controls.Add(this.comboBox18);
  919. this.groupBox5.Controls.Add(this.numericUpDown5);
  920. this.groupBox5.Controls.Add(this.label28);
  921. this.groupBox5.Controls.Add(this.label29);
  922. this.groupBox5.Controls.Add(this.panel8);
  923. this.groupBox5.Controls.Add(this.label30);
  924. this.groupBox5.Controls.Add(this.panel9);
  925. this.groupBox5.Controls.Add(this.label32);
  926. this.groupBox5.Controls.Add(this.label34);
  927. this.groupBox5.Controls.Add(this.comboBox20);
  928. this.groupBox5.Controls.Add(this.label35);
  929. this.groupBox5.Location = new System.Drawing.Point(137, 358);
  930. this.groupBox5.Name = "groupBox5";
  931. this.groupBox5.Size = new System.Drawing.Size(716, 165);
  932. this.groupBox5.TabIndex = 18;
  933. this.groupBox5.TabStop = false;
  934. this.groupBox5.Text = "选中设置";
  935. //
  936. // numericUpDown3
  937. //
  938. this.numericUpDown3.Location = new System.Drawing.Point(91, 107);
  939. this.numericUpDown3.Name = "numericUpDown3";
  940. this.numericUpDown3.Size = new System.Drawing.Size(152, 21);
  941. this.numericUpDown3.TabIndex = 18;
  942. //
  943. // label24
  944. //
  945. this.label24.AutoSize = true;
  946. this.label24.Location = new System.Drawing.Point(15, 108);
  947. this.label24.Name = "label24";
  948. this.label24.Size = new System.Drawing.Size(65, 12);
  949. this.label24.TabIndex = 17;
  950. this.label24.Text = "垂线长度:";
  951. //
  952. // numericUpDown4
  953. //
  954. this.numericUpDown4.Location = new System.Drawing.Point(343, 47);
  955. this.numericUpDown4.Name = "numericUpDown4";
  956. this.numericUpDown4.Size = new System.Drawing.Size(152, 21);
  957. this.numericUpDown4.TabIndex = 14;
  958. //
  959. // comboBox18
  960. //
  961. this.comboBox18.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  962. this.comboBox18.FormattingEnabled = true;
  963. this.comboBox18.Location = new System.Drawing.Point(343, 72);
  964. this.comboBox18.Name = "comboBox18";
  965. this.comboBox18.Size = new System.Drawing.Size(152, 20);
  966. this.comboBox18.TabIndex = 13;
  967. //
  968. // numericUpDown5
  969. //
  970. this.numericUpDown5.Location = new System.Drawing.Point(91, 46);
  971. this.numericUpDown5.Maximum = new decimal(new int[] {
  972. 49000,
  973. 0,
  974. 0,
  975. 0});
  976. this.numericUpDown5.Minimum = new decimal(new int[] {
  977. 1,
  978. 0,
  979. 0,
  980. 0});
  981. this.numericUpDown5.Name = "numericUpDown5";
  982. this.numericUpDown5.Size = new System.Drawing.Size(152, 21);
  983. this.numericUpDown5.TabIndex = 12;
  984. this.numericUpDown5.Value = new decimal(new int[] {
  985. 1,
  986. 0,
  987. 0,
  988. 0});
  989. //
  990. // label28
  991. //
  992. this.label28.AutoSize = true;
  993. this.label28.Location = new System.Drawing.Point(266, 76);
  994. this.label28.Name = "label28";
  995. this.label28.Size = new System.Drawing.Size(65, 12);
  996. this.label28.TabIndex = 9;
  997. this.label28.Text = "线条样式:";
  998. //
  999. // label29
  1000. //
  1001. this.label29.AutoSize = true;
  1002. this.label29.Location = new System.Drawing.Point(266, 49);
  1003. this.label29.Name = "label29";
  1004. this.label29.Size = new System.Drawing.Size(65, 12);
  1005. this.label29.TabIndex = 8;
  1006. this.label29.Text = "线条宽度:";
  1007. //
  1008. // panel8
  1009. //
  1010. this.panel8.BackColor = System.Drawing.SystemColors.Window;
  1011. this.panel8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  1012. this.panel8.Location = new System.Drawing.Point(343, 20);
  1013. this.panel8.Name = "panel8";
  1014. this.panel8.Size = new System.Drawing.Size(152, 20);
  1015. this.panel8.TabIndex = 7;
  1016. this.panel8.Click += new System.EventHandler(this.panel8Click);
  1017. //
  1018. // label30
  1019. //
  1020. this.label30.AutoSize = true;
  1021. this.label30.Location = new System.Drawing.Point(266, 20);
  1022. this.label30.Name = "label30";
  1023. this.label30.Size = new System.Drawing.Size(65, 12);
  1024. this.label30.TabIndex = 6;
  1025. this.label30.Text = "线条颜色:";
  1026. //
  1027. // panel9
  1028. //
  1029. this.panel9.BackColor = System.Drawing.SystemColors.Window;
  1030. this.panel9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  1031. this.panel9.Location = new System.Drawing.Point(91, 73);
  1032. this.panel9.Name = "panel9";
  1033. this.panel9.Size = new System.Drawing.Size(152, 20);
  1034. this.panel9.TabIndex = 5;
  1035. this.panel9.Click += new System.EventHandler(this.panel9Click);
  1036. //
  1037. // label32
  1038. //
  1039. this.label32.AutoSize = true;
  1040. this.label32.Location = new System.Drawing.Point(13, 76);
  1041. this.label32.Name = "label32";
  1042. this.label32.Size = new System.Drawing.Size(65, 12);
  1043. this.label32.TabIndex = 4;
  1044. this.label32.Text = "文字颜色:";
  1045. //
  1046. // label34
  1047. //
  1048. this.label34.AutoSize = true;
  1049. this.label34.Location = new System.Drawing.Point(13, 50);
  1050. this.label34.Name = "label34";
  1051. this.label34.Size = new System.Drawing.Size(65, 12);
  1052. this.label34.TabIndex = 2;
  1053. this.label34.Text = "文字字号:";
  1054. //
  1055. // comboBox20
  1056. //
  1057. this.comboBox20.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
  1058. this.comboBox20.FormattingEnabled = true;
  1059. this.comboBox20.Location = new System.Drawing.Point(91, 20);
  1060. this.comboBox20.Name = "comboBox20";
  1061. this.comboBox20.Size = new System.Drawing.Size(152, 20);
  1062. this.comboBox20.TabIndex = 1;
  1063. //
  1064. // label35
  1065. //
  1066. this.label35.AutoSize = true;
  1067. this.label35.Location = new System.Drawing.Point(13, 23);
  1068. this.label35.Name = "label35";
  1069. this.label35.Size = new System.Drawing.Size(65, 12);
  1070. this.label35.TabIndex = 0;
  1071. this.label35.Text = "文字字体:";
  1072. //
  1073. // MeasureSettingDialog
  1074. //
  1075. this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
  1076. this.ClientSize = new System.Drawing.Size(865, 532);
  1077. this.Controls.Add(this.groupBox5);
  1078. this.Controls.Add(this.button6);
  1079. this.Controls.Add(this.groupBox3);
  1080. this.Controls.Add(this.groupBox1);
  1081. this.Controls.Add(this.groupBox2);
  1082. this.Controls.Add(this.panel1);
  1083. this.Controls.Add(this.groupBox4);
  1084. this.Margin = new System.Windows.Forms.Padding(4);
  1085. this.Name = "MeasureSettingDialog";
  1086. this.Text = "测量设置";
  1087. this.Controls.SetChildIndex(this.groupBox4, 0);
  1088. this.Controls.SetChildIndex(this.panel1, 0);
  1089. this.Controls.SetChildIndex(this.groupBox2, 0);
  1090. this.Controls.SetChildIndex(this.groupBox1, 0);
  1091. this.Controls.SetChildIndex(this.groupBox3, 0);
  1092. this.Controls.SetChildIndex(this.button6, 0);
  1093. this.Controls.SetChildIndex(this.groupBox5, 0);
  1094. this.groupBox1.ResumeLayout(false);
  1095. this.groupBox1.PerformLayout();
  1096. this.groupBox3.ResumeLayout(false);
  1097. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown71)).EndInit();
  1098. this.groupBox4.ResumeLayout(false);
  1099. this.groupBox4.PerformLayout();
  1100. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
  1101. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown21)).EndInit();
  1102. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown11)).EndInit();
  1103. this.panel2.ResumeLayout(false);
  1104. this.panel2.PerformLayout();
  1105. this.panel3.ResumeLayout(false);
  1106. this.panel3.PerformLayout();
  1107. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
  1108. this.groupBox2.ResumeLayout(false);
  1109. this.groupBox2.PerformLayout();
  1110. this.groupBox5.ResumeLayout(false);
  1111. this.groupBox5.PerformLayout();
  1112. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
  1113. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
  1114. ((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).EndInit();
  1115. this.ResumeLayout(false);
  1116. }
  1117. #region InitializeComponent2
  1118. /// <summary>
  1119. /// 初始化组件
  1120. /// </summary>
  1121. private void InitializeComponent2()
  1122. {
  1123. this.colorsForm = new ColorsForm();
  1124. this.colorsForm.StartPosition = FormStartPosition.CenterScreen;
  1125. this.colorsForm.UserPrimaryColorChanged += new ColorEventHandler(this.colorsFormUserPrimaryColorChanged);
  1126. this.colorsForm1 = new ColorsForm();
  1127. this.colorsForm1.StartPosition = FormStartPosition.CenterScreen;
  1128. this.colorsForm1.UserPrimaryColorChanged += new ColorEventHandler(this.colorsFormUserPrimaryColorChanged);
  1129. this.colorsForm2 = new ColorsForm();
  1130. this.colorsForm2.StartPosition = FormStartPosition.CenterScreen;
  1131. this.colorsForm2.UserPrimaryColorChanged += new ColorEventHandler(this.colorsFormUserPrimaryColorChanged);
  1132. this.colorsForm3 = new ColorsForm();
  1133. this.colorsForm3.StartPosition = FormStartPosition.CenterScreen;
  1134. this.colorsForm3.UserPrimaryColorChanged += new ColorEventHandler(this.colorsFormUserPrimaryColorChanged);
  1135. this.colorsForm4 = new ColorsForm();
  1136. this.colorsForm4.StartPosition = FormStartPosition.CenterScreen;
  1137. this.colorsForm4.UserPrimaryColorChanged += new ColorEventHandler(this.colorsFormUserPrimaryColorChanged);
  1138. this.colorsForm5 = new ColorsForm();
  1139. this.colorsForm5.StartPosition = FormStartPosition.CenterScreen;
  1140. this.colorsForm5.UserPrimaryColorChanged += new ColorEventHandler(this.colorsFormUserPrimaryColorChanged);
  1141. }
  1142. #endregion
  1143. /// <summary>
  1144. /// 初始化数据
  1145. /// </summary>
  1146. private void InitializeData()
  1147. {
  1148. this.listBox1.Items.Clear();
  1149. //绑定左侧listbox数据
  1150. foreach (MeasureRelationModel model in list)
  1151. {
  1152. if(model.id>0)
  1153. this.listBox1.Items.Add(model.name);
  1154. }
  1155. this.listBox1.SelectedIndex = 0;
  1156. this.fontsItems.Clear();
  1157. //绑定字体数据
  1158. System.Drawing.Text.InstalledFontCollection fonts = new System.Drawing.Text.InstalledFontCollection();
  1159. foreach (FontFamily fontFamily in fonts.Families)
  1160. {
  1161. fontsItems.Add(fontFamily.Name);
  1162. }
  1163. this.comboBox11.DataSource = fontsItems;
  1164. this.comboBox20.DataSource = fontsItems;
  1165. //绑定样式默认数据
  1166. this.comboBox11.Text = this.measureStyleModel.measureLine.font;
  1167. this.numericUpDown21.Value = this.measureStyleModel.measureLine.fontSize;
  1168. this.textPanel.BackColor = Color.FromArgb(this.measureStyleModel.measureLine.textColor);
  1169. this.linePanel.BackColor = Color.FromArgb(this.measureStyleModel.measureLine.lineColor);
  1170. this.numericUpDown11.Value = this.measureStyleModel.measureLine.lineWidth;
  1171. this.comboBox21.SelectedIndex = this.measureStyleModel.measureLine.lineStyle;
  1172. this.comboBox2.SelectedIndex = this.measureStyleModel.measureLine.linePosition;
  1173. this.numericUpDown1.Value = this.measureStyleModel.measureLine.vLineLength;
  1174. #region [选中样式]
  1175. this.comboBox20.Text = this.measureStyleModel.measureLine.chooseStyle == null ? "" : this.measureStyleModel.measureLine.chooseStyle.font;
  1176. this.numericUpDown4.Value = this.measureStyleModel.measureLine.chooseStyle == null ? 1 : this.measureStyleModel.measureLine.chooseStyle.lineWidth;
  1177. this.numericUpDown5.Value = this.measureStyleModel.measureLine.chooseStyle == null ? 1 : this.measureStyleModel.measureLine.chooseStyle.fontSize;
  1178. this.panel9.BackColor = this.measureStyleModel.measureLine.chooseStyle == null ? Color.Black : Color.FromArgb(this.measureStyleModel.measureLine.chooseStyle.textColor);
  1179. this.numericUpDown3.Value = this.measureStyleModel.measureLine.chooseStyle == null ? 0 : this.measureStyleModel.measureLine.chooseStyle.vLineLength;
  1180. this.panel8.BackColor = this.measureStyleModel.measureLine.chooseStyle == null ? Color.Black : Color.FromArgb(this.measureStyleModel.measureLine.chooseStyle.lineColor);
  1181. this.comboBox18.SelectedIndex = this.measureStyleModel.measureLine.chooseStyle == null ? 0 : this.measureStyleModel.measureLine.chooseStyle.lineStyle;
  1182. #endregion
  1183. #region [标记点相关]
  1184. this.comboBox9.Items.Add("正方形");
  1185. this.comboBox9.Items.Add("圆形");
  1186. this.comboBox9.Items.Add("三角形");
  1187. this.numericUpDown71.Value = this.config.MarkpointWidth;
  1188. this.comboBox9.SelectedIndex = this.config.MarkpointStyle;
  1189. this.panel5.BackColor = Color.FromArgb(this.config.MarkpointLineColor);
  1190. this.numericUpDown2.Value = this.config.MarkpointLineWidth;
  1191. this.panel4.BackColor = Color.FromArgb(this.config.MarkpointAreaColor);
  1192. this.checkbox1.Checked = this.config.isFollow;
  1193. #endregion
  1194. this.textBox1.Text = this.measureStyleModel.measureLine.aliasName;
  1195. this.textBox2.Text = this.measureStyleModel.measureLine.suffixName;
  1196. this.comboBox6.SelectedIndex = this.measureStyleModel.measureLine.showAlias ? 0 : 1;
  1197. this.comboBox7.SelectedIndex = this.measureStyleModel.measureLine.showSuffix ? 0 : 1;
  1198. this.comboBox8.SelectedIndex = this.measureStyleModel.measureLine.showSerial ? 0 : 1;
  1199. //绑定样式下拉 todo
  1200. if (initflag++ == 0) {
  1201. InitializeStyleName();
  1202. }
  1203. }
  1204. /// <summary>
  1205. /// 左侧listbox选择事件
  1206. /// </summary>
  1207. /// <param name="sender"></param>
  1208. /// <param name="e"></param>
  1209. private void listBox1_SelectedValueChanged(object sender, EventArgs e)
  1210. {
  1211. //首先更新右侧分类部分
  1212. UpdateRightCatalog();
  1213. //更新右侧设置界面
  1214. UpdateRightSettingUI();
  1215. //刷新右侧预览
  1216. UpdateRightPreview();
  1217. }
  1218. /// <summary>
  1219. /// 更新右侧分类
  1220. /// </summary>
  1221. private void UpdateRightCatalog()
  1222. {
  1223. this.panel1.Controls.Clear();
  1224. MeasureRelationModel model = list[this.listBox1.SelectedIndex + 1];
  1225. this.selectId = model.id;
  1226. if (this.selectId == 10)
  1227. {
  1228. groupBox2.Visible = false;
  1229. groupBox5.Visible = false;
  1230. groupBox4.Visible = true;
  1231. panel1.Visible = false;
  1232. button6.Visible = false;
  1233. comboBox1.Visible = false;
  1234. button4.Visible = false;
  1235. button3.Visible = false;
  1236. label1.Visible = false;
  1237. }
  1238. else {
  1239. groupBox2.Visible = true;
  1240. groupBox5.Visible = true;
  1241. groupBox4.Visible = false;
  1242. panel1.Visible = true;
  1243. button6.Visible = true;
  1244. comboBox1.Visible = true;
  1245. button4.Visible = true;
  1246. button3.Visible = true;
  1247. label1.Visible = true;
  1248. }
  1249. int postion = 0;
  1250. foreach (MeasureRelationModel.ChildLabel child in model.childLabel)
  1251. {
  1252. if((int)child.drawToolType > 0)
  1253. {
  1254. Button button = new Button();
  1255. button.Size = new Size(75, 23);
  1256. button.Location = new Point(postion * 75 + 5, 0);
  1257. button.Text = child.name;
  1258. button.Tag = child;
  1259. button.Click += new EventHandler(ChildButton_Click);
  1260. this.panel1.Controls.Add(button);
  1261. if (postion == 0)
  1262. {
  1263. this.drawToolType = child.drawToolType;
  1264. button.Focus();
  1265. }
  1266. postion++;
  1267. }
  1268. }
  1269. }
  1270. /// <summary>
  1271. /// 二级分类按钮点击事件
  1272. /// </summary>
  1273. /// <param name="sender"></param>
  1274. /// <param name="e"></param>
  1275. private void ChildButton_Click(object sender, EventArgs e)
  1276. {
  1277. Button button = (Button)sender;
  1278. MeasureRelationModel.ChildLabel child = (MeasureRelationModel.ChildLabel)button.Tag;
  1279. this.drawToolType = child.drawToolType;
  1280. this.UpdateRightSettingUI();
  1281. }
  1282. # region 更新右侧设置
  1283. /// <summary>
  1284. /// 更新右侧设置
  1285. /// </summary>
  1286. private void UpdateRightSettingUI()
  1287. {
  1288. switch (this.drawToolType)
  1289. {
  1290. case DrawToolType.MeasureLine: //长度测量直线
  1291. MeasureStyleModel.MeasureLine measureLine = this.measureStyleModel.measureLine;
  1292. this.panel2.Visible = true;
  1293. this.panel3.Visible = false;
  1294. this.label5.Visible = true;
  1295. this.label6.Visible = true;
  1296. this.comboBox5.Visible = true;
  1297. this.numericUpDown1.Visible = true;
  1298. this.label91.Visible = false;
  1299. this.comboBox91.Visible = false;
  1300. this.textBox1.Text = this.measureStyleModel.measureLine.aliasName;
  1301. this.textBox2.Text = this.measureStyleModel.measureLine.suffixName;
  1302. this.comboBox6.SelectedIndex = this.measureStyleModel.measureLine.showAlias ? 0 : 1;
  1303. this.comboBox7.SelectedIndex = this.measureStyleModel.measureLine.showSuffix ? 0 : 1;
  1304. this.comboBox8.SelectedIndex = this.measureStyleModel.measureLine.showSerial ? 0 : 1;
  1305. UpdataFontPosition(false);
  1306. this.UpdateMeasureStyleData(measureLine.font, measureLine.fontSize, measureLine.textColor, measureLine.lineColor, measureLine.lineWidth, measureLine.lineStyle, measureLine.linePosition, 0, 0, measureLine.vLineLength,measureLine.chooseStyle,measureLine.followLine);
  1307. break;
  1308. case DrawToolType.MeasureDistanceLine: //长度测量距离
  1309. MeasureStyleModel.MeasureDistanceLine measureDistanceLine = this.measureStyleModel.measureDistanceLine;
  1310. this.panel2.Visible = true;
  1311. this.panel3.Visible = false;
  1312. this.label5.Visible = false;
  1313. this.numericUpDown1.Visible = false;
  1314. this.label6.Visible = false;
  1315. this.comboBox5.Visible = false;
  1316. this.label91.Visible = false;
  1317. this.comboBox91.Visible = false;
  1318. this.textBox1.Text = this.measureStyleModel.measureDistanceLine.aliasName;
  1319. this.textBox2.Text = this.measureStyleModel.measureDistanceLine.suffixName;
  1320. this.comboBox6.SelectedIndex = this.measureStyleModel.measureDistanceLine.showAlias ? 0 : 1;
  1321. this.comboBox7.SelectedIndex = this.measureStyleModel.measureDistanceLine.showSuffix ? 0 : 1;
  1322. this.comboBox8.SelectedIndex = this.measureStyleModel.measureDistanceLine.showSerial ? 0 : 1;
  1323. UpdataFontPosition(false);
  1324. this.UpdateMeasureStyleData(measureDistanceLine.font, measureDistanceLine.fontSize, measureDistanceLine.textColor, measureDistanceLine.lineColor, measureDistanceLine.lineWidth, measureDistanceLine.lineStyle, measureDistanceLine.linePosition, 0, 0, -1, measureDistanceLine.chooseStyle);
  1325. break;
  1326. case DrawToolType.MeasureLength: //长度测量->长度
  1327. MeasureStyleModel.MeasureLength measureLength = this.measureStyleModel.measureLength;
  1328. this.panel2.Visible = true;
  1329. this.panel3.Visible = false;
  1330. this.label5.Visible = false;
  1331. this.numericUpDown1.Visible = false;
  1332. this.label6.Visible = false;
  1333. this.comboBox5.Visible = false;
  1334. this.label91.Visible = false;
  1335. this.comboBox91.Visible = false;
  1336. this.textBox1.Text = this.measureStyleModel.measureLength.aliasName;
  1337. this.textBox2.Text = this.measureStyleModel.measureLength.suffixName;
  1338. this.comboBox6.SelectedIndex = this.measureStyleModel.measureLength.showAlias ? 0 : 1;
  1339. this.comboBox7.SelectedIndex = this.measureStyleModel.measureLength.showSuffix ? 0 : 1;
  1340. this.comboBox8.SelectedIndex = this.measureStyleModel.measureLength.showSerial ? 0 : 1;
  1341. UpdataFontPosition(false);
  1342. this.UpdateMeasureStyleData(measureLength.font, measureLength.fontSize, measureLength.textColor, measureLength.lineColor, measureLength.lineWidth, measureLength.lineStyle, measureLength.linePosition, 0, 0, -1, measureLength.chooseStyle);
  1343. break;
  1344. case DrawToolType.MeasureHLine: //长度测量->水平线
  1345. MeasureStyleModel.MeasureHLine measureHLine = this.measureStyleModel.measureHLine;
  1346. this.panel2.Visible = true;
  1347. this.panel3.Visible = false;
  1348. this.label5.Visible = true;
  1349. this.numericUpDown1.Visible = true;
  1350. this.label6.Visible = false;
  1351. this.comboBox5.Visible = false;
  1352. this.label91.Visible = false;
  1353. this.comboBox91.Visible = false;
  1354. this.textBox1.Text = this.measureStyleModel.measureHLine.aliasName;
  1355. this.textBox2.Text = this.measureStyleModel.measureHLine.suffixName;
  1356. this.comboBox6.SelectedIndex = this.measureStyleModel.measureHLine.showAlias ? 0 : 1;
  1357. this.comboBox7.SelectedIndex = this.measureStyleModel.measureHLine.showSuffix ? 0 : 1;
  1358. this.comboBox8.SelectedIndex = this.measureStyleModel.measureHLine.showSerial ? 0 : 1;
  1359. UpdataFontPosition(false);
  1360. this.UpdateMeasureStyleData(measureHLine.font, measureHLine.fontSize, measureHLine.textColor, measureHLine.lineColor, measureHLine.lineWidth, measureHLine.lineStyle, measureHLine.linePosition, 0, 0, measureHLine.vLineLength, measureHLine.chooseStyle);
  1361. break;
  1362. case DrawToolType.MeasureVLine: //长度测量->垂线
  1363. MeasureStyleModel.MeasureVLine measureVLine = this.measureStyleModel.measureVLine;
  1364. this.panel2.Visible = true;
  1365. this.panel3.Visible = false;
  1366. this.label5.Visible = true;
  1367. this.numericUpDown1.Visible = true;
  1368. this.label6.Visible = true;
  1369. this.comboBox5.Visible = true;
  1370. this.label91.Visible = false;
  1371. this.comboBox91.Visible = false;
  1372. this.textBox1.Text = this.measureStyleModel.measureVLine.aliasName;
  1373. this.textBox2.Text = this.measureStyleModel.measureVLine.suffixName;
  1374. this.comboBox6.SelectedIndex = this.measureStyleModel.measureVLine.showAlias ? 0 : 1;
  1375. this.comboBox7.SelectedIndex = this.measureStyleModel.measureVLine.showSuffix ? 0 : 1;
  1376. this.comboBox8.SelectedIndex = this.measureStyleModel.measureVLine.showSerial ? 0 : 1;
  1377. UpdataFontPosition(false);
  1378. this.UpdateMeasureStyleData(measureVLine.font, measureVLine.fontSize, measureVLine.textColor, measureVLine.lineColor, measureVLine.lineWidth, measureVLine.lineStyle, measureVLine.linePosition, 0, 0, measureVLine.vLineLength, measureVLine.chooseStyle, measureVLine.followLine);
  1379. break;
  1380. case DrawToolType.MeasureMulLine: //多点线段->多点直线
  1381. MeasureStyleModel.MeasureMulLine measureMulLine = this.measureStyleModel.measureMulLine;
  1382. this.panel3.Visible = true;
  1383. this.panel2.Visible = false;
  1384. this.label5.Visible = true;
  1385. this.numericUpDown1.Visible = true;
  1386. this.label6.Visible = false;
  1387. this.comboBox5.Visible = false;
  1388. this.label91.Visible = false;
  1389. this.comboBox91.Visible = false;
  1390. this.textBox1.Text = this.measureStyleModel.measureMulLine.aliasName;
  1391. this.textBox2.Text = this.measureStyleModel.measureMulLine.suffixName;
  1392. this.comboBox6.SelectedIndex = this.measureStyleModel.measureMulLine.showAlias ? 0 : 1;
  1393. this.comboBox7.SelectedIndex = this.measureStyleModel.measureMulLine.showSuffix ? 0 : 1;
  1394. this.comboBox8.SelectedIndex = this.measureStyleModel.measureMulLine.showSerial ? 0 : 1;
  1395. this.UpdateMeasureStyleData(measureMulLine.font, measureMulLine.fontSize, measureMulLine.textColor, measureMulLine.lineColor, measureMulLine.lineWidth, measureMulLine.lineStyle, 0, measureMulLine.linePositionL, measureMulLine.linePositionP, measureMulLine.vLineLength, measureMulLine.chooseStyle);
  1396. break;
  1397. case DrawToolType.MeasureMulHVLine: //多点线段->多点水平线
  1398. MeasureStyleModel.MeasureMulHVLine measureMulHVLine = this.measureStyleModel.measureMulHVLine;
  1399. this.panel3.Visible = true;
  1400. this.panel2.Visible = false;
  1401. this.label5.Visible = true;
  1402. this.numericUpDown1.Visible = true;
  1403. this.label6.Visible = false;
  1404. this.comboBox5.Visible = false;
  1405. this.label91.Visible = false;
  1406. this.comboBox91.Visible = false;
  1407. this.textBox1.Text = this.measureStyleModel.measureMulHVLine.aliasName;
  1408. this.textBox2.Text = this.measureStyleModel.measureMulHVLine.suffixName;
  1409. this.comboBox6.SelectedIndex = this.measureStyleModel.measureMulHVLine.showAlias ? 0 : 1;
  1410. this.comboBox7.SelectedIndex = this.measureStyleModel.measureMulHVLine.showSuffix ? 0 : 1;
  1411. this.comboBox8.SelectedIndex = this.measureStyleModel.measureMulHVLine.showSerial ? 0 : 1;
  1412. this.UpdateMeasureStyleData(measureMulHVLine.font, measureMulHVLine.fontSize, measureMulHVLine.textColor, measureMulHVLine.lineColor, measureMulHVLine.lineWidth, measureMulHVLine.lineStyle, 0, measureMulHVLine.linePositionL, measureMulHVLine.linePositionP, measureMulHVLine.vLineLength, measureMulHVLine.chooseStyle);
  1413. break;
  1414. case DrawToolType.MeasureMulSegment: //多点线段->多点线段
  1415. MeasureStyleModel.MeasureMulSegment measureMulSegment = this.measureStyleModel.measureMulSegment;
  1416. this.panel3.Visible = true;
  1417. this.panel2.Visible = false;
  1418. this.label5.Visible = true;
  1419. this.numericUpDown1.Visible = true;
  1420. this.label6.Visible = false;
  1421. this.comboBox5.Visible = false;
  1422. this.label91.Visible = false;
  1423. this.comboBox91.Visible = false;
  1424. this.textBox1.Text = this.measureStyleModel.measureMulSegment.aliasName;
  1425. this.textBox2.Text = this.measureStyleModel.measureMulSegment.suffixName;
  1426. this.comboBox6.SelectedIndex = this.measureStyleModel.measureMulSegment.showAlias ? 0 : 1;
  1427. this.comboBox7.SelectedIndex = this.measureStyleModel.measureMulSegment.showSuffix ? 0 : 1;
  1428. this.comboBox8.SelectedIndex = this.measureStyleModel.measureMulSegment.showSerial ? 0 : 1;
  1429. this.UpdateMeasureStyleData(measureMulSegment.font, measureMulSegment.fontSize, measureMulSegment.textColor, measureMulSegment.lineColor, measureMulSegment.lineWidth, measureMulSegment.lineStyle, 0, measureMulSegment.linePositionL, measureMulSegment.linePositionP, measureMulSegment.vLineLength, measureMulSegment.chooseStyle);
  1430. break;
  1431. case DrawToolType.MeasureMulVLine: //多点线段->多点垂直线
  1432. MeasureStyleModel.MeasureMulVLine measureMulVLine = this.measureStyleModel.measureMulVLine;
  1433. this.panel3.Visible = true;
  1434. this.panel2.Visible = false;
  1435. this.label5.Visible = true;
  1436. this.numericUpDown1.Visible = true;
  1437. this.label6.Visible = true;
  1438. this.comboBox5.Visible = true;
  1439. this.label91.Visible = false;
  1440. this.comboBox91.Visible = false;
  1441. this.textBox1.Text = this.measureStyleModel.measureMulVLine.aliasName;
  1442. this.textBox2.Text = this.measureStyleModel.measureMulVLine.suffixName;
  1443. this.comboBox6.SelectedIndex = this.measureStyleModel.measureMulVLine.showAlias ? 0 : 1;
  1444. this.comboBox7.SelectedIndex = this.measureStyleModel.measureMulVLine.showSuffix ? 0 : 1;
  1445. this.comboBox8.SelectedIndex = this.measureStyleModel.measureMulVLine.showSerial ? 0 : 1;
  1446. this.UpdateMeasureStyleData(measureMulVLine.font, measureMulVLine.fontSize, measureMulVLine.textColor, measureMulVLine.lineColor, measureMulVLine.lineWidth, measureMulVLine.lineStyle, 0, measureMulVLine.linePositionL, measureMulVLine.linePositionP, measureMulVLine.vLineLength, measureMulVLine.chooseStyle,measureMulVLine.followLine);
  1447. break;
  1448. case DrawToolType.MeasureBrokenLine: //曲线长度->折线
  1449. MeasureStyleModel.MeasureBrokenLine measureBrokenLine = this.measureStyleModel.measureBrokenLine;
  1450. this.panel2.Visible = true;
  1451. this.panel3.Visible = false;
  1452. this.label5.Visible = false;
  1453. this.numericUpDown1.Visible = false;
  1454. this.label6.Visible = false;
  1455. this.comboBox5.Visible = false;
  1456. this.label91.Visible = false;
  1457. this.comboBox91.Visible = false;
  1458. this.textBox1.Text = this.measureStyleModel.measureBrokenLine.aliasName;
  1459. this.textBox2.Text = this.measureStyleModel.measureBrokenLine.suffixName;
  1460. this.comboBox6.SelectedIndex = this.measureStyleModel.measureBrokenLine.showAlias ? 0 : 1;
  1461. this.comboBox7.SelectedIndex = this.measureStyleModel.measureBrokenLine.showSuffix ? 0 : 1;
  1462. this.comboBox8.SelectedIndex = this.measureStyleModel.measureBrokenLine.showSerial ? 0 : 1;
  1463. UpdataFontPosition(true);
  1464. this.UpdateMeasureStyleData(measureBrokenLine.font, measureBrokenLine.fontSize, measureBrokenLine.textColor, measureBrokenLine.lineColor, measureBrokenLine.lineWidth, measureBrokenLine.lineStyle, measureBrokenLine.linePosition, 0, 0, -1, measureBrokenLine.chooseStyle);
  1465. break;
  1466. case DrawToolType.MeasureTraceCurve: //曲线长度->轨迹曲线
  1467. MeasureStyleModel.MeasureTraceCurve measureTraceCurve = this.measureStyleModel.measureTraceCurve;
  1468. this.panel2.Visible = true;
  1469. this.panel3.Visible = false;
  1470. this.label5.Visible = false;
  1471. this.numericUpDown1.Visible = false;
  1472. this.label6.Visible = false;
  1473. this.comboBox5.Visible = false;
  1474. this.label91.Visible = false;
  1475. this.comboBox91.Visible = false;
  1476. this.textBox1.Text = this.measureStyleModel.measureTraceCurve.aliasName;
  1477. this.textBox2.Text = this.measureStyleModel.measureTraceCurve.suffixName;
  1478. this.comboBox6.SelectedIndex = this.measureStyleModel.measureTraceCurve.showAlias ? 0 : 1;
  1479. this.comboBox7.SelectedIndex = this.measureStyleModel.measureTraceCurve.showSuffix ? 0 : 1;
  1480. this.comboBox8.SelectedIndex = this.measureStyleModel.measureTraceCurve.showSerial ? 0 : 1;
  1481. UpdataFontPosition(true);
  1482. this.UpdateMeasureStyleData(measureTraceCurve.font, measureTraceCurve.fontSize, measureTraceCurve.textColor, measureTraceCurve.lineColor, measureTraceCurve.lineWidth, measureTraceCurve.lineStyle, measureTraceCurve.linePosition, 0, 0, -1, measureTraceCurve.chooseStyle);
  1483. break;
  1484. case DrawToolType.MeasureCurveLine: //曲线长度->曲线
  1485. MeasureStyleModel.MeasureCurveLine measureCurveLine = this.measureStyleModel.measureCurveLine;
  1486. this.panel2.Visible = true;
  1487. this.panel3.Visible = false;
  1488. this.label5.Visible = false;
  1489. this.numericUpDown1.Visible = false;
  1490. this.label6.Visible = false;
  1491. this.comboBox5.Visible = false;
  1492. this.label91.Visible = false;
  1493. this.comboBox91.Visible = false;
  1494. this.textBox1.Text = this.measureStyleModel.measureCurveLine.aliasName;
  1495. this.textBox2.Text = this.measureStyleModel.measureCurveLine.suffixName;
  1496. this.comboBox6.SelectedIndex = this.measureStyleModel.measureCurveLine.showAlias ? 0 : 1;
  1497. this.comboBox7.SelectedIndex = this.measureStyleModel.measureCurveLine.showSuffix ? 0 : 1;
  1498. this.comboBox8.SelectedIndex = this.measureStyleModel.measureCurveLine.showSerial ? 0 : 1;
  1499. UpdataFontPosition(true);
  1500. this.UpdateMeasureStyleData(measureCurveLine.font, measureCurveLine.fontSize, measureCurveLine.textColor, measureCurveLine.lineColor, measureCurveLine.lineWidth, measureCurveLine.lineStyle, measureCurveLine.linePosition, 0, 0, -1, measureCurveLine.chooseStyle);
  1501. break;
  1502. case DrawToolType.MeasurePLine: //点垂线->点垂线
  1503. MeasureStyleModel.MeasurePLine measurePLine = this.measureStyleModel.measurePLine;
  1504. this.panel3.Visible = true;
  1505. this.panel2.Visible = false;
  1506. this.label5.Visible = false;
  1507. this.numericUpDown1.Visible = false;
  1508. this.label6.Visible = false;
  1509. this.comboBox5.Visible = false;
  1510. this.label91.Visible = false;
  1511. this.comboBox91.Visible = false;
  1512. this.textBox1.Text = this.measureStyleModel.measurePLine.aliasName;
  1513. this.textBox2.Text = this.measureStyleModel.measurePLine.suffixName;
  1514. this.comboBox6.SelectedIndex = this.measureStyleModel.measurePLine.showAlias ? 0 : 1;
  1515. this.comboBox7.SelectedIndex = this.measureStyleModel.measurePLine.showSuffix ? 0 : 1;
  1516. this.comboBox8.SelectedIndex = this.measureStyleModel.measurePLine.showSerial ? 0 : 1;
  1517. this.UpdateMeasureStyleData(measurePLine.font, measurePLine.fontSize, measurePLine.textColor, measurePLine.lineColor, measurePLine.lineWidth, measurePLine.lineStyle, 0, measurePLine.linePositionL, measurePLine.linePositionP, -1, measurePLine.chooseStyle);
  1518. break;
  1519. case DrawToolType.MeasureMulPLine: //点垂线->多点垂线
  1520. MeasureStyleModel.MeasureMulPLine measureMulPLine = this.measureStyleModel.measureMulPLine;
  1521. this.panel3.Visible = true;
  1522. this.panel2.Visible = false;
  1523. this.label5.Visible = false;
  1524. this.numericUpDown1.Visible = false;
  1525. this.label6.Visible = false;
  1526. this.comboBox5.Visible = false;
  1527. this.label91.Visible = false;
  1528. this.comboBox91.Visible = false;
  1529. this.textBox1.Text = this.measureStyleModel.measureMulPLine.aliasName;
  1530. this.textBox2.Text = this.measureStyleModel.measureMulPLine.suffixName;
  1531. this.comboBox6.SelectedIndex = this.measureStyleModel.measureMulPLine.showAlias ? 0 : 1;
  1532. this.comboBox7.SelectedIndex = this.measureStyleModel.measureMulPLine.showSuffix ? 0 : 1;
  1533. this.comboBox8.SelectedIndex = this.measureStyleModel.measureMulPLine.showSerial ? 0 : 1;
  1534. this.UpdateMeasureStyleData(measureMulPLine.font, measureMulPLine.fontSize, measureMulPLine.textColor, measureMulPLine.lineColor, measureMulPLine.lineWidth, measureMulPLine.lineStyle, 0, measureMulPLine.linePositionL, measureMulPLine.linePositionP, -1, measureMulPLine.chooseStyle);
  1535. break;
  1536. case DrawToolType.MeasureHMulPLine: //点垂线->水平多点垂线
  1537. MeasureStyleModel.MeasureHMulPLine measureHMulPLine = this.measureStyleModel.measureHMulPLine;
  1538. this.panel3.Visible = true;
  1539. this.panel2.Visible = false;
  1540. this.label5.Visible = false;
  1541. this.numericUpDown1.Visible = false;
  1542. this.label6.Visible = false;
  1543. this.comboBox5.Visible = false;
  1544. this.label91.Visible = false;
  1545. this.comboBox91.Visible = false;
  1546. this.textBox1.Text = this.measureStyleModel.measureHMulPLine.aliasName;
  1547. this.textBox2.Text = this.measureStyleModel.measureHMulPLine.suffixName;
  1548. this.comboBox6.SelectedIndex = this.measureStyleModel.measureHMulPLine.showAlias ? 0 : 1;
  1549. this.comboBox7.SelectedIndex = this.measureStyleModel.measureHMulPLine.showSuffix ? 0 : 1;
  1550. this.comboBox8.SelectedIndex = this.measureStyleModel.measureHMulPLine.showSerial ? 0 : 1;
  1551. this.UpdateMeasureStyleData(measureHMulPLine.font, measureHMulPLine.fontSize, measureHMulPLine.textColor, measureHMulPLine.lineColor, measureHMulPLine.lineWidth, measureHMulPLine.lineStyle, 0, measureHMulPLine.linePositionL, measureHMulPLine.linePositionP, -1, measureHMulPLine.chooseStyle);
  1552. break;
  1553. case DrawToolType.MeasureVMulPLine: //点垂线->垂直多点垂线
  1554. MeasureStyleModel.MeasureVMulPLine measureVMulPLine = this.measureStyleModel.measureVMulPLine;
  1555. this.panel3.Visible = true;
  1556. this.panel2.Visible = false;
  1557. this.label5.Visible = false;
  1558. this.numericUpDown1.Visible = false;
  1559. this.label6.Visible = false;
  1560. this.comboBox5.Visible = false;
  1561. this.label91.Visible = false;
  1562. this.comboBox91.Visible = false;
  1563. this.textBox1.Text = this.measureStyleModel.measureVMulPLine.aliasName;
  1564. this.textBox2.Text = this.measureStyleModel.measureVMulPLine.suffixName;
  1565. this.comboBox6.SelectedIndex = this.measureStyleModel.measureVMulPLine.showAlias ? 0 : 1;
  1566. this.comboBox7.SelectedIndex = this.measureStyleModel.measureDistanceLine.showSuffix ? 0 : 1;
  1567. this.comboBox8.SelectedIndex = this.measureStyleModel.measureDistanceLine.showSerial ? 0 : 1;
  1568. this.UpdateMeasureStyleData(measureVMulPLine.font, measureVMulPLine.fontSize, measureVMulPLine.textColor, measureVMulPLine.lineColor, measureVMulPLine.lineWidth, measureVMulPLine.lineStyle, 0, measureVMulPLine.linePositionL, measureVMulPLine.linePositionP, -1, measureVMulPLine.chooseStyle);
  1569. break;
  1570. case DrawToolType.MeasurePointHLine: //点垂线->点到水平线距离
  1571. MeasureStyleModel.MeasurePointHLine measurePointHLine = this.measureStyleModel.measurePointHLine;
  1572. this.panel3.Visible = true;
  1573. this.panel2.Visible = false;
  1574. this.label5.Visible = false;
  1575. this.numericUpDown1.Visible = false;
  1576. this.label6.Visible = false;
  1577. this.comboBox5.Visible = false;
  1578. this.label91.Visible = false;
  1579. this.comboBox91.Visible = false;
  1580. this.textBox1.Text = this.measureStyleModel.measurePointHLine.aliasName;
  1581. this.textBox2.Text = this.measureStyleModel.measurePointHLine.suffixName;
  1582. this.comboBox6.SelectedIndex = this.measureStyleModel.measurePointHLine.showAlias ? 0 : 1;
  1583. this.comboBox7.SelectedIndex = this.measureStyleModel.measurePointHLine.showSuffix ? 0 : 1;
  1584. this.comboBox8.SelectedIndex = this.measureStyleModel.measurePointHLine.showSerial ? 0 : 1;
  1585. this.UpdateMeasureStyleData(measurePointHLine.font, measurePointHLine.fontSize, measurePointHLine.textColor, measurePointHLine.lineColor, measurePointHLine.lineWidth, measurePointHLine.lineStyle, 0, measurePointHLine.linePositionL, measurePointHLine.linePositionP, -1, measurePointHLine.chooseStyle);
  1586. break;
  1587. case DrawToolType.MeasureParallelLine: //平行线测量->平行线
  1588. MeasureStyleModel.MeasureParallelLine measureParallelLine = this.measureStyleModel.measureParallelLine;
  1589. this.panel3.Visible = true;
  1590. this.panel2.Visible = false;
  1591. this.label5.Visible = false;
  1592. this.numericUpDown1.Visible = false;
  1593. this.label6.Visible = true;
  1594. this.comboBox5.Visible = true;
  1595. this.label91.Visible = false;
  1596. this.comboBox91.Visible = false;
  1597. this.textBox1.Text = this.measureStyleModel.measureParallelLine.aliasName;
  1598. this.textBox2.Text = this.measureStyleModel.measureParallelLine.suffixName;
  1599. this.comboBox6.SelectedIndex = this.measureStyleModel.measureParallelLine.showAlias ? 0 : 1;
  1600. this.comboBox7.SelectedIndex = this.measureStyleModel.measureParallelLine.showSuffix ? 0 : 1;
  1601. this.comboBox8.SelectedIndex = this.measureStyleModel.measureParallelLine.showSerial ? 0 : 1;
  1602. this.UpdateMeasureStyleData(measureParallelLine.font, measureParallelLine.fontSize, measureParallelLine.textColor, measureParallelLine.lineColor, measureParallelLine.lineWidth, measureParallelLine.lineStyle, 0, measureParallelLine.linePositionL, measureParallelLine.linePositionP, -1, measureParallelLine.chooseStyle, measureParallelLine.followLine);
  1603. break;
  1604. case DrawToolType.MeasureMulParallelLine: //平行线测量->多点平行线
  1605. MeasureStyleModel.MeasureMulParallelLine measureMulParallelLine = this.measureStyleModel.measureMulParallelLine;
  1606. this.panel3.Visible = true;
  1607. this.panel2.Visible = false;
  1608. this.label5.Visible = false;
  1609. this.numericUpDown1.Visible = false;
  1610. this.label6.Visible = false;
  1611. this.comboBox5.Visible = false;
  1612. this.label91.Visible = false;
  1613. this.comboBox91.Visible = false;
  1614. this.textBox1.Text = this.measureStyleModel.measureMulParallelLine.aliasName;
  1615. this.textBox2.Text = this.measureStyleModel.measureMulParallelLine.suffixName;
  1616. this.comboBox6.SelectedIndex = this.measureStyleModel.measureMulParallelLine.showAlias ? 0 : 1;
  1617. this.comboBox7.SelectedIndex = this.measureStyleModel.measureMulParallelLine.showSuffix ? 0 : 1;
  1618. this.comboBox8.SelectedIndex = this.measureStyleModel.measureMulParallelLine.showSerial ? 0 : 1;
  1619. this.UpdateMeasureStyleData(measureMulParallelLine.font, measureMulParallelLine.fontSize, measureMulParallelLine.textColor, measureMulParallelLine.lineColor, measureMulParallelLine.lineWidth, measureMulParallelLine.lineStyle, 0, measureMulParallelLine.linePositionL, measureMulParallelLine.linePositionP, -1, measureMulParallelLine.chooseStyle);
  1620. break;
  1621. case DrawToolType.MeasureVMulParallelLine: //平行线测量->垂直多点平行线
  1622. MeasureStyleModel.MeasureVMulParallelLine measureVMulParallelLine = this.measureStyleModel.measureVMulParallelLine;
  1623. this.panel3.Visible = true;
  1624. this.panel2.Visible = false;
  1625. this.label5.Visible = false;
  1626. this.numericUpDown1.Visible = false;
  1627. this.label6.Visible = false;
  1628. this.comboBox5.Visible = false;
  1629. this.label91.Visible = false;
  1630. this.comboBox91.Visible = false;
  1631. this.textBox1.Text = this.measureStyleModel.measureVMulParallelLine.aliasName;
  1632. this.textBox2.Text = this.measureStyleModel.measureVMulParallelLine.suffixName;
  1633. this.comboBox6.SelectedIndex = this.measureStyleModel.measureVMulParallelLine.showAlias ? 0 : 1;
  1634. this.comboBox7.SelectedIndex = this.measureStyleModel.measureVMulParallelLine.showSuffix ? 0 : 1;
  1635. this.comboBox8.SelectedIndex = this.measureStyleModel.measureVMulParallelLine.showSerial ? 0 : 1;
  1636. this.UpdateMeasureStyleData(measureVMulParallelLine.font, measureVMulParallelLine.fontSize, measureVMulParallelLine.textColor, measureVMulParallelLine.lineColor, measureVMulParallelLine.lineWidth, measureVMulParallelLine.lineStyle, 0, measureVMulParallelLine.linePositionL, measureVMulParallelLine.linePositionP, -1, measureVMulParallelLine.chooseStyle);
  1637. break;
  1638. case DrawToolType.MeasureHMulParallelLine: //平行线测量->水平多点平行线
  1639. MeasureStyleModel.MeasureHMulParallelLine measureHMulParallelLine = this.measureStyleModel.measureHMulParallelLine;
  1640. this.panel3.Visible = true;
  1641. this.panel2.Visible = false;
  1642. this.label5.Visible = false;
  1643. this.numericUpDown1.Visible = false;
  1644. this.label6.Visible = false;
  1645. this.comboBox5.Visible = false;
  1646. this.label91.Visible = false;
  1647. this.comboBox91.Visible = false;
  1648. this.textBox1.Text = this.measureStyleModel.measureHMulParallelLine.aliasName;
  1649. this.textBox2.Text = this.measureStyleModel.measureHMulParallelLine.suffixName;
  1650. this.comboBox6.SelectedIndex = this.measureStyleModel.measureHMulParallelLine.showAlias ? 0 : 1;
  1651. this.comboBox7.SelectedIndex = this.measureStyleModel.measureHMulParallelLine.showSuffix ? 0 : 1;
  1652. this.comboBox8.SelectedIndex = this.measureStyleModel.measureHMulParallelLine.showSerial ? 0 : 1;
  1653. this.UpdateMeasureStyleData(measureHMulParallelLine.font, measureHMulParallelLine.fontSize, measureHMulParallelLine.textColor, measureHMulParallelLine.lineColor, measureHMulParallelLine.lineWidth, measureHMulParallelLine.lineStyle, 0, measureHMulParallelLine.linePositionL, measureHMulParallelLine.linePositionP, -1, measureHMulParallelLine.chooseStyle);
  1654. break;
  1655. case DrawToolType.MeasureClosedCurve: //多边形测量->闭合曲线
  1656. MeasureStyleModel.MeasureClosedCurve measureClosedCurve = this.measureStyleModel.measureClosedCurve;
  1657. this.panel3.Visible = false;
  1658. this.panel2.Visible = false;
  1659. this.label5.Visible = false;
  1660. this.numericUpDown1.Visible = false;
  1661. this.label6.Visible = false;
  1662. this.comboBox5.Visible = false;
  1663. this.label91.Visible = false;
  1664. this.comboBox91.Visible = false;
  1665. this.textBox1.Text = this.measureStyleModel.measureClosedCurve.aliasName;
  1666. this.textBox2.Text = this.measureStyleModel.measureClosedCurve.suffixName;
  1667. this.comboBox6.SelectedIndex = this.measureStyleModel.measureClosedCurve.showAlias ? 0 : 1;
  1668. this.comboBox7.SelectedIndex = this.measureStyleModel.measureClosedCurve.showSuffix ? 0 : 1;
  1669. this.comboBox8.SelectedIndex = this.measureStyleModel.measureClosedCurve.showSerial ? 0 : 1;
  1670. this.UpdateMeasureStyleData(measureClosedCurve.font, measureClosedCurve.fontSize, measureClosedCurve.textColor, measureClosedCurve.lineColor, measureClosedCurve.lineWidth, measureClosedCurve.lineStyle, 0, 0, 0, -1, measureClosedCurve.chooseStyle);
  1671. break;
  1672. case DrawToolType.MeasurePolygon: //多边形测量->多边形
  1673. MeasureStyleModel.MeasurePolygon measurePolygon = this.measureStyleModel.measurePolygon;
  1674. this.panel3.Visible = false;
  1675. this.panel2.Visible = false;
  1676. this.label5.Visible = false;
  1677. this.numericUpDown1.Visible = false;
  1678. this.label6.Visible = false;
  1679. this.comboBox5.Visible = false;
  1680. this.label91.Visible = false;
  1681. this.comboBox91.Visible = false;
  1682. this.textBox1.Text = this.measureStyleModel.measurePolygon.aliasName;
  1683. this.textBox2.Text = this.measureStyleModel.measurePolygon.suffixName;
  1684. this.comboBox6.SelectedIndex = this.measureStyleModel.measurePolygon.showAlias ? 0 : 1;
  1685. this.comboBox7.SelectedIndex = this.measureStyleModel.measurePolygon.showSuffix ? 0 : 1;
  1686. this.comboBox8.SelectedIndex = this.measureStyleModel.measurePolygon.showSerial ? 0 : 1;
  1687. this.UpdateMeasureStyleData(measurePolygon.font, measurePolygon.fontSize, measurePolygon.textColor, measurePolygon.lineColor, measurePolygon.lineWidth, measurePolygon.lineStyle, 0, 0, 0, -1, measurePolygon.chooseStyle);
  1688. break;
  1689. case DrawToolType.MeasureRectangle: //多边形测量->矩形
  1690. MeasureStyleModel.MeasureRectangle measureRectangle = this.measureStyleModel.measureRectangle;
  1691. this.panel3.Visible = false;
  1692. this.panel2.Visible = false;
  1693. this.label5.Visible = false;
  1694. this.numericUpDown1.Visible = false;
  1695. this.label6.Visible = false;
  1696. this.comboBox5.Visible = false;
  1697. this.label91.Visible = false;
  1698. this.comboBox91.Visible = false;
  1699. this.textBox1.Text = this.measureStyleModel.measureRectangle.aliasName;
  1700. this.textBox2.Text = this.measureStyleModel.measureRectangle.suffixName;
  1701. this.comboBox6.SelectedIndex = this.measureStyleModel.measureRectangle.showAlias ? 0 : 1;
  1702. this.comboBox7.SelectedIndex = this.measureStyleModel.measureRectangle.showSuffix ? 0 : 1;
  1703. this.comboBox8.SelectedIndex = this.measureStyleModel.measureRectangle.showSerial ? 0 : 1;
  1704. this.UpdateMeasureStyleData(measureRectangle.font, measureRectangle.fontSize, measureRectangle.textColor, measureRectangle.lineColor, measureRectangle.lineWidth, measureRectangle.lineStyle, 0, 0, 0, -1, measureRectangle.chooseStyle);
  1705. break;
  1706. case DrawToolType.MeasureRandRectangle: //多边形测量->任意矩形
  1707. MeasureStyleModel.MeasureRandRectangle measureRandRectangle = this.measureStyleModel.measureRandRectangle;
  1708. this.panel3.Visible = false;
  1709. this.panel2.Visible = false;
  1710. this.label5.Visible = false;
  1711. this.numericUpDown1.Visible = false;
  1712. this.label6.Visible = false;
  1713. this.comboBox5.Visible = false;
  1714. this.label91.Visible = false;
  1715. this.comboBox91.Visible = false;
  1716. this.textBox1.Text = this.measureStyleModel.measureRandRectangle.aliasName;
  1717. this.textBox2.Text = this.measureStyleModel.measureRandRectangle.suffixName;
  1718. this.comboBox6.SelectedIndex = this.measureStyleModel.measureRandRectangle.showAlias ? 0 : 1;
  1719. this.comboBox7.SelectedIndex = this.measureStyleModel.measureRandRectangle.showSuffix ? 0 : 1;
  1720. this.comboBox8.SelectedIndex = this.measureStyleModel.measureRandRectangle.showSerial ? 0 : 1;
  1721. this.UpdateMeasureStyleData(measureRandRectangle.font, measureRandRectangle.fontSize, measureRandRectangle.textColor, measureRandRectangle.lineColor, measureRandRectangle.lineWidth, measureRandRectangle.lineStyle, 0, 0, 0, -1, measureRandRectangle.chooseStyle);
  1722. break;
  1723. case DrawToolType.MeasureSquare: //多边形测量->正方形
  1724. MeasureStyleModel.MeasureSquare measureSquare = this.measureStyleModel.measureSquare;
  1725. this.panel3.Visible = false;
  1726. this.panel2.Visible = false;
  1727. this.label5.Visible = false;
  1728. this.numericUpDown1.Visible = false;
  1729. this.label6.Visible = false;
  1730. this.comboBox5.Visible = false;
  1731. this.label91.Visible = false;
  1732. this.comboBox91.Visible = false;
  1733. this.textBox1.Text = this.measureStyleModel.measureSquare.aliasName;
  1734. this.textBox2.Text = this.measureStyleModel.measureSquare.suffixName;
  1735. this.comboBox6.SelectedIndex = this.measureStyleModel.measureSquare.showAlias ? 0 : 1;
  1736. this.comboBox7.SelectedIndex = this.measureStyleModel.measureSquare.showSuffix ? 0 : 1;
  1737. this.comboBox8.SelectedIndex = this.measureStyleModel.measureSquare.showSerial ? 0 : 1;
  1738. this.UpdateMeasureStyleData(measureSquare.font, measureSquare.fontSize, measureSquare.textColor, measureSquare.lineColor, measureSquare.lineWidth, measureSquare.lineStyle, 0, 0, 0, -1, measureSquare.chooseStyle);
  1739. break;
  1740. case DrawToolType.MeasureRandSquare: //多边形测量->任意正方形
  1741. MeasureStyleModel.MeasureRandSquare measureRandSquare = this.measureStyleModel.measureRandSquare;
  1742. this.panel3.Visible = false;
  1743. this.panel2.Visible = false;
  1744. this.label5.Visible = false;
  1745. this.numericUpDown1.Visible = false;
  1746. this.label6.Visible = false;
  1747. this.comboBox5.Visible = false;
  1748. this.label91.Visible = false;
  1749. this.comboBox91.Visible = false;
  1750. this.textBox1.Text = this.measureStyleModel.measureRandSquare.aliasName;
  1751. this.textBox2.Text = this.measureStyleModel.measureRandSquare.suffixName;
  1752. this.comboBox6.SelectedIndex = this.measureStyleModel.measureRandSquare.showAlias ? 0 : 1;
  1753. this.comboBox7.SelectedIndex = this.measureStyleModel.measureRandSquare.showSuffix ? 0 : 1;
  1754. this.comboBox8.SelectedIndex = this.measureStyleModel.measureRandSquare.showSerial ? 0 : 1;
  1755. this.UpdateMeasureStyleData(measureRandSquare.font, measureRandSquare.fontSize, measureRandSquare.textColor, measureRandSquare.lineColor, measureRandSquare.lineWidth, measureRandSquare.lineStyle, 0, 0, 0, -1, measureRandSquare.chooseStyle);
  1756. break;
  1757. case DrawToolType.MeasureTracePolygon: //多边形测量->轨迹多边形
  1758. MeasureStyleModel.MeasureTracePolygon measureTracePolygon = this.measureStyleModel.measureTracePolygon;
  1759. this.panel3.Visible = false;
  1760. this.panel2.Visible = false;
  1761. this.label5.Visible = false;
  1762. this.numericUpDown1.Visible = false;
  1763. this.label6.Visible = false;
  1764. this.comboBox5.Visible = false;
  1765. this.label91.Visible = false;
  1766. this.comboBox91.Visible = false;
  1767. this.textBox1.Text = this.measureStyleModel.measureTracePolygon.aliasName;
  1768. this.textBox2.Text = this.measureStyleModel.measureTracePolygon.suffixName;
  1769. this.comboBox6.SelectedIndex = this.measureStyleModel.measureTracePolygon.showAlias ? 0 : 1;
  1770. this.comboBox7.SelectedIndex = this.measureStyleModel.measureTracePolygon.showSuffix ? 0 : 1;
  1771. this.comboBox8.SelectedIndex = this.measureStyleModel.measureTracePolygon.showSerial ? 0 : 1;
  1772. this.UpdateMeasureStyleData(measureTracePolygon.font, measureTracePolygon.fontSize, measureTracePolygon.textColor, measureTracePolygon.lineColor, measureTracePolygon.lineWidth, measureTracePolygon.lineStyle, 0, 0, 0, -1, measureTracePolygon.chooseStyle);
  1773. break;
  1774. case DrawToolType.MeasureCircle: //圆形测量->三点圆
  1775. MeasureStyleModel.MeasureCircle measureCircle = this.measureStyleModel.measureCircle;
  1776. this.panel3.Visible = false;
  1777. this.panel2.Visible = false;
  1778. this.label5.Visible = false;
  1779. this.numericUpDown1.Visible = false;
  1780. this.label6.Visible = false;
  1781. this.comboBox5.Visible = false;
  1782. this.label91.Visible = false;
  1783. this.comboBox91.Visible = false;
  1784. this.textBox1.Text = this.measureStyleModel.measureCircle.aliasName;
  1785. this.textBox2.Text = this.measureStyleModel.measureCircle.suffixName;
  1786. this.comboBox6.SelectedIndex = this.measureStyleModel.measureCircle.showAlias ? 0 : 1;
  1787. this.comboBox7.SelectedIndex = this.measureStyleModel.measureCircle.showSuffix ? 0 : 1;
  1788. this.comboBox8.SelectedIndex = this.measureStyleModel.measureCircle.showSerial ? 0 : 1;
  1789. this.UpdateMeasureStyleData(measureCircle.font, measureCircle.fontSize, measureCircle.textColor, measureCircle.lineColor, measureCircle.lineWidth, measureCircle.lineStyle, 0, 0, 0, -1, measureCircle.chooseStyle);
  1790. break;
  1791. case DrawToolType.MeasureInnerCircle: //圆形测量->向内画圆
  1792. MeasureStyleModel.MeasureInnerCircle measureInnerCircle = this.measureStyleModel.measureInnerCircle;
  1793. this.panel3.Visible = false;
  1794. this.panel2.Visible = false;
  1795. this.label5.Visible = false;
  1796. this.numericUpDown1.Visible = false;
  1797. this.label6.Visible = false;
  1798. this.comboBox5.Visible = false;
  1799. this.label91.Visible = false;
  1800. this.comboBox91.Visible = false;
  1801. this.textBox1.Text = this.measureStyleModel.measureInnerCircle.aliasName;
  1802. this.textBox2.Text = this.measureStyleModel.measureInnerCircle.suffixName;
  1803. this.comboBox6.SelectedIndex = this.measureStyleModel.measureInnerCircle.showAlias ? 0 : 1;
  1804. this.comboBox7.SelectedIndex = this.measureStyleModel.measureInnerCircle.showSuffix ? 0 : 1;
  1805. this.comboBox8.SelectedIndex = this.measureStyleModel.measureInnerCircle.showSerial ? 0 : 1;
  1806. this.UpdateMeasureStyleData(measureInnerCircle.font, measureInnerCircle.fontSize, measureInnerCircle.textColor, measureInnerCircle.lineColor, measureInnerCircle.lineWidth, measureInnerCircle.lineStyle, 0, 0, 0, -1, measureInnerCircle.chooseStyle);
  1807. break;
  1808. case DrawToolType.MeasureOuterCircle: //圆形测量->向外画圆
  1809. MeasureStyleModel.MeasureOuterCircle measureOuterCircle = this.measureStyleModel.measureOuterCircle;
  1810. this.panel3.Visible = false;
  1811. this.panel2.Visible = false;
  1812. this.label5.Visible = false;
  1813. this.numericUpDown1.Visible = false;
  1814. this.label6.Visible = false;
  1815. this.comboBox5.Visible = false;
  1816. this.label91.Visible = false;
  1817. this.comboBox91.Visible = false;
  1818. this.textBox1.Text = this.measureStyleModel.measureOuterCircle.aliasName;
  1819. this.textBox2.Text = this.measureStyleModel.measureOuterCircle.suffixName;
  1820. this.comboBox6.SelectedIndex = this.measureStyleModel.measureOuterCircle.showAlias ? 0 : 1;
  1821. this.comboBox7.SelectedIndex = this.measureStyleModel.measureOuterCircle.showSuffix ? 0 : 1;
  1822. this.comboBox8.SelectedIndex = this.measureStyleModel.measureOuterCircle.showSerial ? 0 : 1;
  1823. this.UpdateMeasureStyleData(measureOuterCircle.font, measureOuterCircle.fontSize, measureOuterCircle.textColor, measureOuterCircle.lineColor, measureOuterCircle.lineWidth, measureOuterCircle.lineStyle, 0, 0, 0, -1, measureOuterCircle.chooseStyle);
  1824. break;
  1825. case DrawToolType.MeasureDiameterCircle: //圆形测量->直径画圆
  1826. MeasureStyleModel.MeasureDiameterCircle measureDiameterCircle = this.measureStyleModel.measureDiameterCircle;
  1827. this.panel3.Visible = false;
  1828. this.panel2.Visible = false;
  1829. this.label5.Visible = false;
  1830. this.numericUpDown1.Visible = false;
  1831. this.label6.Visible = false;
  1832. this.comboBox5.Visible = false;
  1833. this.label91.Visible = false;
  1834. this.comboBox91.Visible = false;
  1835. this.textBox1.Text = this.measureStyleModel.measureDiameterCircle.aliasName;
  1836. this.textBox2.Text = this.measureStyleModel.measureDiameterCircle.suffixName;
  1837. this.comboBox6.SelectedIndex = this.measureStyleModel.measureDiameterCircle.showAlias ? 0 : 1;
  1838. this.comboBox7.SelectedIndex = this.measureStyleModel.measureDiameterCircle.showSuffix ? 0 : 1;
  1839. this.comboBox8.SelectedIndex = this.measureStyleModel.measureDiameterCircle.showSerial ? 0 : 1;
  1840. this.UpdateMeasureStyleData(measureDiameterCircle.font, measureDiameterCircle.fontSize, measureDiameterCircle.textColor, measureDiameterCircle.lineColor, measureDiameterCircle.lineWidth, measureDiameterCircle.lineStyle, 0, 0, 0, -1, measureDiameterCircle.chooseStyle);
  1841. break;
  1842. case DrawToolType.MeasurePointEdgeSize: //圆形测量->点到圆距离
  1843. MeasureStyleModel.MeasurePointEdgeSize measurePointEdgeSize = this.measureStyleModel.measurePointEdgeSize;
  1844. this.panel3.Visible = false;
  1845. this.panel2.Visible = false;
  1846. this.label5.Visible = false;
  1847. this.numericUpDown1.Visible = false;
  1848. this.label6.Visible = false;
  1849. this.comboBox5.Visible = false;
  1850. this.label91.Visible = false;
  1851. this.comboBox91.Visible = false;
  1852. this.textBox1.Text = this.measureStyleModel.measurePointEdgeSize.aliasName;
  1853. this.textBox2.Text = this.measureStyleModel.measurePointEdgeSize.suffixName;
  1854. this.comboBox6.SelectedIndex = this.measureStyleModel.measurePointEdgeSize.showAlias ? 0 : 1;
  1855. this.comboBox7.SelectedIndex = this.measureStyleModel.measurePointEdgeSize.showSuffix ? 0 : 1;
  1856. this.comboBox8.SelectedIndex = this.measureStyleModel.measurePointEdgeSize.showSerial ? 0 : 1;
  1857. this.UpdateMeasureStyleData(measurePointEdgeSize.font, measurePointEdgeSize.fontSize, measurePointEdgeSize.textColor, measurePointEdgeSize.lineColor, measurePointEdgeSize.lineWidth, measurePointEdgeSize.lineStyle, 0, 0, 0, -1, measurePointEdgeSize.chooseStyle);
  1858. break;
  1859. case DrawToolType.MeasurePointCenterSize: //圆形测量->点到圆心距离
  1860. MeasureStyleModel.MeasurePointCenterSize measurePointCenterSize = this.measureStyleModel.measurePointCenterSize;
  1861. this.panel3.Visible = false;
  1862. this.panel2.Visible = false;
  1863. this.label5.Visible = false;
  1864. this.numericUpDown1.Visible = false;
  1865. this.label6.Visible = false;
  1866. this.comboBox5.Visible = false;
  1867. this.label91.Visible = false;
  1868. this.comboBox91.Visible = false;
  1869. this.textBox1.Text = this.measureStyleModel.measurePointCenterSize.aliasName;
  1870. this.textBox2.Text = this.measureStyleModel.measurePointCenterSize.suffixName;
  1871. this.comboBox6.SelectedIndex = this.measureStyleModel.measurePointCenterSize.showAlias ? 0 : 1;
  1872. this.comboBox7.SelectedIndex = this.measureStyleModel.measurePointCenterSize.showSuffix ? 0 : 1;
  1873. this.comboBox8.SelectedIndex = this.measureStyleModel.measurePointCenterSize.showSerial ? 0 : 1;
  1874. this.UpdateMeasureStyleData(measurePointCenterSize.font, measurePointCenterSize.fontSize, measurePointCenterSize.textColor, measurePointCenterSize.lineColor, measurePointCenterSize.lineWidth, measurePointCenterSize.lineStyle, 0, 0, 0, -1, measurePointCenterSize.chooseStyle);
  1875. break;
  1876. case DrawToolType.MeasurePointArcSize: //圆形测量->点到圆弧距离
  1877. MeasureStyleModel.MeasurePointArcSize measurePointArcSize = this.measureStyleModel.measurePointArcSize;
  1878. this.panel3.Visible = false;
  1879. this.panel2.Visible = false;
  1880. this.label5.Visible = false;
  1881. this.numericUpDown1.Visible = false;
  1882. this.label6.Visible = false;
  1883. this.comboBox5.Visible = false;
  1884. this.label91.Visible = false;
  1885. this.comboBox91.Visible = false;
  1886. this.textBox1.Text = this.measureStyleModel.measurePointArcSize.aliasName;
  1887. this.textBox2.Text = this.measureStyleModel.measurePointArcSize.suffixName;
  1888. this.comboBox6.SelectedIndex = this.measureStyleModel.measurePointArcSize.showAlias ? 0 : 1;
  1889. this.comboBox7.SelectedIndex = this.measureStyleModel.measurePointArcSize.showSuffix ? 0 : 1;
  1890. this.comboBox8.SelectedIndex = this.measureStyleModel.measurePointArcSize.showSerial ? 0 : 1;
  1891. this.UpdateMeasureStyleData(measurePointArcSize.font, measurePointArcSize.fontSize, measurePointArcSize.textColor, measurePointArcSize.lineColor, measurePointArcSize.lineWidth, measurePointArcSize.lineStyle, 0, 0, 0, -1, measurePointArcSize.chooseStyle);
  1892. break;
  1893. case DrawToolType.MeasureThreePointAngle: //角度测量->三点角度
  1894. MeasureStyleModel.MeasureThreePointAngle measureThreePointAngle = this.measureStyleModel.measureThreePointAngle;
  1895. this.panel3.Visible = false;
  1896. this.panel2.Visible = false;
  1897. this.label5.Visible = false;
  1898. this.numericUpDown1.Visible = false;
  1899. this.label6.Visible = false;
  1900. this.comboBox5.Visible = false;
  1901. this.label91.Visible = true;
  1902. this.comboBox91.Visible = true;
  1903. this.textBox1.Text = this.measureStyleModel.measureThreePointAngle.aliasName;
  1904. this.textBox2.Text = this.measureStyleModel.measureThreePointAngle.suffixName;
  1905. this.comboBox6.SelectedIndex = this.measureStyleModel.measureThreePointAngle.showAlias ? 0 : 1;
  1906. this.comboBox7.SelectedIndex = this.measureStyleModel.measureThreePointAngle.showSuffix ? 0 : 1;
  1907. this.comboBox8.SelectedIndex = this.measureStyleModel.measureThreePointAngle.showSerial ? 0 : 1;
  1908. this.UpdateMeasureStyleData(measureThreePointAngle.font, measureThreePointAngle.fontSize, measureThreePointAngle.textColor, measureThreePointAngle.lineColor, measureThreePointAngle.lineWidth, measureThreePointAngle.lineStyle, 0, 0, 0, -1, measureThreePointAngle.chooseStyle, false, measureThreePointAngle.isAngle);
  1909. break;
  1910. case DrawToolType.MeasureFourPointAngle: //角度测量->四点角度
  1911. MeasureStyleModel.MeasureFourPointAngle measureFourPointAngle = this.measureStyleModel.measureFourPointAngle;
  1912. this.panel3.Visible = false;
  1913. this.panel2.Visible = false;
  1914. this.label5.Visible = false;
  1915. this.numericUpDown1.Visible = false;
  1916. this.label6.Visible = false;
  1917. this.comboBox5.Visible = false;
  1918. this.label91.Visible = true;
  1919. this.comboBox91.Visible = true;
  1920. this.textBox1.Text = this.measureStyleModel.measureFourPointAngle.aliasName;
  1921. this.textBox2.Text = this.measureStyleModel.measureFourPointAngle.suffixName;
  1922. this.comboBox6.SelectedIndex = this.measureStyleModel.measureFourPointAngle.showAlias ? 0 : 1;
  1923. this.comboBox7.SelectedIndex = this.measureStyleModel.measureFourPointAngle.showSuffix ? 0 : 1;
  1924. this.comboBox8.SelectedIndex = this.measureStyleModel.measureFourPointAngle.showSerial ? 0 : 1;
  1925. this.UpdateMeasureStyleData(measureFourPointAngle.font, measureFourPointAngle.fontSize, measureFourPointAngle.textColor, measureFourPointAngle.lineColor, measureFourPointAngle.lineWidth, measureFourPointAngle.lineStyle, 0, 0, 0, -1, measureFourPointAngle.chooseStyle, false, measureFourPointAngle.isAngle);
  1926. break;
  1927. case DrawToolType.MeasureThreePointArc: //角度测量->三点弧
  1928. MeasureStyleModel.MeasureThreePointArc measureThreePointArc = this.measureStyleModel.measureThreePointArc;
  1929. this.panel3.Visible = false;
  1930. this.panel2.Visible = false;
  1931. this.label5.Visible = false;
  1932. this.numericUpDown1.Visible = false;
  1933. this.label6.Visible = false;
  1934. this.comboBox5.Visible = false;
  1935. this.label91.Visible = true;
  1936. this.comboBox91.Visible = true;
  1937. this.textBox1.Text = this.measureStyleModel.measureThreePointArc.aliasName;
  1938. this.textBox2.Text = this.measureStyleModel.measureThreePointArc.suffixName;
  1939. this.comboBox6.SelectedIndex = this.measureStyleModel.measureThreePointArc.showAlias ? 0 : 1;
  1940. this.comboBox7.SelectedIndex = this.measureStyleModel.measureThreePointArc.showSuffix ? 0 : 1;
  1941. this.comboBox8.SelectedIndex = this.measureStyleModel.measureThreePointArc.showSerial ? 0 : 1;
  1942. this.UpdateMeasureStyleData(measureThreePointArc.font, measureThreePointArc.fontSize, measureThreePointArc.textColor, measureThreePointArc.lineColor, measureThreePointArc.lineWidth, measureThreePointArc.lineStyle, 0, 0, 0, -1, measureThreePointArc.chooseStyle, false, measureThreePointArc.isAngle);
  1943. break;
  1944. case DrawToolType.MeasureCenterCenterSize: //对准度测量->圆心到圆心距离
  1945. MeasureStyleModel.MeasureCenterCenterSize measureCenterCenterSize = this.measureStyleModel.measureCenterCenterSize;
  1946. this.panel3.Visible = false;
  1947. this.panel2.Visible = true;
  1948. this.label5.Visible = false;
  1949. this.numericUpDown1.Visible = false;
  1950. this.label6.Visible = false;
  1951. this.comboBox5.Visible = false;
  1952. this.label91.Visible = false;
  1953. this.comboBox91.Visible = false;
  1954. this.textBox1.Text = this.measureStyleModel.measureCenterCenterSize.aliasName;
  1955. this.textBox2.Text = this.measureStyleModel.measureCenterCenterSize.suffixName;
  1956. this.comboBox6.SelectedIndex = this.measureStyleModel.measureCenterCenterSize.showAlias ? 0 : 1;
  1957. this.comboBox7.SelectedIndex = this.measureStyleModel.measureCenterCenterSize.showSuffix ? 0 : 1;
  1958. this.comboBox8.SelectedIndex = this.measureStyleModel.measureCenterCenterSize.showSerial ? 0 : 1;
  1959. UpdataFontPosition(false);
  1960. this.UpdateMeasureStyleData(measureCenterCenterSize.font, measureCenterCenterSize.fontSize, measureCenterCenterSize.textColor, measureCenterCenterSize.lineColor, measureCenterCenterSize.lineWidth, measureCenterCenterSize.lineStyle, measureCenterCenterSize.linePosition, 0, 0, -1, measureCenterCenterSize.chooseStyle);
  1961. break;
  1962. case DrawToolType.MeasureTwoLineVLDistance: //对准度测量->两线中垂线距离
  1963. MeasureStyleModel.MeasureTwoLineVLDistance measureTwoLineVLDistance = this.measureStyleModel.measureTwoLineVLDistance;
  1964. this.panel3.Visible = false;
  1965. this.panel2.Visible = true;
  1966. this.label5.Visible = false;
  1967. this.numericUpDown1.Visible = false;
  1968. this.label6.Visible = false;
  1969. this.comboBox5.Visible = false;
  1970. this.label91.Visible = false;
  1971. this.comboBox91.Visible = false;
  1972. this.textBox1.Text = this.measureStyleModel.measureTwoLineVLDistance.aliasName;
  1973. this.textBox2.Text = this.measureStyleModel.measureTwoLineVLDistance.suffixName;
  1974. this.comboBox6.SelectedIndex = this.measureStyleModel.measureTwoLineVLDistance.showAlias ? 0 : 1;
  1975. this.comboBox7.SelectedIndex = this.measureStyleModel.measureTwoLineVLDistance.showSuffix ? 0 : 1;
  1976. this.comboBox8.SelectedIndex = this.measureStyleModel.measureTwoLineVLDistance.showSerial ? 0 : 1;
  1977. UpdataFontPosition(false);
  1978. this.UpdateMeasureStyleData(measureTwoLineVLDistance.font, measureTwoLineVLDistance.fontSize, measureTwoLineVLDistance.textColor, measureTwoLineVLDistance.lineColor, measureTwoLineVLDistance.lineWidth, measureTwoLineVLDistance.lineStyle, measureTwoLineVLDistance.linePosition, 0, 0, -1, measureTwoLineVLDistance.chooseStyle);
  1979. break;
  1980. }
  1981. }
  1982. #endregion
  1983. private void UpdataFontPosition(bool curve)
  1984. {
  1985. List<string> position = new List<string> { PdnResources.GetString("Menu.Upperleft.text")
  1986. , PdnResources.GetString("Menu.Uppermiddle.Text")
  1987. , PdnResources.GetString("Menu.Upperright.text")
  1988. , PdnResources.GetString("Menu.Lowerleft.text")
  1989. , PdnResources.GetString("Menu.Themiddleandlower.Text")
  1990. , PdnResources.GetString("Menu.Lowerright.text")};
  1991. List<string> position1 = new List<string> { PdnResources.GetString("Menu.hestartingpoint.Text")
  1992. , PdnResources.GetString("Menu.Theendpoint.Text")
  1993. };
  1994. this.comboBox2.DataSource = null;
  1995. if (curve)
  1996. this.comboBox2.DataSource = position1;
  1997. else
  1998. this.comboBox2.DataSource = position;
  1999. }
  2000. /// <summary>
  2001. /// 刷新右侧预览图
  2002. /// </summary>
  2003. private void UpdateRightPreview()
  2004. {
  2005. }
  2006. /// <summary>
  2007. /// 更新显示区域控件的数值
  2008. /// </summary>
  2009. /// <param name="font"></param>
  2010. /// <param name="fontSize"></param>
  2011. /// <param name="textColor"></param>
  2012. /// <param name="lineColor"></param>
  2013. /// <param name="lineWidth"></param>
  2014. /// <param name="lineStyle"></param>
  2015. private void UpdateMeasureStyleData(string font,int fontSize,int textColor,int lineColor,int lineWidth,int lineStyle, int linePosition, int linePositionL, int linePositionP, int vLineLength, chooseStyleModel chooseStyleModel,bool followLine = false,bool isAngle = false)
  2016. {
  2017. #region [选中样式]
  2018. this.comboBox20.Text = chooseStyleModel == null ? "" : chooseStyleModel.font;
  2019. this.numericUpDown4.Value = chooseStyleModel == null ? 1 : chooseStyleModel.lineWidth;
  2020. this.numericUpDown5.Value = chooseStyleModel == null ? 1 : chooseStyleModel.fontSize;
  2021. this.panel9.BackColor = chooseStyleModel == null ? Color.Black : Color.FromArgb(chooseStyleModel.textColor);
  2022. this.numericUpDown3.Value = chooseStyleModel == null ? 0 : chooseStyleModel.vLineLength;
  2023. this.panel8.BackColor = chooseStyleModel == null ? Color.Black : Color.FromArgb(chooseStyleModel.lineColor);
  2024. this.comboBox18.SelectedIndex = chooseStyleModel == null ? 0 : chooseStyleModel.lineStyle;
  2025. #endregion
  2026. //绑定样式默认数据
  2027. this.comboBox11.Text = font;
  2028. this.numericUpDown21.Value = fontSize;
  2029. this.textPanel.BackColor = Color.FromArgb( textColor);
  2030. this.linePanel.BackColor = Color.FromArgb( lineColor);
  2031. this.numericUpDown11.Value = lineWidth;
  2032. this.comboBox21.SelectedIndex = lineStyle;
  2033. if(this.comboBox2.Items.Count > 0)
  2034. this.comboBox2.SelectedIndex = linePosition;
  2035. if (this.comboBox3.Items.Count > 0)
  2036. this.comboBox3.SelectedIndex = linePositionL;
  2037. if (this.comboBox4.Items.Count > 0)
  2038. this.comboBox4.SelectedIndex = linePositionP;
  2039. if(vLineLength > -1)
  2040. this.numericUpDown1.Value = vLineLength;
  2041. if (followLine)
  2042. {
  2043. this.comboBox5.SelectedIndex = 0;
  2044. }
  2045. else {
  2046. this.comboBox5.SelectedIndex = 1;
  2047. }
  2048. this.comboBox91.SelectedIndex = isAngle ? 1 : 0;
  2049. }
  2050. /// <summary>
  2051. /// 保存按钮
  2052. /// </summary>
  2053. /// <param name="sender"></param>
  2054. /// <param name="e"></param>
  2055. private void Button2_Click(object sender, EventArgs e)
  2056. {
  2057. //调用检查类型
  2058. this.checkSaveModel();
  2059. //以下保存xml文件信息
  2060. string stageModelXml = XmlSerializeHelper.XmlSerialize<MeasureStyleModel>(this.measureStyleModel);
  2061. string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Measure\\" + this.comboBox1.Text + ".xml";
  2062. FileOperationHelper.WriteStringToFile(stageModelXml, filePath, FileMode.Create);
  2063. this.config.MarkpointWidth = Convert.ToInt32(this.numericUpDown71.Value);
  2064. this.config.MarkpointStyle = this.comboBox9.SelectedIndex;
  2065. this.config.MarkpointLineColor = this.panel5.BackColor.ToArgb();
  2066. this.config.MarkpointLineWidth = Convert.ToInt32(this.numericUpDown2.Value);
  2067. this.config.MarkpointAreaColor = this.panel4.BackColor.ToArgb();
  2068. this.config.isFollow = this.checkbox1.Checked;
  2069. string configModelXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
  2070. FileOperationHelper.WriteStringToFile(configModelXml, Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml", FileMode.Create);
  2071. MarkPointRect.markPointRectWidth = configModel.MarkpointWidth;
  2072. //if (this.appWorkspace.DocumentWorkspaces != null)
  2073. //{
  2074. // foreach (var item in this.appWorkspace.DocumentWorkspaces)
  2075. // {
  2076. // if (item != null && item.GraphicsList != null)
  2077. // foreach (var graObject in item.GraphicsList.graphicsList)
  2078. // {
  2079. // graObject.smallRectangleWidth = this.config.MarkpointWidth;
  2080. // }
  2081. // item.Refresh();
  2082. // }
  2083. //}
  2084. DrawObject.smallRectangleWidth = this.config.MarkpointWidth;
  2085. DrawObject.MarkpointStyle = this.config.MarkpointStyle;
  2086. DrawObject.MarkpointLineColor = this.config.MarkpointLineColor;
  2087. DrawObject.MarkpointLineWidth = this.config.MarkpointLineWidth;
  2088. DrawObject.MarkpointAreaColor = this.config.MarkpointAreaColor;
  2089. DrawObject.isFollow = this.checkbox1.Checked;
  2090. ApplicationSetting();
  2091. }
  2092. /// <summary>
  2093. ///另存为按钮点击
  2094. /// </summary>
  2095. /// <param name="sender"></param>
  2096. /// <param name="e"></param>
  2097. private void Button3_Click(object sender, EventArgs e)
  2098. {
  2099. dialog = new CreateNameDialog(this);
  2100. dialog.Text = PdnResources.GetString("Menu.Set.Watermarksettings.Newstyle.text");
  2101. dialog.StartPosition = FormStartPosition.CenterParent;
  2102. dialog.ShowDialog();
  2103. }
  2104. /// <summary>
  2105. /// 当前操作样式
  2106. /// </summary>
  2107. /// <param name="sender"></param>
  2108. /// <param name="e"></param>
  2109. private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
  2110. {
  2111. measureStyleModel = XmlSerializeHelper.DESerializer<MeasureStyleModel>(FileOperationHelper.ReadStringFromFile(Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Measure\\" + this.comboBox1.SelectedItem.ToString() + ".xml", FileMode.Open));
  2112. InitializeData();
  2113. }
  2114. /// <summary>
  2115. /// 绑定样式下拉
  2116. /// </summary>
  2117. private void InitializeStyleName()
  2118. {
  2119. List<string> fileNames = FileOperationHelper.GetFileList(Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Measure\\");
  2120. files.Clear();
  2121. foreach (string fileName in fileNames)
  2122. {
  2123. string name = fileName.Substring(0, fileName.LastIndexOf("."));
  2124. files.Add(name);
  2125. }
  2126. this.comboBox1.SelectedIndexChanged -= this.comboBox1_SelectedIndexChanged;
  2127. this.comboBox1.DataSource = null;
  2128. this.comboBox1.DataSource = files;
  2129. string nowModelName = Startup.instance.configModel.Watermark.Substring(0, Startup.instance.configModel.Watermark.LastIndexOf("."));
  2130. this.comboBox1.SelectedIndex = files.FindIndex(a => a.Equals(nowModelName));
  2131. measureStyleModel = XmlSerializeHelper.DESerializer<MeasureStyleModel>(FileOperationHelper.ReadStringFromFile(Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Measure\\" + this.comboBox1.SelectedItem.ToString() + ".xml", FileMode.Open));
  2132. // InitializeData();
  2133. this.comboBox1.SelectedIndexChanged += new EventHandler(this.comboBox1_SelectedIndexChanged);
  2134. }
  2135. /// <summary>
  2136. /// 删除按钮
  2137. /// </summary>
  2138. /// <param name="sender"></param>
  2139. /// <param name="e"></param>
  2140. private void Button4_Click(object sender, EventArgs e)
  2141. {
  2142. if ("Default".Equals(this.comboBox1.Text))
  2143. {
  2144. MessageBox.Show(PdnResources.GetString("Menu.efaultstylecannotbedelete.Text"), PdnResources.GetString("Menu.ensure.text"), MessageBoxButtons.OK, MessageBoxIcon.Warning);
  2145. return;
  2146. }
  2147. DialogResult dr = MessageBox.Show(PdnResources.GetString("Menu.nfirmthedeleti.Text"), PdnResources.GetString("Menu.ensure.text"), MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
  2148. if (dr == DialogResult.OK)
  2149. {
  2150. int newIndex = 0;
  2151. int selectIndex = this.comboBox1.SelectedIndex;
  2152. int tall = files.Count - 1;
  2153. if (selectIndex < tall)
  2154. {
  2155. newIndex = selectIndex;
  2156. }
  2157. string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Measure\\" + this.comboBox1.Text + ".xml";
  2158. FileInfo fileInfo = new FileInfo(filePath);
  2159. fileInfo.Delete();
  2160. InitializeStyleName();
  2161. this.comboBox1.SelectedIndex = newIndex;
  2162. measureStyleModel = XmlSerializeHelper.DESerializer<MeasureStyleModel>(FileOperationHelper.ReadStringFromFile(Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Measure\\" + this.comboBox1.SelectedItem.ToString() + ".xml", FileMode.Open));
  2163. InitializeData();
  2164. }
  2165. else if (dr == DialogResult.Cancel)
  2166. {
  2167. }
  2168. }
  2169. /// <summary>
  2170. /// 弹出另存为框点击保存效果
  2171. /// </summary>
  2172. /// <param name="name"></param>
  2173. public override void GetCreateName(string name)
  2174. {
  2175. string currentcomboBox = this.comboBox1.Text;
  2176. this.newName = name;
  2177. if (files.Contains(this.newName))
  2178. {
  2179. MessageBox.Show(PdnResources.GetString("Menu.Stylenamecannotberepeated.text"), PdnResources.GetString("Menu.ensure.text"), MessageBoxButtons.OK, MessageBoxIcon.Warning);
  2180. return;
  2181. }
  2182. CopyConfigAndRename();
  2183. InitializeStyleName();
  2184. this.comboBox1.Text = currentcomboBox;
  2185. dialog.Close();
  2186. }
  2187. /// <summary>
  2188. /// 另存配置文件
  2189. /// </summary>
  2190. private void CopyConfigAndRename()
  2191. {
  2192. /*if (this.checkBox1.Checked)
  2193. {
  2194. this.watermarkModel.bold = 1;
  2195. }
  2196. else
  2197. {
  2198. this.watermarkModel.bold = 2;
  2199. }
  2200. if (this.checkBox2.Checked)
  2201. {
  2202. this.watermarkModel.italic = 1;
  2203. }
  2204. else
  2205. {
  2206. this.watermarkModel.italic = 2;
  2207. }
  2208. this.watermarkModel.position = this.comboBox2.SelectedIndex + 1;
  2209. this.watermarkModel.typeface = this.comboBox3.Text;
  2210. this.watermarkModel.fontSize = Int32.Parse(this.comboBox4.Text);*/
  2211. //检查保存类型
  2212. this.checkSaveModel();
  2213. //另存为
  2214. string stageModelXml = XmlSerializeHelper.XmlSerialize<MeasureStyleModel>(this.measureStyleModel);
  2215. string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Measure\\" + this.newName + ".xml";
  2216. FileOperationHelper.WriteStringToFile(stageModelXml, filePath, FileMode.Create);
  2217. }
  2218. /// <summary>
  2219. /// 应用按钮
  2220. /// </summary>
  2221. /// <param name="sender"></param>
  2222. /// <param name="e"></param>
  2223. private void ApplicationSetting()
  2224. {
  2225. //修改缓存中的样式数据
  2226. Startup.instance.measureStyleModel = this.measureStyleModel;
  2227. //修改主配置文件中的值
  2228. this.appWorkspace.RefreshAliasName();
  2229. configModel.MeasurementStyle = this.comboBox1.Text + ".xml";
  2230. //修改主配置文件的xml
  2231. string configModelXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(this.configModel);
  2232. string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
  2233. FileOperationHelper.WriteStringToFile(configModelXml, filePath, FileMode.Create);
  2234. MessageBox.Show(PdnResources.GetString("Menu.Successfullysaved.text"));
  2235. }
  2236. private void textColorPanel_Click(object sender, EventArgs e)
  2237. {
  2238. this.colorsForm.UserPrimaryColor = ColorBgra.FromColor(this.textPanel.BackColor);
  2239. this.colorsForm.setSaveBtn_Click(new System.EventHandler(this.textColorChanged));
  2240. this.colorsForm.ShowDialog();
  2241. }
  2242. private void textColorChanged(object sender, EventArgs e)
  2243. {
  2244. this.textPanel.BackColor = this.colorsForm.UserPrimaryColor.ToColor();
  2245. //this.measureStyleModel.backColor = this.colorsForm.UserPrimaryColor.ToColor().ToArgb();
  2246. this.colorsForm.Close();
  2247. }
  2248. private void lineColorPanel_Click(object sender, EventArgs e)
  2249. {
  2250. this.colorsForm1.UserPrimaryColor = ColorBgra.FromColor(this.linePanel.BackColor);
  2251. this.colorsForm1.setSaveBtn_Click(new System.EventHandler(this.lineColorChanged));
  2252. this.colorsForm1.ShowDialog();
  2253. }
  2254. private void lineColorChanged(object sender, EventArgs e)
  2255. {
  2256. this.linePanel.BackColor = this.colorsForm1.UserPrimaryColor.ToColor();
  2257. // this.measureStyleModel.backColor = this.colorsForm.UserPrimaryColor.ToColor().ToArgb();
  2258. this.colorsForm1.Close();
  2259. }
  2260. private void panel5Click(object sender, EventArgs e)
  2261. {
  2262. this.colorsForm2.UserPrimaryColor = ColorBgra.FromColor(this.panel5.BackColor);
  2263. this.colorsForm2.setSaveBtn_Click(new System.EventHandler(this.panel5Changed));
  2264. this.colorsForm2.ShowDialog();
  2265. }
  2266. private void panel5Changed(object sender, EventArgs e)
  2267. {
  2268. this.panel5.BackColor = this.colorsForm2.UserPrimaryColor.ToColor();
  2269. this.colorsForm2.Close();
  2270. }
  2271. private void panel4Click(object sender, EventArgs e)
  2272. {
  2273. this.colorsForm3.UserPrimaryColor = ColorBgra.FromColor(this.panel4.BackColor);
  2274. this.colorsForm3.setSaveBtn_Click(new System.EventHandler(this.panel4Changed));
  2275. this.colorsForm3.ShowDialog();
  2276. }
  2277. private void panel4Changed(object sender, EventArgs e)
  2278. {
  2279. this.panel4.BackColor = this.colorsForm3.UserPrimaryColor.ToColor();
  2280. this.colorsForm3.Close();
  2281. }
  2282. private void panel8Click(object sender, EventArgs e)
  2283. {
  2284. this.colorsForm4.UserPrimaryColor = ColorBgra.FromColor(this.panel8.BackColor);
  2285. this.colorsForm4.setSaveBtn_Click(new System.EventHandler(this.panel8Changed));
  2286. this.colorsForm4.ShowDialog();
  2287. }
  2288. private void panel8Changed(object sender, EventArgs e)
  2289. {
  2290. this.panel8.BackColor = this.colorsForm4.UserPrimaryColor.ToColor();
  2291. this.colorsForm4.Close();
  2292. }
  2293. private void panel9Click(object sender, EventArgs e)
  2294. {
  2295. this.colorsForm5.UserPrimaryColor = ColorBgra.FromColor(this.panel9.BackColor);
  2296. this.colorsForm5.setSaveBtn_Click(new System.EventHandler(this.panel9Changed));
  2297. this.colorsForm5.ShowDialog();
  2298. }
  2299. private void panel9Changed(object sender, EventArgs e)
  2300. {
  2301. this.panel9.BackColor = this.colorsForm5.UserPrimaryColor.ToColor();
  2302. this.colorsForm5.Close();
  2303. }
  2304. private void colorsFormUserPrimaryColorChanged(object sender, ColorEventArgs ce)
  2305. {
  2306. }
  2307. /// <summary>
  2308. /// 检查保存类型
  2309. /// </summary>
  2310. private void checkSaveModel() {
  2311. chooseStyleModel chooseStyle = new chooseStyleModel();
  2312. chooseStyle.font = this.comboBox20.Text;
  2313. chooseStyle.fontSize = (int)this.numericUpDown5.Value;
  2314. chooseStyle.textColor = this.panel9.BackColor.ToArgb();
  2315. chooseStyle.vLineLength = (int)this.numericUpDown3.Value;
  2316. chooseStyle.lineColor = this.panel8.BackColor.ToArgb();
  2317. chooseStyle.lineStyle = this.comboBox18.SelectedIndex;
  2318. chooseStyle.lineWidth = (int)this.numericUpDown4.Value;
  2319. string font = comboBox11.Text;
  2320. int fontSize = Convert.ToInt32(numericUpDown21.Value);
  2321. int textColor = Convert.ToInt32(this.textPanel.BackColor.ToArgb());
  2322. int lineColor = Convert.ToInt32(this.linePanel.BackColor.ToArgb());
  2323. int lineWidth = Convert.ToInt32(numericUpDown11.Value);
  2324. int lineStyle = this.comboBox21.SelectedIndex;
  2325. int linePosition = this.comboBox2.SelectedIndex;
  2326. int linePositionL = this.comboBox3.SelectedIndex;
  2327. int linePositionP = this.comboBox4.SelectedIndex;
  2328. int vLineLength = Convert.ToInt32(this.numericUpDown1.Value);
  2329. bool isAngle = comboBox91.SelectedIndex == 0 ? false : true;
  2330. string aliasName = textBox1.Text;
  2331. string suffixName = textBox2.Text;
  2332. bool showAlias = this.comboBox6.SelectedIndex == 0 ? true : false;
  2333. bool showSuffix = this.comboBox7.SelectedIndex == 0 ? true : false;
  2334. bool showSerial = this.comboBox8.SelectedIndex == 0 ? true : false;
  2335. switch (this.drawToolType)
  2336. {
  2337. case DrawToolType.MeasureLine: //长度测量直线
  2338. this.measureStyleModel.measureLine.font = font;
  2339. this.measureStyleModel.measureLine.fontSize = fontSize;
  2340. this.measureStyleModel.measureLine.textColor = textColor;
  2341. this.measureStyleModel.measureLine.lineColor = lineColor;
  2342. this.measureStyleModel.measureLine.lineWidth = lineWidth;
  2343. this.measureStyleModel.measureLine.lineStyle = lineStyle;
  2344. this.measureStyleModel.measureLine.linePosition = linePosition;
  2345. this.measureStyleModel.measureLine.vLineLength = vLineLength;
  2346. this.measureStyleModel.measureLine.followLine = this.comboBox5.SelectedIndex == 0 ? true : false;
  2347. this.measureStyleModel.measureLine.aliasName = aliasName;
  2348. this.measureStyleModel.measureLine.suffixName = suffixName;
  2349. this.measureStyleModel.measureLine.showAlias = showAlias;
  2350. this.measureStyleModel.measureLine.showSuffix = showSuffix;
  2351. this.measureStyleModel.measureLine.showSerial = showSerial;
  2352. this.measureStyleModel.measureLine.chooseStyle = chooseStyle;
  2353. break;
  2354. case DrawToolType.MeasureDistanceLine: //距离
  2355. this.measureStyleModel.measureDistanceLine.font = font;
  2356. this.measureStyleModel.measureDistanceLine.fontSize = fontSize;
  2357. this.measureStyleModel.measureDistanceLine.textColor = textColor;
  2358. this.measureStyleModel.measureDistanceLine.lineColor = lineColor;
  2359. this.measureStyleModel.measureDistanceLine.lineWidth = lineWidth;
  2360. this.measureStyleModel.measureDistanceLine.lineStyle = lineStyle;
  2361. this.measureStyleModel.measureDistanceLine.linePosition = linePosition;
  2362. this.measureStyleModel.measureDistanceLine.aliasName = aliasName;
  2363. this.measureStyleModel.measureDistanceLine.suffixName = suffixName;
  2364. this.measureStyleModel.measureDistanceLine.showAlias = showAlias;
  2365. this.measureStyleModel.measureDistanceLine.showSuffix = showSuffix;
  2366. this.measureStyleModel.measureDistanceLine.showSerial = showSerial;
  2367. this.measureStyleModel.measureDistanceLine.chooseStyle = chooseStyle;
  2368. break;
  2369. case DrawToolType.MeasureLength: //长度测量->长度
  2370. this.measureStyleModel.measureLength.font = font;
  2371. this.measureStyleModel.measureLength.fontSize = fontSize;
  2372. this.measureStyleModel.measureLength.textColor = textColor;
  2373. this.measureStyleModel.measureLength.lineColor = lineColor;
  2374. this.measureStyleModel.measureLength.lineWidth = lineWidth;
  2375. this.measureStyleModel.measureLength.lineStyle = lineStyle;
  2376. this.measureStyleModel.measureLength.linePosition = linePosition;
  2377. this.measureStyleModel.measureLength.aliasName = aliasName;
  2378. this.measureStyleModel.measureLength.suffixName = suffixName;
  2379. this.measureStyleModel.measureLength.showAlias = showAlias;
  2380. this.measureStyleModel.measureLength.showSuffix = showSuffix;
  2381. this.measureStyleModel.measureLength.showSerial = showSerial;
  2382. this.measureStyleModel.measureLength.chooseStyle = chooseStyle;
  2383. break;
  2384. case DrawToolType.MeasureHLine: //长度测量->水平线
  2385. this.measureStyleModel.measureHLine.font = font;
  2386. this.measureStyleModel.measureHLine.fontSize = fontSize;
  2387. this.measureStyleModel.measureHLine.textColor = textColor;
  2388. this.measureStyleModel.measureHLine.lineColor = lineColor;
  2389. this.measureStyleModel.measureHLine.lineWidth = lineWidth;
  2390. this.measureStyleModel.measureHLine.lineStyle = lineStyle;
  2391. this.measureStyleModel.measureHLine.linePosition = linePosition;
  2392. this.measureStyleModel.measureHLine.vLineLength = vLineLength;
  2393. this.measureStyleModel.measureHLine.aliasName = aliasName;
  2394. this.measureStyleModel.measureHLine.suffixName = suffixName;
  2395. this.measureStyleModel.measureHLine.showAlias = showAlias;
  2396. this.measureStyleModel.measureHLine.showSuffix = showSuffix;
  2397. this.measureStyleModel.measureHLine.showSerial = showSerial;
  2398. this.measureStyleModel.measureHLine.chooseStyle = chooseStyle;
  2399. break;
  2400. case DrawToolType.MeasureVLine: //长度测量->垂线
  2401. this.measureStyleModel.measureVLine.font = font;
  2402. this.measureStyleModel.measureVLine.fontSize = fontSize;
  2403. this.measureStyleModel.measureVLine.textColor = textColor;
  2404. this.measureStyleModel.measureVLine.lineColor = lineColor;
  2405. this.measureStyleModel.measureVLine.lineWidth = lineWidth;
  2406. this.measureStyleModel.measureVLine.lineStyle = lineStyle;
  2407. this.measureStyleModel.measureVLine.linePosition = linePosition;
  2408. this.measureStyleModel.measureVLine.vLineLength = vLineLength;
  2409. this.measureStyleModel.measureVLine.followLine = this.comboBox5.SelectedIndex == 0 ? true : false;
  2410. this.measureStyleModel.measureVLine.aliasName = aliasName;
  2411. this.measureStyleModel.measureVLine.suffixName = suffixName;
  2412. this.measureStyleModel.measureVLine.showAlias = showAlias;
  2413. this.measureStyleModel.measureVLine.showSuffix = showSuffix;
  2414. this.measureStyleModel.measureVLine.showSerial = showSerial;
  2415. this.measureStyleModel.measureVLine.chooseStyle = chooseStyle;
  2416. break;
  2417. case DrawToolType.MeasureMulLine: //多点线段->多点直线
  2418. this.measureStyleModel.measureMulLine.font = font;
  2419. this.measureStyleModel.measureMulLine.fontSize = fontSize;
  2420. this.measureStyleModel.measureMulLine.textColor = textColor;
  2421. this.measureStyleModel.measureMulLine.lineColor = lineColor;
  2422. this.measureStyleModel.measureMulLine.lineWidth = lineWidth;
  2423. this.measureStyleModel.measureMulLine.lineStyle = lineStyle;
  2424. this.measureStyleModel.measureMulLine.linePositionL = linePositionL;
  2425. this.measureStyleModel.measureMulLine.linePositionP = linePositionP;
  2426. this.measureStyleModel.measureMulLine.vLineLength = vLineLength;
  2427. this.measureStyleModel.measureMulLine.aliasName = aliasName;
  2428. this.measureStyleModel.measureMulLine.suffixName = suffixName;
  2429. this.measureStyleModel.measureMulLine.showAlias = showAlias;
  2430. this.measureStyleModel.measureMulLine.showSuffix = showSuffix;
  2431. this.measureStyleModel.measureMulLine.showSerial = showSerial;
  2432. this.measureStyleModel.measureMulLine.chooseStyle = chooseStyle;
  2433. break;
  2434. case DrawToolType.MeasureMulHVLine: //多点线段->多点水平线
  2435. this.measureStyleModel.measureMulHVLine.font = font;
  2436. this.measureStyleModel.measureMulHVLine.fontSize = fontSize;
  2437. this.measureStyleModel.measureMulHVLine.textColor = textColor;
  2438. this.measureStyleModel.measureMulHVLine.lineColor = lineColor;
  2439. this.measureStyleModel.measureMulHVLine.lineWidth = lineWidth;
  2440. this.measureStyleModel.measureMulHVLine.lineStyle = lineStyle;
  2441. this.measureStyleModel.measureMulHVLine.linePositionL = linePositionL;
  2442. this.measureStyleModel.measureMulHVLine.linePositionP = linePositionP;
  2443. this.measureStyleModel.measureMulHVLine.vLineLength = vLineLength;
  2444. this.measureStyleModel.measureMulHVLine.aliasName = aliasName;
  2445. this.measureStyleModel.measureMulHVLine.suffixName = suffixName;
  2446. this.measureStyleModel.measureMulHVLine.showAlias = showAlias;
  2447. this.measureStyleModel.measureMulHVLine.showSuffix = showSuffix;
  2448. this.measureStyleModel.measureMulHVLine.showSerial = showSerial;
  2449. this.measureStyleModel.measureMulHVLine.chooseStyle = chooseStyle;
  2450. break;
  2451. case DrawToolType.MeasureMulSegment: //多点线段->多点线段
  2452. this.measureStyleModel.measureMulSegment.font = font;
  2453. this.measureStyleModel.measureMulSegment.fontSize = fontSize;
  2454. this.measureStyleModel.measureMulSegment.textColor = textColor;
  2455. this.measureStyleModel.measureMulSegment.lineColor = lineColor;
  2456. this.measureStyleModel.measureMulSegment.lineWidth = lineWidth;
  2457. this.measureStyleModel.measureMulSegment.lineStyle = lineStyle;
  2458. this.measureStyleModel.measureMulSegment.linePositionL = linePositionL;
  2459. this.measureStyleModel.measureMulSegment.linePositionP = linePositionP;
  2460. this.measureStyleModel.measureMulSegment.vLineLength = vLineLength;
  2461. this.measureStyleModel.measureMulSegment.aliasName = aliasName;
  2462. this.measureStyleModel.measureMulSegment.suffixName = suffixName;
  2463. this.measureStyleModel.measureMulSegment.showAlias = showAlias;
  2464. this.measureStyleModel.measureMulSegment.showSuffix = showSuffix;
  2465. this.measureStyleModel.measureMulSegment.showSerial = showSerial;
  2466. this.measureStyleModel.measureMulSegment.chooseStyle = chooseStyle;
  2467. break;
  2468. case DrawToolType.MeasureMulVLine: //多点线段->多点垂直线
  2469. this.measureStyleModel.measureMulVLine.font = font;
  2470. this.measureStyleModel.measureMulVLine.fontSize = fontSize;
  2471. this.measureStyleModel.measureMulVLine.textColor = textColor;
  2472. this.measureStyleModel.measureMulVLine.lineColor = lineColor;
  2473. this.measureStyleModel.measureMulVLine.lineWidth = lineWidth;
  2474. this.measureStyleModel.measureMulVLine.lineStyle = lineStyle;
  2475. this.measureStyleModel.measureMulVLine.linePositionL = linePositionL;
  2476. this.measureStyleModel.measureMulVLine.linePositionP = linePositionP;
  2477. this.measureStyleModel.measureMulVLine.vLineLength = vLineLength;
  2478. this.measureStyleModel.measureMulVLine.followLine = this.comboBox5.SelectedIndex == 0 ? true : false;
  2479. this.measureStyleModel.measureMulVLine.aliasName = aliasName;
  2480. this.measureStyleModel.measureMulVLine.suffixName = suffixName;
  2481. this.measureStyleModel.measureMulVLine.showAlias = showAlias;
  2482. this.measureStyleModel.measureMulVLine.showSuffix = showSuffix;
  2483. this.measureStyleModel.measureMulVLine.showSerial = showSerial;
  2484. this.measureStyleModel.measureMulVLine.chooseStyle = chooseStyle;
  2485. break;
  2486. case DrawToolType.MeasureBrokenLine: //曲线长度->折线
  2487. this.measureStyleModel.measureBrokenLine.font = font;
  2488. this.measureStyleModel.measureBrokenLine.fontSize = fontSize;
  2489. this.measureStyleModel.measureBrokenLine.textColor = textColor;
  2490. this.measureStyleModel.measureBrokenLine.lineColor = lineColor;
  2491. this.measureStyleModel.measureBrokenLine.lineWidth = lineWidth;
  2492. this.measureStyleModel.measureBrokenLine.lineStyle = lineStyle;
  2493. this.measureStyleModel.measureBrokenLine.linePosition = linePosition;
  2494. this.measureStyleModel.measureBrokenLine.aliasName = aliasName;
  2495. this.measureStyleModel.measureBrokenLine.suffixName = suffixName;
  2496. this.measureStyleModel.measureBrokenLine.showAlias = showAlias;
  2497. this.measureStyleModel.measureBrokenLine.showSuffix = showSuffix;
  2498. this.measureStyleModel.measureBrokenLine.showSerial = showSerial;
  2499. this.measureStyleModel.measureBrokenLine.chooseStyle = chooseStyle;
  2500. break;
  2501. case DrawToolType.MeasureTraceCurve: //曲线长度->轨迹曲线
  2502. this.measureStyleModel.measureTraceCurve.font = font;
  2503. this.measureStyleModel.measureTraceCurve.fontSize = fontSize;
  2504. this.measureStyleModel.measureTraceCurve.textColor = textColor;
  2505. this.measureStyleModel.measureTraceCurve.lineColor = lineColor;
  2506. this.measureStyleModel.measureTraceCurve.lineWidth = lineWidth;
  2507. this.measureStyleModel.measureTraceCurve.lineStyle = lineStyle;
  2508. this.measureStyleModel.measureTraceCurve.linePosition = linePosition;
  2509. this.measureStyleModel.measureTraceCurve.aliasName = aliasName;
  2510. this.measureStyleModel.measureTraceCurve.suffixName = suffixName;
  2511. this.measureStyleModel.measureTraceCurve.showAlias = showAlias;
  2512. this.measureStyleModel.measureTraceCurve.showSuffix = showSuffix;
  2513. this.measureStyleModel.measureTraceCurve.showSerial = showSerial;
  2514. this.measureStyleModel.measureTraceCurve.chooseStyle = chooseStyle;
  2515. break;
  2516. case DrawToolType.MeasureCurveLine: //曲线长度->曲线
  2517. this.measureStyleModel.measureCurveLine.font = font;
  2518. this.measureStyleModel.measureCurveLine.fontSize = fontSize;
  2519. this.measureStyleModel.measureCurveLine.textColor = textColor;
  2520. this.measureStyleModel.measureCurveLine.lineColor = lineColor;
  2521. this.measureStyleModel.measureCurveLine.lineWidth = lineWidth;
  2522. this.measureStyleModel.measureCurveLine.lineStyle = lineStyle;
  2523. this.measureStyleModel.measureCurveLine.linePosition = linePosition;
  2524. this.measureStyleModel.measureCurveLine.aliasName = aliasName;
  2525. this.measureStyleModel.measureCurveLine.suffixName = suffixName;
  2526. this.measureStyleModel.measureCurveLine.showAlias = showAlias;
  2527. this.measureStyleModel.measureCurveLine.showSuffix = showSuffix;
  2528. this.measureStyleModel.measureCurveLine.showSerial = showSerial;
  2529. this.measureStyleModel.measureCurveLine.chooseStyle = chooseStyle;
  2530. break;
  2531. case DrawToolType.MeasurePLine: //点垂线->点垂线
  2532. this.measureStyleModel.measurePLine.font = font;
  2533. this.measureStyleModel.measurePLine.fontSize = fontSize;
  2534. this.measureStyleModel.measurePLine.textColor = textColor;
  2535. this.measureStyleModel.measurePLine.lineColor = lineColor;
  2536. this.measureStyleModel.measurePLine.lineWidth = lineWidth;
  2537. this.measureStyleModel.measurePLine.lineStyle = lineStyle;
  2538. this.measureStyleModel.measurePLine.linePositionL = linePositionL;
  2539. this.measureStyleModel.measurePLine.linePositionP = linePositionP;
  2540. this.measureStyleModel.measurePLine.aliasName = aliasName;
  2541. this.measureStyleModel.measurePLine.suffixName = suffixName;
  2542. this.measureStyleModel.measurePLine.showAlias = showAlias;
  2543. this.measureStyleModel.measurePLine.showSuffix = showSuffix;
  2544. this.measureStyleModel.measurePLine.showSerial = showSerial;
  2545. this.measureStyleModel.measurePLine.chooseStyle = chooseStyle;
  2546. break;
  2547. case DrawToolType.MeasureMulPLine: //点垂线->多点垂线
  2548. this.measureStyleModel.measureMulPLine.font = font;
  2549. this.measureStyleModel.measureMulPLine.fontSize = fontSize;
  2550. this.measureStyleModel.measureMulPLine.textColor = textColor;
  2551. this.measureStyleModel.measureMulPLine.lineColor = lineColor;
  2552. this.measureStyleModel.measureMulPLine.lineWidth = lineWidth;
  2553. this.measureStyleModel.measureMulPLine.lineStyle = lineStyle;
  2554. this.measureStyleModel.measureMulPLine.linePositionL = linePositionL;
  2555. this.measureStyleModel.measureMulPLine.linePositionP = linePositionP;
  2556. this.measureStyleModel.measureMulPLine.aliasName = aliasName;
  2557. this.measureStyleModel.measureMulPLine.suffixName = suffixName;
  2558. this.measureStyleModel.measureMulPLine.showAlias = showAlias;
  2559. this.measureStyleModel.measureMulPLine.showSuffix = showSuffix;
  2560. this.measureStyleModel.measureMulPLine.showSerial = showSerial;
  2561. this.measureStyleModel.measureMulPLine.chooseStyle = chooseStyle;
  2562. break;
  2563. case DrawToolType.MeasureHMulPLine: //点垂线->水平多点垂线
  2564. this.measureStyleModel.measureHMulPLine.font = font;
  2565. this.measureStyleModel.measureHMulPLine.fontSize = fontSize;
  2566. this.measureStyleModel.measureHMulPLine.textColor = textColor;
  2567. this.measureStyleModel.measureHMulPLine.lineColor = lineColor;
  2568. this.measureStyleModel.measureHMulPLine.lineWidth = lineWidth;
  2569. this.measureStyleModel.measureHMulPLine.lineStyle = lineStyle;
  2570. this.measureStyleModel.measureHMulPLine.linePositionL = linePositionL;
  2571. this.measureStyleModel.measureHMulPLine.linePositionP = linePositionP;
  2572. this.measureStyleModel.measureHMulPLine.aliasName = aliasName;
  2573. this.measureStyleModel.measureHMulPLine.suffixName = suffixName;
  2574. this.measureStyleModel.measureHMulPLine.showAlias = showAlias;
  2575. this.measureStyleModel.measureHMulPLine.showSuffix = showSuffix;
  2576. this.measureStyleModel.measureHMulPLine.showSerial = showSerial;
  2577. this.measureStyleModel.measureHMulPLine.chooseStyle = chooseStyle;
  2578. break;
  2579. case DrawToolType.MeasureVMulPLine: //点垂线->垂直多点垂线
  2580. this.measureStyleModel.measureVMulPLine.font = font;
  2581. this.measureStyleModel.measureVMulPLine.fontSize = fontSize;
  2582. this.measureStyleModel.measureVMulPLine.textColor = textColor;
  2583. this.measureStyleModel.measureVMulPLine.lineColor = lineColor;
  2584. this.measureStyleModel.measureVMulPLine.lineWidth = lineWidth;
  2585. this.measureStyleModel.measureVMulPLine.lineStyle = lineStyle;
  2586. this.measureStyleModel.measureVMulPLine.linePositionL = linePositionL;
  2587. this.measureStyleModel.measureVMulPLine.linePositionP = linePositionP;
  2588. this.measureStyleModel.measureVMulPLine.aliasName = aliasName;
  2589. this.measureStyleModel.measureVMulPLine.suffixName = suffixName;
  2590. this.measureStyleModel.measureVMulPLine.showAlias = showAlias;
  2591. this.measureStyleModel.measureVMulPLine.showSuffix = showSuffix;
  2592. this.measureStyleModel.measureVMulPLine.showSerial = showSerial;
  2593. this.measureStyleModel.measureVMulPLine.chooseStyle = chooseStyle;
  2594. break;
  2595. case DrawToolType.MeasurePointHLine: //点垂线->点到水平线距离
  2596. this.measureStyleModel.measurePointHLine.font = font;
  2597. this.measureStyleModel.measurePointHLine.fontSize = fontSize;
  2598. this.measureStyleModel.measurePointHLine.textColor = textColor;
  2599. this.measureStyleModel.measurePointHLine.lineColor = lineColor;
  2600. this.measureStyleModel.measurePointHLine.lineWidth = lineWidth;
  2601. this.measureStyleModel.measurePointHLine.lineStyle = lineStyle;
  2602. this.measureStyleModel.measurePointHLine.linePositionL = linePositionL;
  2603. this.measureStyleModel.measurePointHLine.linePositionP = linePositionP;
  2604. this.measureStyleModel.measurePointHLine.aliasName = aliasName;
  2605. this.measureStyleModel.measurePointHLine.suffixName = suffixName;
  2606. this.measureStyleModel.measurePointHLine.showAlias = showAlias;
  2607. this.measureStyleModel.measurePointHLine.showSuffix = showSuffix;
  2608. this.measureStyleModel.measurePointHLine.showSerial = showSerial;
  2609. this.measureStyleModel.measurePointHLine.chooseStyle = chooseStyle;
  2610. break;
  2611. case DrawToolType.MeasureParallelLine: //平行线测量->平行线
  2612. this.measureStyleModel.measureParallelLine.font = font;
  2613. this.measureStyleModel.measureParallelLine.fontSize = fontSize;
  2614. this.measureStyleModel.measureParallelLine.textColor = textColor;
  2615. this.measureStyleModel.measureParallelLine.lineColor = lineColor;
  2616. this.measureStyleModel.measureParallelLine.lineWidth = lineWidth;
  2617. this.measureStyleModel.measureParallelLine.lineStyle = lineStyle;
  2618. this.measureStyleModel.measureParallelLine.linePositionL = linePositionL;
  2619. this.measureStyleModel.measureParallelLine.linePositionP = linePositionP;
  2620. this.measureStyleModel.measureParallelLine.followLine = this.comboBox5.SelectedIndex == 0 ? true : false;
  2621. this.measureStyleModel.measureParallelLine.aliasName = aliasName;
  2622. this.measureStyleModel.measureParallelLine.suffixName = suffixName;
  2623. this.measureStyleModel.measureParallelLine.showAlias = showAlias;
  2624. this.measureStyleModel.measureParallelLine.showSuffix = showSuffix;
  2625. this.measureStyleModel.measureParallelLine.showSerial = showSerial;
  2626. this.measureStyleModel.measureParallelLine.chooseStyle = chooseStyle;
  2627. break;
  2628. case DrawToolType.MeasureMulParallelLine: //平行线测量->多点平行线
  2629. this.measureStyleModel.measureMulParallelLine.font = font;
  2630. this.measureStyleModel.measureMulParallelLine.fontSize = fontSize;
  2631. this.measureStyleModel.measureMulParallelLine.textColor = textColor;
  2632. this.measureStyleModel.measureMulParallelLine.lineColor = lineColor;
  2633. this.measureStyleModel.measureMulParallelLine.lineWidth = lineWidth;
  2634. this.measureStyleModel.measureMulParallelLine.lineStyle = lineStyle;
  2635. this.measureStyleModel.measureMulParallelLine.linePositionL = linePositionL;
  2636. this.measureStyleModel.measureMulParallelLine.linePositionP = linePositionP;
  2637. this.measureStyleModel.measureMulParallelLine.aliasName = aliasName;
  2638. this.measureStyleModel.measureMulParallelLine.suffixName = suffixName;
  2639. this.measureStyleModel.measureMulParallelLine.showAlias = showAlias;
  2640. this.measureStyleModel.measureMulParallelLine.showSuffix = showSuffix;
  2641. this.measureStyleModel.measureMulParallelLine.showSerial = showSerial;
  2642. this.measureStyleModel.measureMulParallelLine.chooseStyle = chooseStyle;
  2643. break;
  2644. case DrawToolType.MeasureVMulParallelLine: //平行线测量->垂直多点平行线
  2645. this.measureStyleModel.measureVMulParallelLine.font = font;
  2646. this.measureStyleModel.measureVMulParallelLine.fontSize = fontSize;
  2647. this.measureStyleModel.measureVMulParallelLine.textColor = textColor;
  2648. this.measureStyleModel.measureVMulParallelLine.lineColor = lineColor;
  2649. this.measureStyleModel.measureVMulParallelLine.lineWidth = lineWidth;
  2650. this.measureStyleModel.measureVMulParallelLine.lineStyle = lineStyle;
  2651. this.measureStyleModel.measureVMulParallelLine.linePositionL = linePositionL;
  2652. this.measureStyleModel.measureVMulParallelLine.linePositionP = linePositionP;
  2653. this.measureStyleModel.measureVMulParallelLine.aliasName = aliasName;
  2654. this.measureStyleModel.measureVMulParallelLine.suffixName = suffixName;
  2655. this.measureStyleModel.measureVMulParallelLine.showAlias = showAlias;
  2656. this.measureStyleModel.measureVMulParallelLine.showSuffix = showSuffix;
  2657. this.measureStyleModel.measureVMulParallelLine.showSerial = showSerial;
  2658. this.measureStyleModel.measureVMulParallelLine.chooseStyle = chooseStyle;
  2659. break;
  2660. case DrawToolType.MeasureHMulParallelLine: //平行线测量->水平多点平行线
  2661. this.measureStyleModel.measureHMulParallelLine.font = font;
  2662. this.measureStyleModel.measureHMulParallelLine.fontSize = fontSize;
  2663. this.measureStyleModel.measureHMulParallelLine.textColor = textColor;
  2664. this.measureStyleModel.measureHMulParallelLine.lineColor = lineColor;
  2665. this.measureStyleModel.measureHMulParallelLine.lineWidth = lineWidth;
  2666. this.measureStyleModel.measureHMulParallelLine.lineStyle = lineStyle;
  2667. this.measureStyleModel.measureHMulParallelLine.linePositionL = linePositionL;
  2668. this.measureStyleModel.measureHMulParallelLine.linePositionP = linePositionP;
  2669. this.measureStyleModel.measureHMulParallelLine.aliasName = aliasName;
  2670. this.measureStyleModel.measureHMulParallelLine.suffixName = suffixName;
  2671. this.measureStyleModel.measureHMulParallelLine.showAlias = showAlias;
  2672. this.measureStyleModel.measureHMulParallelLine.showSuffix = showSuffix;
  2673. this.measureStyleModel.measureHMulParallelLine.showSerial = showSerial;
  2674. this.measureStyleModel.measureHMulParallelLine.chooseStyle = chooseStyle;
  2675. break;
  2676. case DrawToolType.MeasureClosedCurve: //多边形测量->闭合曲线
  2677. this.measureStyleModel.measureClosedCurve.font = font;
  2678. this.measureStyleModel.measureClosedCurve.fontSize = fontSize;
  2679. this.measureStyleModel.measureClosedCurve.textColor = textColor;
  2680. this.measureStyleModel.measureClosedCurve.lineColor = lineColor;
  2681. this.measureStyleModel.measureClosedCurve.lineWidth = lineWidth;
  2682. this.measureStyleModel.measureClosedCurve.lineStyle = lineStyle;
  2683. this.measureStyleModel.measureClosedCurve.aliasName = aliasName;
  2684. this.measureStyleModel.measureClosedCurve.suffixName = suffixName;
  2685. this.measureStyleModel.measureClosedCurve.showAlias = showAlias;
  2686. this.measureStyleModel.measureClosedCurve.showSuffix = showSuffix;
  2687. this.measureStyleModel.measureClosedCurve.showSerial = showSerial;
  2688. this.measureStyleModel.measureClosedCurve.chooseStyle = chooseStyle;
  2689. break;
  2690. case DrawToolType.MeasurePolygon: //多边形测量->多边形
  2691. this.measureStyleModel.measurePolygon.font = font;
  2692. this.measureStyleModel.measurePolygon.fontSize = fontSize;
  2693. this.measureStyleModel.measurePolygon.textColor = textColor;
  2694. this.measureStyleModel.measurePolygon.lineColor = lineColor;
  2695. this.measureStyleModel.measurePolygon.lineWidth = lineWidth;
  2696. this.measureStyleModel.measurePolygon.lineStyle = lineStyle;
  2697. this.measureStyleModel.measurePolygon.aliasName = aliasName;
  2698. this.measureStyleModel.measurePolygon.suffixName = suffixName;
  2699. this.measureStyleModel.measurePolygon.showAlias = showAlias;
  2700. this.measureStyleModel.measurePolygon.showSuffix = showSuffix;
  2701. this.measureStyleModel.measurePolygon.showSerial = showSerial;
  2702. this.measureStyleModel.measurePolygon.chooseStyle = chooseStyle;
  2703. break;
  2704. case DrawToolType.MeasureRectangle: //多边形测量->矩形
  2705. this.measureStyleModel.measureRectangle.font = font;
  2706. this.measureStyleModel.measureRectangle.fontSize = fontSize;
  2707. this.measureStyleModel.measureRectangle.textColor = textColor;
  2708. this.measureStyleModel.measureRectangle.lineColor = lineColor;
  2709. this.measureStyleModel.measureRectangle.lineWidth = lineWidth;
  2710. this.measureStyleModel.measureRectangle.lineStyle = lineStyle;
  2711. this.measureStyleModel.measureRectangle.aliasName = aliasName;
  2712. this.measureStyleModel.measureRectangle.suffixName = suffixName;
  2713. this.measureStyleModel.measureRectangle.showAlias = showAlias;
  2714. this.measureStyleModel.measureRectangle.showSuffix = showSuffix;
  2715. this.measureStyleModel.measureRectangle.showSerial = showSerial;
  2716. this.measureStyleModel.measureRectangle.chooseStyle = chooseStyle;
  2717. break;
  2718. case DrawToolType.MeasureRandRectangle: //多边形测量->任意矩形
  2719. this.measureStyleModel.measureRandRectangle.font = font;
  2720. this.measureStyleModel.measureRandRectangle.fontSize = fontSize;
  2721. this.measureStyleModel.measureRandRectangle.textColor = textColor;
  2722. this.measureStyleModel.measureRandRectangle.lineColor = lineColor;
  2723. this.measureStyleModel.measureRandRectangle.lineWidth = lineWidth;
  2724. this.measureStyleModel.measureRandRectangle.lineStyle = lineStyle;
  2725. this.measureStyleModel.measureRandRectangle.aliasName = aliasName;
  2726. this.measureStyleModel.measureRandRectangle.suffixName = suffixName;
  2727. this.measureStyleModel.measureRandRectangle.showAlias = showAlias;
  2728. this.measureStyleModel.measureRandRectangle.showSuffix = showSuffix;
  2729. this.measureStyleModel.measureRandRectangle.showSerial = showSerial;
  2730. this.measureStyleModel.measureRandRectangle.chooseStyle = chooseStyle;
  2731. break;
  2732. case DrawToolType.MeasureSquare: //多边形测量->正方形
  2733. this.measureStyleModel.measureSquare.font = font;
  2734. this.measureStyleModel.measureSquare.fontSize = fontSize;
  2735. this.measureStyleModel.measureSquare.textColor = textColor;
  2736. this.measureStyleModel.measureSquare.lineColor = lineColor;
  2737. this.measureStyleModel.measureSquare.lineWidth = lineWidth;
  2738. this.measureStyleModel.measureSquare.lineStyle = lineStyle;
  2739. this.measureStyleModel.measureSquare.aliasName = aliasName;
  2740. this.measureStyleModel.measureSquare.suffixName = suffixName;
  2741. this.measureStyleModel.measureSquare.showAlias = showAlias;
  2742. this.measureStyleModel.measureSquare.showSuffix = showSuffix;
  2743. this.measureStyleModel.measureSquare.showSerial = showSerial;
  2744. this.measureStyleModel.measureSquare.chooseStyle = chooseStyle;
  2745. break;
  2746. case DrawToolType.MeasureRandSquare: //多边形测量->任意正方形
  2747. this.measureStyleModel.measureRandSquare.font = font;
  2748. this.measureStyleModel.measureRandSquare.fontSize = fontSize;
  2749. this.measureStyleModel.measureRandSquare.textColor = textColor;
  2750. this.measureStyleModel.measureRandSquare.lineColor = lineColor;
  2751. this.measureStyleModel.measureRandSquare.lineWidth = lineWidth;
  2752. this.measureStyleModel.measureRandSquare.lineStyle = lineStyle;
  2753. this.measureStyleModel.measureRandSquare.aliasName = aliasName;
  2754. this.measureStyleModel.measureRandSquare.suffixName = suffixName;
  2755. this.measureStyleModel.measureRandSquare.showAlias = showAlias;
  2756. this.measureStyleModel.measureRandSquare.showSuffix = showSuffix;
  2757. this.measureStyleModel.measureRandSquare.showSerial = showSerial;
  2758. this.measureStyleModel.measureRandSquare.chooseStyle = chooseStyle;
  2759. break;
  2760. case DrawToolType.MeasureTracePolygon: //多边形测量->轨迹多边形
  2761. this.measureStyleModel.measureTracePolygon.font = font;
  2762. this.measureStyleModel.measureTracePolygon.fontSize = fontSize;
  2763. this.measureStyleModel.measureTracePolygon.textColor = textColor;
  2764. this.measureStyleModel.measureTracePolygon.lineColor = lineColor;
  2765. this.measureStyleModel.measureTracePolygon.lineWidth = lineWidth;
  2766. this.measureStyleModel.measureTracePolygon.lineStyle = lineStyle;
  2767. this.measureStyleModel.measureTracePolygon.aliasName = aliasName;
  2768. this.measureStyleModel.measureTracePolygon.suffixName = suffixName;
  2769. this.measureStyleModel.measureTracePolygon.showAlias = showAlias;
  2770. this.measureStyleModel.measureTracePolygon.showSuffix = showSuffix;
  2771. this.measureStyleModel.measureTracePolygon.showSerial = showSerial;
  2772. this.measureStyleModel.measureTracePolygon.chooseStyle = chooseStyle;
  2773. break;
  2774. case DrawToolType.MeasureCircle: //圆形测量->三点圆
  2775. this.measureStyleModel.measureCircle.font = font;
  2776. this.measureStyleModel.measureCircle.fontSize = fontSize;
  2777. this.measureStyleModel.measureCircle.textColor = textColor;
  2778. this.measureStyleModel.measureCircle.lineColor = lineColor;
  2779. this.measureStyleModel.measureCircle.lineWidth = lineWidth;
  2780. this.measureStyleModel.measureCircle.lineStyle = lineStyle;
  2781. this.measureStyleModel.measureCircle.aliasName = aliasName;
  2782. this.measureStyleModel.measureCircle.suffixName = suffixName;
  2783. this.measureStyleModel.measureCircle.showAlias = showAlias;
  2784. this.measureStyleModel.measureCircle.showSuffix = showSuffix;
  2785. this.measureStyleModel.measureCircle.showSerial = showSerial;
  2786. this.measureStyleModel.measureCircle.chooseStyle = chooseStyle;
  2787. break;
  2788. case DrawToolType.MeasureInnerCircle: //圆形测量->向内画圆
  2789. this.measureStyleModel.measureInnerCircle.font = font;
  2790. this.measureStyleModel.measureInnerCircle.fontSize = fontSize;
  2791. this.measureStyleModel.measureInnerCircle.textColor = textColor;
  2792. this.measureStyleModel.measureInnerCircle.lineColor = lineColor;
  2793. this.measureStyleModel.measureInnerCircle.lineWidth = lineWidth;
  2794. this.measureStyleModel.measureInnerCircle.lineStyle = lineStyle;
  2795. this.measureStyleModel.measureInnerCircle.aliasName = aliasName;
  2796. this.measureStyleModel.measureInnerCircle.suffixName = suffixName;
  2797. this.measureStyleModel.measureInnerCircle.showAlias = showAlias;
  2798. this.measureStyleModel.measureInnerCircle.showSuffix = showSuffix;
  2799. this.measureStyleModel.measureInnerCircle.showSerial = showSerial;
  2800. this.measureStyleModel.measureInnerCircle.chooseStyle = chooseStyle;
  2801. break;
  2802. case DrawToolType.MeasureOuterCircle: //圆形测量->向外画圆
  2803. this.measureStyleModel.measureOuterCircle.font = font;
  2804. this.measureStyleModel.measureOuterCircle.fontSize = fontSize;
  2805. this.measureStyleModel.measureOuterCircle.textColor = textColor;
  2806. this.measureStyleModel.measureOuterCircle.lineColor = lineColor;
  2807. this.measureStyleModel.measureOuterCircle.lineWidth = lineWidth;
  2808. this.measureStyleModel.measureOuterCircle.lineStyle = lineStyle;
  2809. this.measureStyleModel.measureOuterCircle.aliasName = aliasName;
  2810. this.measureStyleModel.measureOuterCircle.suffixName = suffixName;
  2811. this.measureStyleModel.measureOuterCircle.showAlias = showAlias;
  2812. this.measureStyleModel.measureOuterCircle.showSuffix = showSuffix;
  2813. this.measureStyleModel.measureOuterCircle.showSerial = showSerial;
  2814. this.measureStyleModel.measureOuterCircle.chooseStyle = chooseStyle;
  2815. break;
  2816. case DrawToolType.MeasureDiameterCircle: //圆形测量->直径画圆
  2817. this.measureStyleModel.measureDiameterCircle.font = font;
  2818. this.measureStyleModel.measureDiameterCircle.fontSize = fontSize;
  2819. this.measureStyleModel.measureDiameterCircle.textColor = textColor;
  2820. this.measureStyleModel.measureDiameterCircle.lineColor = lineColor;
  2821. this.measureStyleModel.measureDiameterCircle.lineWidth = lineWidth;
  2822. this.measureStyleModel.measureDiameterCircle.lineStyle = lineStyle;
  2823. this.measureStyleModel.measureDiameterCircle.aliasName = aliasName;
  2824. this.measureStyleModel.measureDiameterCircle.suffixName = suffixName;
  2825. this.measureStyleModel.measureDiameterCircle.showAlias = showAlias;
  2826. this.measureStyleModel.measureDiameterCircle.showSuffix = showSuffix;
  2827. this.measureStyleModel.measureDiameterCircle.showSerial = showSerial;
  2828. this.measureStyleModel.measureDiameterCircle.chooseStyle = chooseStyle;
  2829. break;
  2830. case DrawToolType.MeasurePointEdgeSize: //圆形测量->点到圆距离
  2831. this.measureStyleModel.measurePointEdgeSize.font = font;
  2832. this.measureStyleModel.measurePointEdgeSize.fontSize = fontSize;
  2833. this.measureStyleModel.measurePointEdgeSize.textColor = textColor;
  2834. this.measureStyleModel.measurePointEdgeSize.lineColor = lineColor;
  2835. this.measureStyleModel.measurePointEdgeSize.lineWidth = lineWidth;
  2836. this.measureStyleModel.measurePointEdgeSize.lineStyle = lineStyle;
  2837. this.measureStyleModel.measurePointEdgeSize.aliasName = aliasName;
  2838. this.measureStyleModel.measurePointEdgeSize.suffixName = suffixName;
  2839. this.measureStyleModel.measurePointEdgeSize.showAlias = showAlias;
  2840. this.measureStyleModel.measurePointEdgeSize.showSuffix = showSuffix;
  2841. this.measureStyleModel.measurePointEdgeSize.showSerial = showSerial;
  2842. this.measureStyleModel.measurePointEdgeSize.chooseStyle = chooseStyle;
  2843. break;
  2844. case DrawToolType.MeasurePointCenterSize: //圆形测量->点到圆心距离
  2845. this.measureStyleModel.measurePointCenterSize.font = font;
  2846. this.measureStyleModel.measurePointCenterSize.fontSize = fontSize;
  2847. this.measureStyleModel.measurePointCenterSize.textColor = textColor;
  2848. this.measureStyleModel.measurePointCenterSize.lineColor = lineColor;
  2849. this.measureStyleModel.measurePointCenterSize.lineWidth = lineWidth;
  2850. this.measureStyleModel.measurePointCenterSize.lineStyle = lineStyle;
  2851. this.measureStyleModel.measurePointCenterSize.aliasName = aliasName;
  2852. this.measureStyleModel.measurePointCenterSize.suffixName = suffixName;
  2853. this.measureStyleModel.measurePointCenterSize.showAlias = showAlias;
  2854. this.measureStyleModel.measurePointCenterSize.showSuffix = showSuffix;
  2855. this.measureStyleModel.measurePointCenterSize.showSerial = showSerial;
  2856. this.measureStyleModel.measurePointCenterSize.chooseStyle = chooseStyle;
  2857. break;
  2858. case DrawToolType.MeasurePointArcSize: //圆形测量->点到圆弧距离
  2859. this.measureStyleModel.measurePointArcSize.font = font;
  2860. this.measureStyleModel.measurePointArcSize.fontSize = fontSize;
  2861. this.measureStyleModel.measurePointArcSize.textColor = textColor;
  2862. this.measureStyleModel.measurePointArcSize.lineColor = lineColor;
  2863. this.measureStyleModel.measurePointArcSize.lineWidth = lineWidth;
  2864. this.measureStyleModel.measurePointArcSize.lineStyle = lineStyle;
  2865. this.measureStyleModel.measurePointArcSize.aliasName = aliasName;
  2866. this.measureStyleModel.measurePointArcSize.suffixName = suffixName;
  2867. this.measureStyleModel.measurePointArcSize.showAlias = showAlias;
  2868. this.measureStyleModel.measurePointArcSize.showSuffix = showSuffix;
  2869. this.measureStyleModel.measurePointArcSize.showSerial = showSerial;
  2870. this.measureStyleModel.measurePointArcSize.chooseStyle = chooseStyle;
  2871. break;
  2872. case DrawToolType.MeasureThreePointAngle: //角度测量->三点角度
  2873. this.measureStyleModel.measureThreePointAngle.font = font;
  2874. this.measureStyleModel.measureThreePointAngle.fontSize = fontSize;
  2875. this.measureStyleModel.measureThreePointAngle.textColor = textColor;
  2876. this.measureStyleModel.measureThreePointAngle.lineColor = lineColor;
  2877. this.measureStyleModel.measureThreePointAngle.lineWidth = lineWidth;
  2878. this.measureStyleModel.measureThreePointAngle.lineStyle = lineStyle;
  2879. this.measureStyleModel.measureThreePointAngle.isAngle = isAngle;
  2880. this.measureStyleModel.measureThreePointAngle.aliasName = aliasName;
  2881. this.measureStyleModel.measureThreePointAngle.suffixName = suffixName;
  2882. this.measureStyleModel.measureThreePointAngle.showAlias = showAlias;
  2883. this.measureStyleModel.measureThreePointAngle.showSuffix = showSuffix;
  2884. this.measureStyleModel.measureThreePointAngle.showSerial = showSerial;
  2885. this.measureStyleModel.measureThreePointAngle.chooseStyle = chooseStyle;
  2886. break;
  2887. case DrawToolType.MeasureFourPointAngle: //角度测量->四点角度
  2888. this.measureStyleModel.measureFourPointAngle.font = font;
  2889. this.measureStyleModel.measureFourPointAngle.fontSize = fontSize;
  2890. this.measureStyleModel.measureFourPointAngle.textColor = textColor;
  2891. this.measureStyleModel.measureFourPointAngle.lineColor = lineColor;
  2892. this.measureStyleModel.measureFourPointAngle.lineWidth = lineWidth;
  2893. this.measureStyleModel.measureFourPointAngle.lineStyle = lineStyle;
  2894. this.measureStyleModel.measureFourPointAngle.isAngle = isAngle;
  2895. this.measureStyleModel.measureFourPointAngle.aliasName = aliasName;
  2896. this.measureStyleModel.measureFourPointAngle.suffixName = suffixName;
  2897. this.measureStyleModel.measureFourPointAngle.showAlias = showAlias;
  2898. this.measureStyleModel.measureFourPointAngle.showSuffix = showSuffix;
  2899. this.measureStyleModel.measureFourPointAngle.showSerial = showSerial;
  2900. this.measureStyleModel.measureFourPointAngle.chooseStyle = chooseStyle;
  2901. break;
  2902. case DrawToolType.MeasureThreePointArc: //角度测量->三点弧
  2903. this.measureStyleModel.measureThreePointArc.font = font;
  2904. this.measureStyleModel.measureThreePointArc.fontSize = fontSize;
  2905. this.measureStyleModel.measureThreePointArc.textColor = textColor;
  2906. this.measureStyleModel.measureThreePointArc.lineColor = lineColor;
  2907. this.measureStyleModel.measureThreePointArc.lineWidth = lineWidth;
  2908. this.measureStyleModel.measureThreePointArc.lineStyle = lineStyle;
  2909. this.measureStyleModel.measureThreePointArc.isAngle = isAngle;
  2910. this.measureStyleModel.measureThreePointArc.aliasName = aliasName;
  2911. this.measureStyleModel.measureThreePointArc.suffixName = suffixName;
  2912. this.measureStyleModel.measureThreePointArc.showAlias = showAlias;
  2913. this.measureStyleModel.measureThreePointArc.showSuffix = showSuffix;
  2914. this.measureStyleModel.measureThreePointArc.showSerial = showSerial;
  2915. this.measureStyleModel.measureThreePointArc.chooseStyle = chooseStyle;
  2916. break;
  2917. case DrawToolType.MeasureCenterCenterSize: //对准度测量->圆心到圆心距离
  2918. this.measureStyleModel.measureCenterCenterSize.font = font;
  2919. this.measureStyleModel.measureCenterCenterSize.fontSize = fontSize;
  2920. this.measureStyleModel.measureCenterCenterSize.textColor = textColor;
  2921. this.measureStyleModel.measureCenterCenterSize.lineColor = lineColor;
  2922. this.measureStyleModel.measureCenterCenterSize.lineWidth = lineWidth;
  2923. this.measureStyleModel.measureCenterCenterSize.lineStyle = lineStyle;
  2924. this.measureStyleModel.measureCenterCenterSize.linePosition = linePosition;
  2925. this.measureStyleModel.measureCenterCenterSize.aliasName = aliasName;
  2926. this.measureStyleModel.measureCenterCenterSize.suffixName = suffixName;
  2927. this.measureStyleModel.measureCenterCenterSize.showAlias = showAlias;
  2928. this.measureStyleModel.measureCenterCenterSize.showSuffix = showSuffix;
  2929. this.measureStyleModel.measureCenterCenterSize.showSerial = showSerial;
  2930. this.measureStyleModel.measureCenterCenterSize.chooseStyle = chooseStyle;
  2931. break;
  2932. case DrawToolType.MeasureTwoLineVLDistance: //对准度测量->两线中垂线距离
  2933. this.measureStyleModel.measureTwoLineVLDistance.font = font;
  2934. this.measureStyleModel.measureTwoLineVLDistance.fontSize = fontSize;
  2935. this.measureStyleModel.measureTwoLineVLDistance.textColor = textColor;
  2936. this.measureStyleModel.measureTwoLineVLDistance.lineColor = lineColor;
  2937. this.measureStyleModel.measureTwoLineVLDistance.lineWidth = lineWidth;
  2938. this.measureStyleModel.measureTwoLineVLDistance.lineStyle = lineStyle;
  2939. this.measureStyleModel.measureTwoLineVLDistance.linePosition = linePosition;
  2940. this.measureStyleModel.measureTwoLineVLDistance.aliasName = aliasName;
  2941. this.measureStyleModel.measureTwoLineVLDistance.suffixName = suffixName;
  2942. this.measureStyleModel.measureTwoLineVLDistance.showAlias = showAlias;
  2943. this.measureStyleModel.measureTwoLineVLDistance.showSuffix = showSuffix;
  2944. this.measureStyleModel.measureTwoLineVLDistance.showSerial = showSerial;
  2945. this.measureStyleModel.measureTwoLineVLDistance.chooseStyle = chooseStyle;
  2946. break;
  2947. }
  2948. }
  2949. /// <summary>
  2950. /// 应用全部
  2951. /// </summary>
  2952. /// <param name="sender"></param>
  2953. /// <param name="e"></param>
  2954. private void button6_Click(object sender, EventArgs e)
  2955. {
  2956. chooseStyleModel chooseStyle = new chooseStyleModel();
  2957. chooseStyle.font = this.comboBox20.Text;
  2958. chooseStyle.fontSize = (int)this.numericUpDown5.Value;
  2959. chooseStyle.textColor = this.panel9.BackColor.ToArgb();
  2960. chooseStyle.vLineLength = (int)this.numericUpDown3.Value;
  2961. chooseStyle.lineColor = this.panel8.BackColor.ToArgb();
  2962. chooseStyle.lineStyle = this.comboBox18.SelectedIndex;
  2963. chooseStyle.lineWidth = (int)this.numericUpDown4.Value;
  2964. string font = comboBox11.Text;
  2965. int fontSize = Convert.ToInt32(numericUpDown21.Value);
  2966. int textColor = Convert.ToInt32(this.textPanel.BackColor.ToArgb());
  2967. int lineColor = Convert.ToInt32(this.linePanel.BackColor.ToArgb());
  2968. int lineWidth = Convert.ToInt32(numericUpDown11.Value);
  2969. int lineStyle = this.comboBox21.SelectedIndex;
  2970. int linePosition = this.comboBox2.SelectedIndex;
  2971. int linePositionL = this.comboBox3.SelectedIndex;
  2972. int linePositionP = this.comboBox4.SelectedIndex;
  2973. int vLineLength = Convert.ToInt32(this.numericUpDown1.Value);
  2974. bool isAngle = comboBox91.SelectedIndex == 0 ? false : true;
  2975. string aliasName = textBox1.Text;
  2976. string suffixName = textBox2.Text;
  2977. bool showAlias = this.comboBox6.SelectedIndex == 0 ? true : false;
  2978. bool showSuffix = this.comboBox7.SelectedIndex == 0 ? true : false;
  2979. bool showSerial = this.comboBox8.SelectedIndex == 0 ? true : false;
  2980. switch (this.selectId)
  2981. {
  2982. // 直线测量
  2983. case 1:
  2984. this.measureStyleModel.measureLine.font = font;
  2985. this.measureStyleModel.measureLine.fontSize = fontSize;
  2986. this.measureStyleModel.measureLine.textColor = textColor;
  2987. this.measureStyleModel.measureLine.lineColor = lineColor;
  2988. this.measureStyleModel.measureLine.lineWidth = lineWidth;
  2989. this.measureStyleModel.measureLine.lineStyle = lineStyle;
  2990. this.measureStyleModel.measureLine.linePosition = linePosition;
  2991. this.measureStyleModel.measureLine.vLineLength = vLineLength;
  2992. this.measureStyleModel.measureLine.followLine = this.comboBox5.SelectedIndex == 0 ? true : false;
  2993. this.measureStyleModel.measureLine.aliasName = aliasName;
  2994. this.measureStyleModel.measureLine.suffixName = suffixName;
  2995. this.measureStyleModel.measureLine.showAlias = showAlias;
  2996. this.measureStyleModel.measureLine.showSuffix = showSuffix;
  2997. this.measureStyleModel.measureLine.showSerial = showSerial;
  2998. this.measureStyleModel.measureLine.chooseStyle = chooseStyle;
  2999. this.measureStyleModel.measureDistanceLine.font = font;
  3000. this.measureStyleModel.measureDistanceLine.fontSize = fontSize;
  3001. this.measureStyleModel.measureDistanceLine.textColor = textColor;
  3002. this.measureStyleModel.measureDistanceLine.lineColor = lineColor;
  3003. this.measureStyleModel.measureDistanceLine.lineWidth = lineWidth;
  3004. this.measureStyleModel.measureDistanceLine.lineStyle = lineStyle;
  3005. this.measureStyleModel.measureDistanceLine.linePosition = linePosition;
  3006. this.measureStyleModel.measureDistanceLine.aliasName = aliasName;
  3007. this.measureStyleModel.measureDistanceLine.suffixName = suffixName;
  3008. this.measureStyleModel.measureDistanceLine.showAlias = showAlias;
  3009. this.measureStyleModel.measureDistanceLine.showSuffix = showSuffix;
  3010. this.measureStyleModel.measureDistanceLine.showSerial = showSerial;
  3011. this.measureStyleModel.measureDistanceLine.chooseStyle = chooseStyle;
  3012. this.measureStyleModel.measureLength.font = font;
  3013. this.measureStyleModel.measureLength.fontSize = fontSize;
  3014. this.measureStyleModel.measureLength.textColor = textColor;
  3015. this.measureStyleModel.measureLength.lineColor = lineColor;
  3016. this.measureStyleModel.measureLength.lineWidth = lineWidth;
  3017. this.measureStyleModel.measureLength.lineStyle = lineStyle;
  3018. this.measureStyleModel.measureLength.linePosition = linePosition;
  3019. this.measureStyleModel.measureLength.aliasName = aliasName;
  3020. this.measureStyleModel.measureLength.suffixName = suffixName;
  3021. this.measureStyleModel.measureLength.showAlias = showAlias;
  3022. this.measureStyleModel.measureLength.showSuffix = showSuffix;
  3023. this.measureStyleModel.measureLength.showSerial = showSerial;
  3024. this.measureStyleModel.measureLength.chooseStyle = chooseStyle;
  3025. this.measureStyleModel.measureHLine.font = font;
  3026. this.measureStyleModel.measureHLine.fontSize = fontSize;
  3027. this.measureStyleModel.measureHLine.textColor = textColor;
  3028. this.measureStyleModel.measureHLine.lineColor = lineColor;
  3029. this.measureStyleModel.measureHLine.lineWidth = lineWidth;
  3030. this.measureStyleModel.measureHLine.lineStyle = lineStyle;
  3031. this.measureStyleModel.measureHLine.linePosition = linePosition;
  3032. this.measureStyleModel.measureHLine.vLineLength = vLineLength;
  3033. this.measureStyleModel.measureHLine.aliasName = aliasName;
  3034. this.measureStyleModel.measureHLine.suffixName = suffixName;
  3035. this.measureStyleModel.measureHLine.showAlias = showAlias;
  3036. this.measureStyleModel.measureHLine.showSuffix = showSuffix;
  3037. this.measureStyleModel.measureHLine.showSerial = showSerial;
  3038. this.measureStyleModel.measureHLine.chooseStyle = chooseStyle;
  3039. this.measureStyleModel.measureVLine.font = font;
  3040. this.measureStyleModel.measureVLine.fontSize = fontSize;
  3041. this.measureStyleModel.measureVLine.textColor = textColor;
  3042. this.measureStyleModel.measureVLine.lineColor = lineColor;
  3043. this.measureStyleModel.measureVLine.lineWidth = lineWidth;
  3044. this.measureStyleModel.measureVLine.lineStyle = lineStyle;
  3045. this.measureStyleModel.measureVLine.linePosition = linePosition;
  3046. this.measureStyleModel.measureVLine.vLineLength = vLineLength;
  3047. this.measureStyleModel.measureVLine.followLine = this.comboBox5.SelectedIndex == 0 ? true : false;
  3048. this.measureStyleModel.measureVLine.aliasName = aliasName;
  3049. this.measureStyleModel.measureVLine.suffixName = suffixName;
  3050. this.measureStyleModel.measureVLine.showAlias = showAlias;
  3051. this.measureStyleModel.measureVLine.showSuffix = showSuffix;
  3052. this.measureStyleModel.measureVLine.showSerial = showSerial;
  3053. this.measureStyleModel.measureVLine.chooseStyle = chooseStyle;
  3054. break;
  3055. // 多点直线
  3056. case 2:
  3057. this.measureStyleModel.measureMulLine.font = font;
  3058. this.measureStyleModel.measureMulLine.fontSize = fontSize;
  3059. this.measureStyleModel.measureMulLine.textColor = textColor;
  3060. this.measureStyleModel.measureMulLine.lineColor = lineColor;
  3061. this.measureStyleModel.measureMulLine.lineWidth = lineWidth;
  3062. this.measureStyleModel.measureMulLine.lineStyle = lineStyle;
  3063. this.measureStyleModel.measureMulLine.linePositionL = linePositionL;
  3064. this.measureStyleModel.measureMulLine.linePositionP = linePositionP;
  3065. this.measureStyleModel.measureMulLine.vLineLength = vLineLength;
  3066. this.measureStyleModel.measureMulLine.aliasName = aliasName;
  3067. this.measureStyleModel.measureMulLine.suffixName = suffixName;
  3068. this.measureStyleModel.measureMulLine.showAlias = showAlias;
  3069. this.measureStyleModel.measureMulLine.showSuffix = showSuffix;
  3070. this.measureStyleModel.measureMulLine.showSerial = showSerial;
  3071. this.measureStyleModel.measureMulLine.chooseStyle = chooseStyle;
  3072. this.measureStyleModel.measureMulHVLine.font = font;
  3073. this.measureStyleModel.measureMulHVLine.fontSize = fontSize;
  3074. this.measureStyleModel.measureMulHVLine.textColor = textColor;
  3075. this.measureStyleModel.measureMulHVLine.lineColor = lineColor;
  3076. this.measureStyleModel.measureMulHVLine.lineWidth = lineWidth;
  3077. this.measureStyleModel.measureMulHVLine.lineStyle = lineStyle;
  3078. this.measureStyleModel.measureMulHVLine.linePositionL = linePositionL;
  3079. this.measureStyleModel.measureMulHVLine.linePositionP = linePositionP;
  3080. this.measureStyleModel.measureMulHVLine.vLineLength = vLineLength;
  3081. this.measureStyleModel.measureMulHVLine.aliasName = aliasName;
  3082. this.measureStyleModel.measureMulHVLine.suffixName = suffixName;
  3083. this.measureStyleModel.measureMulHVLine.showAlias = showAlias;
  3084. this.measureStyleModel.measureMulHVLine.showSuffix = showSuffix;
  3085. this.measureStyleModel.measureMulHVLine.showSerial = showSerial;
  3086. this.measureStyleModel.measureMulHVLine.chooseStyle = chooseStyle;
  3087. this.measureStyleModel.measureMulSegment.font = font;
  3088. this.measureStyleModel.measureMulSegment.fontSize = fontSize;
  3089. this.measureStyleModel.measureMulSegment.textColor = textColor;
  3090. this.measureStyleModel.measureMulSegment.lineColor = lineColor;
  3091. this.measureStyleModel.measureMulSegment.lineWidth = lineWidth;
  3092. this.measureStyleModel.measureMulSegment.lineStyle = lineStyle;
  3093. this.measureStyleModel.measureMulSegment.linePositionL = linePositionL;
  3094. this.measureStyleModel.measureMulSegment.linePositionP = linePositionP;
  3095. this.measureStyleModel.measureMulSegment.vLineLength = vLineLength;
  3096. this.measureStyleModel.measureMulSegment.aliasName = aliasName;
  3097. this.measureStyleModel.measureMulSegment.suffixName = suffixName;
  3098. this.measureStyleModel.measureMulSegment.showAlias = showAlias;
  3099. this.measureStyleModel.measureMulSegment.showSuffix = showSuffix;
  3100. this.measureStyleModel.measureMulSegment.showSerial = showSerial;
  3101. this.measureStyleModel.measureMulSegment.chooseStyle = chooseStyle;
  3102. this.measureStyleModel.measureMulVLine.font = font;
  3103. this.measureStyleModel.measureMulVLine.fontSize = fontSize;
  3104. this.measureStyleModel.measureMulVLine.textColor = textColor;
  3105. this.measureStyleModel.measureMulVLine.lineColor = lineColor;
  3106. this.measureStyleModel.measureMulVLine.lineWidth = lineWidth;
  3107. this.measureStyleModel.measureMulVLine.lineStyle = lineStyle;
  3108. this.measureStyleModel.measureMulVLine.linePositionL = linePositionL;
  3109. this.measureStyleModel.measureMulVLine.linePositionP = linePositionP;
  3110. this.measureStyleModel.measureMulVLine.vLineLength = vLineLength;
  3111. this.measureStyleModel.measureMulVLine.followLine = this.comboBox5.SelectedIndex == 0 ? true : false;
  3112. this.measureStyleModel.measureMulVLine.aliasName = aliasName;
  3113. this.measureStyleModel.measureMulVLine.suffixName = suffixName;
  3114. this.measureStyleModel.measureMulVLine.showAlias = showAlias;
  3115. this.measureStyleModel.measureMulVLine.showSuffix = showSuffix;
  3116. this.measureStyleModel.measureMulVLine.showSerial = showSerial;
  3117. this.measureStyleModel.measureMulVLine.chooseStyle = chooseStyle;
  3118. break;
  3119. // 曲线测量
  3120. case 3:
  3121. this.measureStyleModel.measureBrokenLine.font = font;
  3122. this.measureStyleModel.measureBrokenLine.fontSize = fontSize;
  3123. this.measureStyleModel.measureBrokenLine.textColor = textColor;
  3124. this.measureStyleModel.measureBrokenLine.lineColor = lineColor;
  3125. this.measureStyleModel.measureBrokenLine.lineWidth = lineWidth;
  3126. this.measureStyleModel.measureBrokenLine.lineStyle = lineStyle;
  3127. this.measureStyleModel.measureBrokenLine.linePosition = linePosition;
  3128. this.measureStyleModel.measureBrokenLine.aliasName = aliasName;
  3129. this.measureStyleModel.measureBrokenLine.suffixName = suffixName;
  3130. this.measureStyleModel.measureBrokenLine.showAlias = showAlias;
  3131. this.measureStyleModel.measureBrokenLine.showSuffix = showSuffix;
  3132. this.measureStyleModel.measureBrokenLine.showSerial = showSerial;
  3133. this.measureStyleModel.measureBrokenLine.chooseStyle = chooseStyle;
  3134. this.measureStyleModel.measureTraceCurve.font = font;
  3135. this.measureStyleModel.measureTraceCurve.fontSize = fontSize;
  3136. this.measureStyleModel.measureTraceCurve.textColor = textColor;
  3137. this.measureStyleModel.measureTraceCurve.lineColor = lineColor;
  3138. this.measureStyleModel.measureTraceCurve.lineWidth = lineWidth;
  3139. this.measureStyleModel.measureTraceCurve.lineStyle = lineStyle;
  3140. this.measureStyleModel.measureTraceCurve.linePosition = linePosition;
  3141. this.measureStyleModel.measureTraceCurve.aliasName = aliasName;
  3142. this.measureStyleModel.measureTraceCurve.suffixName = suffixName;
  3143. this.measureStyleModel.measureTraceCurve.showAlias = showAlias;
  3144. this.measureStyleModel.measureTraceCurve.showSuffix = showSuffix;
  3145. this.measureStyleModel.measureTraceCurve.showSerial = showSerial;
  3146. this.measureStyleModel.measureTraceCurve.chooseStyle = chooseStyle;
  3147. this.measureStyleModel.measureCurveLine.font = font;
  3148. this.measureStyleModel.measureCurveLine.fontSize = fontSize;
  3149. this.measureStyleModel.measureCurveLine.textColor = textColor;
  3150. this.measureStyleModel.measureCurveLine.lineColor = lineColor;
  3151. this.measureStyleModel.measureCurveLine.lineWidth = lineWidth;
  3152. this.measureStyleModel.measureCurveLine.lineStyle = lineStyle;
  3153. this.measureStyleModel.measureCurveLine.linePosition = linePosition;
  3154. this.measureStyleModel.measureCurveLine.aliasName = aliasName;
  3155. this.measureStyleModel.measureCurveLine.suffixName = suffixName;
  3156. this.measureStyleModel.measureCurveLine.showAlias = showAlias;
  3157. this.measureStyleModel.measureCurveLine.showSuffix = showSuffix;
  3158. this.measureStyleModel.measureCurveLine.showSerial = showSerial;
  3159. this.measureStyleModel.measureCurveLine.chooseStyle = chooseStyle;
  3160. break;
  3161. // 点垂线
  3162. case 4:
  3163. this.measureStyleModel.measurePLine.font = font;
  3164. this.measureStyleModel.measurePLine.fontSize = fontSize;
  3165. this.measureStyleModel.measurePLine.textColor = textColor;
  3166. this.measureStyleModel.measurePLine.lineColor = lineColor;
  3167. this.measureStyleModel.measurePLine.lineWidth = lineWidth;
  3168. this.measureStyleModel.measurePLine.lineStyle = lineStyle;
  3169. this.measureStyleModel.measurePLine.linePositionL = linePositionL;
  3170. this.measureStyleModel.measurePLine.linePositionP = linePositionP;
  3171. this.measureStyleModel.measurePLine.aliasName = aliasName;
  3172. this.measureStyleModel.measurePLine.suffixName = suffixName;
  3173. this.measureStyleModel.measurePLine.showAlias = showAlias;
  3174. this.measureStyleModel.measurePLine.showSuffix = showSuffix;
  3175. this.measureStyleModel.measurePLine.showSerial = showSerial;
  3176. this.measureStyleModel.measurePLine.chooseStyle = chooseStyle;
  3177. this.measureStyleModel.measureMulPLine.font = font;
  3178. this.measureStyleModel.measureMulPLine.fontSize = fontSize;
  3179. this.measureStyleModel.measureMulPLine.textColor = textColor;
  3180. this.measureStyleModel.measureMulPLine.lineColor = lineColor;
  3181. this.measureStyleModel.measureMulPLine.lineWidth = lineWidth;
  3182. this.measureStyleModel.measureMulPLine.lineStyle = lineStyle;
  3183. this.measureStyleModel.measureMulPLine.linePositionL = linePositionL;
  3184. this.measureStyleModel.measureMulPLine.linePositionP = linePositionP;
  3185. this.measureStyleModel.measureMulPLine.aliasName = aliasName;
  3186. this.measureStyleModel.measureMulPLine.suffixName = suffixName;
  3187. this.measureStyleModel.measureMulPLine.showAlias = showAlias;
  3188. this.measureStyleModel.measureMulPLine.showSuffix = showSuffix;
  3189. this.measureStyleModel.measureMulPLine.showSerial = showSerial;
  3190. this.measureStyleModel.measureMulPLine.chooseStyle = chooseStyle;
  3191. this.measureStyleModel.measureHMulPLine.font = font;
  3192. this.measureStyleModel.measureHMulPLine.fontSize = fontSize;
  3193. this.measureStyleModel.measureHMulPLine.textColor = textColor;
  3194. this.measureStyleModel.measureHMulPLine.lineColor = lineColor;
  3195. this.measureStyleModel.measureHMulPLine.lineWidth = lineWidth;
  3196. this.measureStyleModel.measureHMulPLine.lineStyle = lineStyle;
  3197. this.measureStyleModel.measureHMulPLine.linePositionL = linePositionL;
  3198. this.measureStyleModel.measureHMulPLine.linePositionP = linePositionP;
  3199. this.measureStyleModel.measureHMulPLine.aliasName = aliasName;
  3200. this.measureStyleModel.measureHMulPLine.suffixName = suffixName;
  3201. this.measureStyleModel.measureHMulPLine.showAlias = showAlias;
  3202. this.measureStyleModel.measureHMulPLine.showSuffix = showSuffix;
  3203. this.measureStyleModel.measureHMulPLine.showSerial = showSerial;
  3204. this.measureStyleModel.measureHMulPLine.chooseStyle = chooseStyle;
  3205. this.measureStyleModel.measureVMulPLine.font = font;
  3206. this.measureStyleModel.measureVMulPLine.fontSize = fontSize;
  3207. this.measureStyleModel.measureVMulPLine.textColor = textColor;
  3208. this.measureStyleModel.measureVMulPLine.lineColor = lineColor;
  3209. this.measureStyleModel.measureVMulPLine.lineWidth = lineWidth;
  3210. this.measureStyleModel.measureVMulPLine.lineStyle = lineStyle;
  3211. this.measureStyleModel.measureVMulPLine.linePositionL = linePositionL;
  3212. this.measureStyleModel.measureVMulPLine.linePositionP = linePositionP;
  3213. this.measureStyleModel.measureVMulPLine.aliasName = aliasName;
  3214. this.measureStyleModel.measureVMulPLine.suffixName = suffixName;
  3215. this.measureStyleModel.measureVMulPLine.showAlias = showAlias;
  3216. this.measureStyleModel.measureVMulPLine.showSuffix = showSuffix;
  3217. this.measureStyleModel.measureVMulPLine.showSerial = showSerial;
  3218. this.measureStyleModel.measureVMulPLine.chooseStyle = chooseStyle;
  3219. this.measureStyleModel.measurePointHLine.font = font;
  3220. this.measureStyleModel.measurePointHLine.fontSize = fontSize;
  3221. this.measureStyleModel.measurePointHLine.textColor = textColor;
  3222. this.measureStyleModel.measurePointHLine.lineColor = lineColor;
  3223. this.measureStyleModel.measurePointHLine.lineWidth = lineWidth;
  3224. this.measureStyleModel.measurePointHLine.lineStyle = lineStyle;
  3225. this.measureStyleModel.measurePointHLine.linePositionL = linePositionL;
  3226. this.measureStyleModel.measurePointHLine.linePositionP = linePositionP;
  3227. this.measureStyleModel.measurePointHLine.aliasName = aliasName;
  3228. this.measureStyleModel.measurePointHLine.suffixName = suffixName;
  3229. this.measureStyleModel.measurePointHLine.showAlias = showAlias;
  3230. this.measureStyleModel.measurePointHLine.showSuffix = showSuffix;
  3231. this.measureStyleModel.measurePointHLine.showSerial = showSerial;
  3232. this.measureStyleModel.measurePointHLine.chooseStyle = chooseStyle;
  3233. break;
  3234. // 平行线测量
  3235. case 5:
  3236. this.measureStyleModel.measureParallelLine.font = font;
  3237. this.measureStyleModel.measureParallelLine.fontSize = fontSize;
  3238. this.measureStyleModel.measureParallelLine.textColor = textColor;
  3239. this.measureStyleModel.measureParallelLine.lineColor = lineColor;
  3240. this.measureStyleModel.measureParallelLine.lineWidth = lineWidth;
  3241. this.measureStyleModel.measureParallelLine.lineStyle = lineStyle;
  3242. this.measureStyleModel.measureParallelLine.linePositionL = linePositionL;
  3243. this.measureStyleModel.measureParallelLine.linePositionP = linePositionP;
  3244. this.measureStyleModel.measureParallelLine.followLine = this.comboBox5.SelectedIndex == 0 ? true : false;
  3245. this.measureStyleModel.measureParallelLine.aliasName = aliasName;
  3246. this.measureStyleModel.measureParallelLine.suffixName = suffixName;
  3247. this.measureStyleModel.measureParallelLine.showAlias = showAlias;
  3248. this.measureStyleModel.measureParallelLine.showSuffix = showSuffix;
  3249. this.measureStyleModel.measureParallelLine.showSerial = showSerial;
  3250. this.measureStyleModel.measureParallelLine.chooseStyle = chooseStyle;
  3251. this.measureStyleModel.measureMulParallelLine.font = font;
  3252. this.measureStyleModel.measureMulParallelLine.fontSize = fontSize;
  3253. this.measureStyleModel.measureMulParallelLine.textColor = textColor;
  3254. this.measureStyleModel.measureMulParallelLine.lineColor = lineColor;
  3255. this.measureStyleModel.measureMulParallelLine.lineWidth = lineWidth;
  3256. this.measureStyleModel.measureMulParallelLine.lineStyle = lineStyle;
  3257. this.measureStyleModel.measureMulParallelLine.linePositionL = linePositionL;
  3258. this.measureStyleModel.measureMulParallelLine.linePositionP = linePositionP;
  3259. this.measureStyleModel.measureMulParallelLine.aliasName = aliasName;
  3260. this.measureStyleModel.measureMulParallelLine.suffixName = suffixName;
  3261. this.measureStyleModel.measureMulParallelLine.showAlias = showAlias;
  3262. this.measureStyleModel.measureMulParallelLine.showSuffix = showSuffix;
  3263. this.measureStyleModel.measureMulParallelLine.showSerial = showSerial;
  3264. this.measureStyleModel.measureMulParallelLine.chooseStyle = chooseStyle;
  3265. this.measureStyleModel.measureVMulParallelLine.font = font;
  3266. this.measureStyleModel.measureVMulParallelLine.fontSize = fontSize;
  3267. this.measureStyleModel.measureVMulParallelLine.textColor = textColor;
  3268. this.measureStyleModel.measureVMulParallelLine.lineColor = lineColor;
  3269. this.measureStyleModel.measureVMulParallelLine.lineWidth = lineWidth;
  3270. this.measureStyleModel.measureVMulParallelLine.lineStyle = lineStyle;
  3271. this.measureStyleModel.measureVMulParallelLine.linePositionL = linePositionL;
  3272. this.measureStyleModel.measureVMulParallelLine.linePositionP = linePositionP;
  3273. this.measureStyleModel.measureVMulParallelLine.aliasName = aliasName;
  3274. this.measureStyleModel.measureVMulParallelLine.suffixName = suffixName;
  3275. this.measureStyleModel.measureVMulParallelLine.showAlias = showAlias;
  3276. this.measureStyleModel.measureVMulParallelLine.showSuffix = showSuffix;
  3277. this.measureStyleModel.measureVMulParallelLine.showSerial = showSerial;
  3278. this.measureStyleModel.measureVMulParallelLine.chooseStyle = chooseStyle;
  3279. this.measureStyleModel.measureHMulParallelLine.font = font;
  3280. this.measureStyleModel.measureHMulParallelLine.fontSize = fontSize;
  3281. this.measureStyleModel.measureHMulParallelLine.textColor = textColor;
  3282. this.measureStyleModel.measureHMulParallelLine.lineColor = lineColor;
  3283. this.measureStyleModel.measureHMulParallelLine.lineWidth = lineWidth;
  3284. this.measureStyleModel.measureHMulParallelLine.lineStyle = lineStyle;
  3285. this.measureStyleModel.measureHMulParallelLine.linePositionL = linePositionL;
  3286. this.measureStyleModel.measureHMulParallelLine.linePositionP = linePositionP;
  3287. this.measureStyleModel.measureHMulParallelLine.aliasName = aliasName;
  3288. this.measureStyleModel.measureHMulParallelLine.suffixName = suffixName;
  3289. this.measureStyleModel.measureHMulParallelLine.showAlias = showAlias;
  3290. this.measureStyleModel.measureHMulParallelLine.showSuffix = showSuffix;
  3291. this.measureStyleModel.measureHMulParallelLine.showSerial = showSerial;
  3292. this.measureStyleModel.measureHMulParallelLine.chooseStyle = chooseStyle;
  3293. break;
  3294. // 多边形测量
  3295. case 6:
  3296. this.measureStyleModel.measureClosedCurve.font = font;
  3297. this.measureStyleModel.measureClosedCurve.fontSize = fontSize;
  3298. this.measureStyleModel.measureClosedCurve.textColor = textColor;
  3299. this.measureStyleModel.measureClosedCurve.lineColor = lineColor;
  3300. this.measureStyleModel.measureClosedCurve.lineWidth = lineWidth;
  3301. this.measureStyleModel.measureClosedCurve.lineStyle = lineStyle;
  3302. this.measureStyleModel.measureClosedCurve.aliasName = aliasName;
  3303. this.measureStyleModel.measureClosedCurve.suffixName = suffixName;
  3304. this.measureStyleModel.measureClosedCurve.showAlias = showAlias;
  3305. this.measureStyleModel.measureClosedCurve.showSuffix = showSuffix;
  3306. this.measureStyleModel.measureClosedCurve.showSerial = showSerial;
  3307. this.measureStyleModel.measureClosedCurve.chooseStyle = chooseStyle;
  3308. this.measureStyleModel.measurePolygon.font = font;
  3309. this.measureStyleModel.measurePolygon.fontSize = fontSize;
  3310. this.measureStyleModel.measurePolygon.textColor = textColor;
  3311. this.measureStyleModel.measurePolygon.lineColor = lineColor;
  3312. this.measureStyleModel.measurePolygon.lineWidth = lineWidth;
  3313. this.measureStyleModel.measurePolygon.lineStyle = lineStyle;
  3314. this.measureStyleModel.measurePolygon.aliasName = aliasName;
  3315. this.measureStyleModel.measurePolygon.suffixName = suffixName;
  3316. this.measureStyleModel.measurePolygon.showAlias = showAlias;
  3317. this.measureStyleModel.measurePolygon.showSuffix = showSuffix;
  3318. this.measureStyleModel.measurePolygon.showSerial = showSerial;
  3319. this.measureStyleModel.measurePolygon.chooseStyle = chooseStyle;
  3320. this.measureStyleModel.measureRectangle.font = font;
  3321. this.measureStyleModel.measureRectangle.fontSize = fontSize;
  3322. this.measureStyleModel.measureRectangle.textColor = textColor;
  3323. this.measureStyleModel.measureRectangle.lineColor = lineColor;
  3324. this.measureStyleModel.measureRectangle.lineWidth = lineWidth;
  3325. this.measureStyleModel.measureRectangle.lineStyle = lineStyle;
  3326. this.measureStyleModel.measureRectangle.aliasName = aliasName;
  3327. this.measureStyleModel.measureRectangle.suffixName = suffixName;
  3328. this.measureStyleModel.measureRectangle.showAlias = showAlias;
  3329. this.measureStyleModel.measureRectangle.showSuffix = showSuffix;
  3330. this.measureStyleModel.measureRectangle.showSerial = showSerial;
  3331. this.measureStyleModel.measureRectangle.chooseStyle = chooseStyle;
  3332. this.measureStyleModel.measureRandRectangle.font = font;
  3333. this.measureStyleModel.measureRandRectangle.fontSize = fontSize;
  3334. this.measureStyleModel.measureRandRectangle.textColor = textColor;
  3335. this.measureStyleModel.measureRandRectangle.lineColor = lineColor;
  3336. this.measureStyleModel.measureRandRectangle.lineWidth = lineWidth;
  3337. this.measureStyleModel.measureRandRectangle.lineStyle = lineStyle;
  3338. this.measureStyleModel.measureRandRectangle.aliasName = aliasName;
  3339. this.measureStyleModel.measureRandRectangle.suffixName = suffixName;
  3340. this.measureStyleModel.measureRandRectangle.showAlias = showAlias;
  3341. this.measureStyleModel.measureRandRectangle.showSuffix = showSuffix;
  3342. this.measureStyleModel.measureRandRectangle.showSerial = showSerial;
  3343. this.measureStyleModel.measureRandRectangle.chooseStyle = chooseStyle;
  3344. this.measureStyleModel.measureSquare.font = font;
  3345. this.measureStyleModel.measureSquare.fontSize = fontSize;
  3346. this.measureStyleModel.measureSquare.textColor = textColor;
  3347. this.measureStyleModel.measureSquare.lineColor = lineColor;
  3348. this.measureStyleModel.measureSquare.lineWidth = lineWidth;
  3349. this.measureStyleModel.measureSquare.lineStyle = lineStyle;
  3350. this.measureStyleModel.measureSquare.aliasName = aliasName;
  3351. this.measureStyleModel.measureSquare.suffixName = suffixName;
  3352. this.measureStyleModel.measureSquare.showAlias = showAlias;
  3353. this.measureStyleModel.measureSquare.showSuffix = showSuffix;
  3354. this.measureStyleModel.measureSquare.showSerial = showSerial;
  3355. this.measureStyleModel.measureSquare.chooseStyle = chooseStyle;
  3356. this.measureStyleModel.measureRandSquare.font = font;
  3357. this.measureStyleModel.measureRandSquare.fontSize = fontSize;
  3358. this.measureStyleModel.measureRandSquare.textColor = textColor;
  3359. this.measureStyleModel.measureRandSquare.lineColor = lineColor;
  3360. this.measureStyleModel.measureRandSquare.lineWidth = lineWidth;
  3361. this.measureStyleModel.measureRandSquare.lineStyle = lineStyle;
  3362. this.measureStyleModel.measureRandSquare.aliasName = aliasName;
  3363. this.measureStyleModel.measureRandSquare.suffixName = suffixName;
  3364. this.measureStyleModel.measureRandSquare.showAlias = showAlias;
  3365. this.measureStyleModel.measureRandSquare.showSuffix = showSuffix;
  3366. this.measureStyleModel.measureRandSquare.showSerial = showSerial;
  3367. this.measureStyleModel.measureRandSquare.chooseStyle = chooseStyle;
  3368. this.measureStyleModel.measureTracePolygon.font = font;
  3369. this.measureStyleModel.measureTracePolygon.fontSize = fontSize;
  3370. this.measureStyleModel.measureTracePolygon.textColor = textColor;
  3371. this.measureStyleModel.measureTracePolygon.lineColor = lineColor;
  3372. this.measureStyleModel.measureTracePolygon.lineWidth = lineWidth;
  3373. this.measureStyleModel.measureTracePolygon.lineStyle = lineStyle;
  3374. this.measureStyleModel.measureTracePolygon.aliasName = aliasName;
  3375. this.measureStyleModel.measureTracePolygon.suffixName = suffixName;
  3376. this.measureStyleModel.measureTracePolygon.showAlias = showAlias;
  3377. this.measureStyleModel.measureTracePolygon.showSuffix = showSuffix;
  3378. this.measureStyleModel.measureTracePolygon.showSerial = showSerial;
  3379. this.measureStyleModel.measureTracePolygon.chooseStyle = chooseStyle;
  3380. break;
  3381. // 圆形测量
  3382. case 7:
  3383. this.measureStyleModel.measureCircle.font = font;
  3384. this.measureStyleModel.measureCircle.fontSize = fontSize;
  3385. this.measureStyleModel.measureCircle.textColor = textColor;
  3386. this.measureStyleModel.measureCircle.lineColor = lineColor;
  3387. this.measureStyleModel.measureCircle.lineWidth = lineWidth;
  3388. this.measureStyleModel.measureCircle.lineStyle = lineStyle;
  3389. this.measureStyleModel.measureCircle.aliasName = aliasName;
  3390. this.measureStyleModel.measureCircle.suffixName = suffixName;
  3391. this.measureStyleModel.measureCircle.showAlias = showAlias;
  3392. this.measureStyleModel.measureCircle.showSuffix = showSuffix;
  3393. this.measureStyleModel.measureCircle.showSerial = showSerial;
  3394. this.measureStyleModel.measureCircle.chooseStyle = chooseStyle;
  3395. this.measureStyleModel.measureInnerCircle.font = font;
  3396. this.measureStyleModel.measureInnerCircle.fontSize = fontSize;
  3397. this.measureStyleModel.measureInnerCircle.textColor = textColor;
  3398. this.measureStyleModel.measureInnerCircle.lineColor = lineColor;
  3399. this.measureStyleModel.measureInnerCircle.lineWidth = lineWidth;
  3400. this.measureStyleModel.measureInnerCircle.lineStyle = lineStyle;
  3401. this.measureStyleModel.measureInnerCircle.aliasName = aliasName;
  3402. this.measureStyleModel.measureInnerCircle.suffixName = suffixName;
  3403. this.measureStyleModel.measureInnerCircle.showAlias = showAlias;
  3404. this.measureStyleModel.measureInnerCircle.showSuffix = showSuffix;
  3405. this.measureStyleModel.measureInnerCircle.showSerial = showSerial;
  3406. this.measureStyleModel.measureInnerCircle.chooseStyle = chooseStyle;
  3407. this.measureStyleModel.measureOuterCircle.font = font;
  3408. this.measureStyleModel.measureOuterCircle.fontSize = fontSize;
  3409. this.measureStyleModel.measureOuterCircle.textColor = textColor;
  3410. this.measureStyleModel.measureOuterCircle.lineColor = lineColor;
  3411. this.measureStyleModel.measureOuterCircle.lineWidth = lineWidth;
  3412. this.measureStyleModel.measureOuterCircle.lineStyle = lineStyle;
  3413. this.measureStyleModel.measureOuterCircle.aliasName = aliasName;
  3414. this.measureStyleModel.measureOuterCircle.suffixName = suffixName;
  3415. this.measureStyleModel.measureOuterCircle.showAlias = showAlias;
  3416. this.measureStyleModel.measureOuterCircle.showSuffix = showSuffix;
  3417. this.measureStyleModel.measureOuterCircle.showSerial = showSerial;
  3418. this.measureStyleModel.measureOuterCircle.chooseStyle = chooseStyle;
  3419. this.measureStyleModel.measureDiameterCircle.font = font;
  3420. this.measureStyleModel.measureDiameterCircle.fontSize = fontSize;
  3421. this.measureStyleModel.measureDiameterCircle.textColor = textColor;
  3422. this.measureStyleModel.measureDiameterCircle.lineColor = lineColor;
  3423. this.measureStyleModel.measureDiameterCircle.lineWidth = lineWidth;
  3424. this.measureStyleModel.measureDiameterCircle.lineStyle = lineStyle;
  3425. this.measureStyleModel.measureDiameterCircle.aliasName = aliasName;
  3426. this.measureStyleModel.measureDiameterCircle.suffixName = suffixName;
  3427. this.measureStyleModel.measureDiameterCircle.showAlias = showAlias;
  3428. this.measureStyleModel.measureDiameterCircle.showSuffix = showSuffix;
  3429. this.measureStyleModel.measureDiameterCircle.showSerial = showSerial;
  3430. this.measureStyleModel.measureDiameterCircle.chooseStyle = chooseStyle;
  3431. this.measureStyleModel.measurePointEdgeSize.font = font;
  3432. this.measureStyleModel.measurePointEdgeSize.fontSize = fontSize;
  3433. this.measureStyleModel.measurePointEdgeSize.textColor = textColor;
  3434. this.measureStyleModel.measurePointEdgeSize.lineColor = lineColor;
  3435. this.measureStyleModel.measurePointEdgeSize.lineWidth = lineWidth;
  3436. this.measureStyleModel.measurePointEdgeSize.lineStyle = lineStyle;
  3437. this.measureStyleModel.measurePointEdgeSize.aliasName = aliasName;
  3438. this.measureStyleModel.measurePointEdgeSize.suffixName = suffixName;
  3439. this.measureStyleModel.measurePointEdgeSize.showAlias = showAlias;
  3440. this.measureStyleModel.measurePointEdgeSize.showSuffix = showSuffix;
  3441. this.measureStyleModel.measurePointEdgeSize.showSerial = showSerial;
  3442. this.measureStyleModel.measurePointEdgeSize.chooseStyle = chooseStyle;
  3443. this.measureStyleModel.measurePointCenterSize.font = font;
  3444. this.measureStyleModel.measurePointCenterSize.fontSize = fontSize;
  3445. this.measureStyleModel.measurePointCenterSize.textColor = textColor;
  3446. this.measureStyleModel.measurePointCenterSize.lineColor = lineColor;
  3447. this.measureStyleModel.measurePointCenterSize.lineWidth = lineWidth;
  3448. this.measureStyleModel.measurePointCenterSize.lineStyle = lineStyle;
  3449. this.measureStyleModel.measurePointCenterSize.aliasName = aliasName;
  3450. this.measureStyleModel.measurePointCenterSize.suffixName = suffixName;
  3451. this.measureStyleModel.measurePointCenterSize.showAlias = showAlias;
  3452. this.measureStyleModel.measurePointCenterSize.showSuffix = showSuffix;
  3453. this.measureStyleModel.measurePointCenterSize.showSerial = showSerial;
  3454. this.measureStyleModel.measurePointCenterSize.chooseStyle = chooseStyle;
  3455. this.measureStyleModel.measurePointArcSize.font = font;
  3456. this.measureStyleModel.measurePointArcSize.fontSize = fontSize;
  3457. this.measureStyleModel.measurePointArcSize.textColor = textColor;
  3458. this.measureStyleModel.measurePointArcSize.lineColor = lineColor;
  3459. this.measureStyleModel.measurePointArcSize.lineWidth = lineWidth;
  3460. this.measureStyleModel.measurePointArcSize.lineStyle = lineStyle;
  3461. this.measureStyleModel.measurePointArcSize.aliasName = aliasName;
  3462. this.measureStyleModel.measurePointArcSize.suffixName = suffixName;
  3463. this.measureStyleModel.measurePointArcSize.showAlias = showAlias;
  3464. this.measureStyleModel.measurePointArcSize.showSuffix = showSuffix;
  3465. this.measureStyleModel.measurePointArcSize.showSerial = showSerial;
  3466. this.measureStyleModel.measurePointArcSize.chooseStyle = chooseStyle;
  3467. break;
  3468. // 角度测量
  3469. case 8:
  3470. this.measureStyleModel.measureThreePointAngle.font = font;
  3471. this.measureStyleModel.measureThreePointAngle.fontSize = fontSize;
  3472. this.measureStyleModel.measureThreePointAngle.textColor = textColor;
  3473. this.measureStyleModel.measureThreePointAngle.lineColor = lineColor;
  3474. this.measureStyleModel.measureThreePointAngle.lineWidth = lineWidth;
  3475. this.measureStyleModel.measureThreePointAngle.lineStyle = lineStyle;
  3476. this.measureStyleModel.measureThreePointAngle.isAngle = isAngle;
  3477. this.measureStyleModel.measureThreePointAngle.aliasName = aliasName;
  3478. this.measureStyleModel.measureThreePointAngle.suffixName = suffixName;
  3479. this.measureStyleModel.measureThreePointAngle.showAlias = showAlias;
  3480. this.measureStyleModel.measureThreePointAngle.showSuffix = showSuffix;
  3481. this.measureStyleModel.measureThreePointAngle.showSerial = showSerial;
  3482. this.measureStyleModel.measureThreePointAngle.chooseStyle = chooseStyle;
  3483. this.measureStyleModel.measureFourPointAngle.font = font;
  3484. this.measureStyleModel.measureFourPointAngle.fontSize = fontSize;
  3485. this.measureStyleModel.measureFourPointAngle.textColor = textColor;
  3486. this.measureStyleModel.measureFourPointAngle.lineColor = lineColor;
  3487. this.measureStyleModel.measureFourPointAngle.lineWidth = lineWidth;
  3488. this.measureStyleModel.measureFourPointAngle.lineStyle = lineStyle;
  3489. this.measureStyleModel.measureFourPointAngle.isAngle = isAngle;
  3490. this.measureStyleModel.measureFourPointAngle.aliasName = aliasName;
  3491. this.measureStyleModel.measureFourPointAngle.suffixName = suffixName;
  3492. this.measureStyleModel.measureFourPointAngle.showAlias = showAlias;
  3493. this.measureStyleModel.measureFourPointAngle.showSuffix = showSuffix;
  3494. this.measureStyleModel.measureFourPointAngle.showSerial = showSerial;
  3495. this.measureStyleModel.measureFourPointAngle.chooseStyle = chooseStyle;
  3496. this.measureStyleModel.measureThreePointArc.font = font;
  3497. this.measureStyleModel.measureThreePointArc.fontSize = fontSize;
  3498. this.measureStyleModel.measureThreePointArc.textColor = textColor;
  3499. this.measureStyleModel.measureThreePointArc.lineColor = lineColor;
  3500. this.measureStyleModel.measureThreePointArc.lineWidth = lineWidth;
  3501. this.measureStyleModel.measureThreePointArc.lineStyle = lineStyle;
  3502. this.measureStyleModel.measureThreePointArc.isAngle = isAngle;
  3503. this.measureStyleModel.measureThreePointArc.aliasName = aliasName;
  3504. this.measureStyleModel.measureThreePointArc.suffixName = suffixName;
  3505. this.measureStyleModel.measureThreePointArc.showAlias = showAlias;
  3506. this.measureStyleModel.measureThreePointArc.showSuffix = showSuffix;
  3507. this.measureStyleModel.measureThreePointArc.showSerial = showSerial;
  3508. this.measureStyleModel.measureThreePointArc.chooseStyle = chooseStyle;
  3509. break;
  3510. case 9:
  3511. this.measureStyleModel.measureCenterCenterSize.font = font;
  3512. this.measureStyleModel.measureCenterCenterSize.fontSize = fontSize;
  3513. this.measureStyleModel.measureCenterCenterSize.textColor = textColor;
  3514. this.measureStyleModel.measureCenterCenterSize.lineColor = lineColor;
  3515. this.measureStyleModel.measureCenterCenterSize.lineWidth = lineWidth;
  3516. this.measureStyleModel.measureCenterCenterSize.lineStyle = lineStyle;
  3517. this.measureStyleModel.measureCenterCenterSize.linePosition = linePosition;
  3518. this.measureStyleModel.measureCenterCenterSize.aliasName = aliasName;
  3519. this.measureStyleModel.measureCenterCenterSize.suffixName = suffixName;
  3520. this.measureStyleModel.measureCenterCenterSize.showAlias = showAlias;
  3521. this.measureStyleModel.measureCenterCenterSize.showSuffix = showSuffix;
  3522. this.measureStyleModel.measureCenterCenterSize.showSerial = showSerial;
  3523. this.measureStyleModel.measureCenterCenterSize.chooseStyle = chooseStyle;
  3524. this.measureStyleModel.measureTwoLineVLDistance.font = font;
  3525. this.measureStyleModel.measureTwoLineVLDistance.fontSize = fontSize;
  3526. this.measureStyleModel.measureTwoLineVLDistance.textColor = textColor;
  3527. this.measureStyleModel.measureTwoLineVLDistance.lineColor = lineColor;
  3528. this.measureStyleModel.measureTwoLineVLDistance.lineWidth = lineWidth;
  3529. this.measureStyleModel.measureTwoLineVLDistance.lineStyle = lineStyle;
  3530. this.measureStyleModel.measureTwoLineVLDistance.linePosition = linePosition;
  3531. this.measureStyleModel.measureTwoLineVLDistance.aliasName = aliasName;
  3532. this.measureStyleModel.measureTwoLineVLDistance.suffixName = suffixName;
  3533. this.measureStyleModel.measureTwoLineVLDistance.showAlias = showAlias;
  3534. this.measureStyleModel.measureTwoLineVLDistance.showSuffix = showSuffix;
  3535. this.measureStyleModel.measureTwoLineVLDistance.showSerial = showSerial;
  3536. this.measureStyleModel.measureTwoLineVLDistance.chooseStyle = chooseStyle;
  3537. break;
  3538. }
  3539. //以下保存xml文件信息
  3540. string stageModelXml = XmlSerializeHelper.XmlSerialize<MeasureStyleModel>(this.measureStyleModel);
  3541. string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Measure\\" + this.comboBox1.Text + ".xml";
  3542. FileOperationHelper.WriteStringToFile(stageModelXml, filePath, FileMode.Create);
  3543. ApplicationSetting();
  3544. }
  3545. }
  3546. }