MethodCutOffDialog.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Windows.Forms;
  5. using GroupBox = System.Windows.Forms.GroupBox;
  6. using CheckBox = System.Windows.Forms.CheckBox;
  7. using Button = System.Windows.Forms.Button;
  8. using System.Data;
  9. namespace PaintDotNet.DedicatedAnalysis.GrainSizeStandard.GBT6394
  10. {
  11. internal class MethodCutOffDialog : GrainSizeStandardDialog
  12. {
  13. /// <summary>
  14. /// 测定结果暂存
  15. /// </summary>
  16. private List<DataTable> dataTable1s = new List<DataTable>();
  17. /// <summary>
  18. /// 储存点击保存结果后的所有原图与分析图
  19. /// </summary>
  20. private Dictionary<string, List<Bitmap>> bitCeDingDic = new Dictionary<string, List<Bitmap>>();
  21. #region 组件
  22. private GroupBox groupBox10;
  23. private Button button10;
  24. private Button button7_0;
  25. private GroupBox groupBox11;
  26. private CheckBox checkBox5_0;
  27. private CheckBox checkBox4;
  28. private CheckBox checkBox3_0;
  29. private DataGridViewTextBoxColumn ColumnTotal1;
  30. private DataGridViewTextBoxColumn ColumnTotal2;
  31. private DataGridViewTextBoxColumn ColumnTotal3;
  32. private DataGridViewTextBoxColumn ColumnTotal4;
  33. private DataGridViewTextBoxColumn ColumnTotal5;
  34. private DataGridViewTextBoxColumn ColumnTotal6;
  35. private DataGridViewTextBoxColumn Column1;
  36. private DataGridViewTextBoxColumn Column2;
  37. private DataGridViewTextBoxColumn Column3;
  38. private DataGridViewTextBoxColumn Column4;
  39. private DataGridViewTextBoxColumn Column5;
  40. private DataGridViewTextBoxColumn Column6;
  41. private Button button8;
  42. private Button button6_0;
  43. #endregion 组件
  44. #region 构造函数
  45. public MethodCutOffDialog(AppWorkspace appWorkspace, PdnMenuItem menuItem) : base(appWorkspace, menuItem, null, 0)
  46. {
  47. }
  48. #endregion 构造函数
  49. #region 初始化组件
  50. private void InitializeComponentText()
  51. {
  52. this.groupBox10.Text = PdnResources.GetString("Menu.sectionoperation.text");
  53. }
  54. private void InitializeComponent()
  55. {
  56. this.groupBox10 = new System.Windows.Forms.GroupBox();
  57. this.button8 = new System.Windows.Forms.Button();
  58. this.button6_0 = new System.Windows.Forms.Button();
  59. this.button10 = new System.Windows.Forms.Button();
  60. this.button7_0 = new System.Windows.Forms.Button();
  61. this.groupBox11 = new System.Windows.Forms.GroupBox();
  62. this.checkBox5_0 = new System.Windows.Forms.CheckBox();
  63. this.checkBox4 = new System.Windows.Forms.CheckBox();
  64. this.checkBox3_0 = new System.Windows.Forms.CheckBox();
  65. this.ColumnTotal1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  66. this.ColumnTotal2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  67. this.ColumnTotal3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  68. this.ColumnTotal4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  69. this.ColumnTotal5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  70. this.ColumnTotal6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  71. this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  72. this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  73. this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  74. this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  75. this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  76. this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
  77. this.groupBox_analysisResult1.SuspendLayout();
  78. this.groupBox10.SuspendLayout();
  79. this.groupBox11.SuspendLayout();
  80. this.SuspendLayout();
  81. //
  82. // groupBox10
  83. //
  84. this.groupBox10.Controls.Add(this.button8);
  85. this.groupBox10.Controls.Add(this.button6_0);
  86. this.groupBox10.Controls.Add(this.button10);
  87. this.groupBox10.Controls.Add(this.button7_0);
  88. this.groupBox10.Location = new System.Drawing.Point(179, 370);
  89. this.groupBox10.Name = "groupBox10";
  90. this.groupBox10.Size = new System.Drawing.Size(208, 74);
  91. this.groupBox10.TabIndex = 38;
  92. this.groupBox10.TabStop = false;
  93. //
  94. // button8
  95. //
  96. this.button8.BackColor = System.Drawing.SystemColors.Control;
  97. this.button8.Location = new System.Drawing.Point(107, 42);
  98. this.button8.Name = "button8";
  99. this.button8.Size = new System.Drawing.Size(95, 26);
  100. this.button8.TabIndex = 13;
  101. this.button8.UseVisualStyleBackColor = false;
  102. this.button8.Click += new System.EventHandler(this.button8_Click);
  103. //
  104. // button6_0
  105. //
  106. this.button6_0.BackColor = System.Drawing.SystemColors.Control;
  107. this.button6_0.Location = new System.Drawing.Point(6, 43);
  108. this.button6_0.Name = "button6_0";
  109. this.button6_0.Size = new System.Drawing.Size(95, 26);
  110. this.button6_0.TabIndex = 12;
  111. this.button6_0.UseVisualStyleBackColor = false;
  112. this.button6_0.Click += new System.EventHandler(this.button6_0_Click);
  113. //
  114. // button10
  115. //
  116. this.button10.BackColor = System.Drawing.SystemColors.Control;
  117. this.button10.Location = new System.Drawing.Point(107, 15);
  118. this.button10.Name = "button10";
  119. this.button10.Size = new System.Drawing.Size(95, 26);
  120. this.button10.TabIndex = 11;
  121. this.button10.UseVisualStyleBackColor = false;
  122. this.button10.Click += new System.EventHandler(this.button10_Click);
  123. //
  124. // button7_0
  125. //
  126. this.button7_0.BackColor = System.Drawing.SystemColors.Control;
  127. this.button7_0.Location = new System.Drawing.Point(6, 15);
  128. this.button7_0.Name = "button7_0";
  129. this.button7_0.Size = new System.Drawing.Size(95, 26);
  130. this.button7_0.TabIndex = 8;
  131. this.button7_0.UseVisualStyleBackColor = false;
  132. this.button7_0.Click += new System.EventHandler(this.button7_0_Click);
  133. //
  134. // groupBox11
  135. //
  136. this.groupBox11.Controls.Add(this.checkBox5_0);
  137. this.groupBox11.Controls.Add(this.checkBox4);
  138. this.groupBox11.Controls.Add(this.checkBox3_0);
  139. this.groupBox11.Location = new System.Drawing.Point(393, 370);
  140. this.groupBox11.Name = "groupBox11";
  141. this.groupBox11.Size = new System.Drawing.Size(142, 74);
  142. this.groupBox11.TabIndex = 39;
  143. this.groupBox11.TabStop = false;
  144. //
  145. // checkBox5_0
  146. //
  147. this.checkBox5_0.AutoSize = true;
  148. this.checkBox5_0.Checked = true;
  149. this.checkBox5_0.CheckState = System.Windows.Forms.CheckState.Checked;
  150. this.checkBox5_0.Location = new System.Drawing.Point(15, 53);
  151. this.checkBox5_0.Name = "checkBox5_0";
  152. this.checkBox5_0.Size = new System.Drawing.Size(72, 16);
  153. this.checkBox5_0.TabIndex = 2;
  154. this.checkBox5_0.UseVisualStyleBackColor = true;
  155. this.checkBox5_0.CheckedChanged += new System.EventHandler(this.checkBox5_0_CheckedChanged);
  156. //
  157. // checkBox4
  158. //
  159. this.checkBox4.AutoSize = true;
  160. this.checkBox4.Checked = true;
  161. this.checkBox4.CheckState = System.Windows.Forms.CheckState.Checked;
  162. this.checkBox4.Location = new System.Drawing.Point(15, 35);
  163. this.checkBox4.Name = "checkBox4";
  164. this.checkBox4.Size = new System.Drawing.Size(72, 16);
  165. this.checkBox4.TabIndex = 1;
  166. this.checkBox4.UseVisualStyleBackColor = true;
  167. this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_CheckedChanged);
  168. //
  169. // checkBox3_0
  170. //
  171. this.checkBox3_0.AutoSize = true;
  172. this.checkBox3_0.Checked = true;
  173. this.checkBox3_0.CheckState = System.Windows.Forms.CheckState.Checked;
  174. this.checkBox3_0.Location = new System.Drawing.Point(15, 17);
  175. this.checkBox3_0.Name = "checkBox3_0";
  176. this.checkBox3_0.Size = new System.Drawing.Size(72, 16);
  177. this.checkBox3_0.TabIndex = 0;
  178. this.checkBox3_0.UseVisualStyleBackColor = true;
  179. this.checkBox3_0.CheckedChanged += new System.EventHandler(this.checkBox3_0_CheckedChanged);
  180. this.dataGridView_Total.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  181. this.ColumnTotal3,
  182. this.ColumnTotal4,
  183. this.ColumnTotal5,
  184. this.ColumnTotal6});
  185. //
  186. // ColumnTotal1
  187. //
  188. this.ColumnTotal1.Name = "ColumnTotal1";
  189. this.ColumnTotal1.ReadOnly = true;
  190. //
  191. // ColumnTotal2
  192. //
  193. this.ColumnTotal2.Name = "ColumnTotal2";
  194. this.ColumnTotal2.ReadOnly = true;
  195. //
  196. // ColumnTotal3
  197. //
  198. this.ColumnTotal3.Name = "ColumnTotal3";
  199. this.ColumnTotal3.ReadOnly = true;
  200. //
  201. // ColumnTotal4
  202. //
  203. this.ColumnTotal4.Name = "ColumnTotal4";
  204. this.ColumnTotal4.ReadOnly = true;
  205. //
  206. // ColumnTotal5
  207. //
  208. this.ColumnTotal5.Name = "ColumnTotal5";
  209. this.ColumnTotal5.ReadOnly = true;
  210. //
  211. // ColumnTotal6
  212. //
  213. this.ColumnTotal6.Name = "ColumnTotal6";
  214. this.ColumnTotal6.ReadOnly = true;
  215. this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
  216. this.Column1,
  217. this.Column2,
  218. this.Column3,
  219. this.Column4,
  220. this.Column5,
  221. this.Column6});
  222. //
  223. // Column1
  224. //
  225. this.Column1.Name = "Column1";
  226. this.Column1.ReadOnly = true;
  227. //
  228. // Column2
  229. //
  230. this.Column2.Name = "Column2";
  231. this.Column2.ReadOnly = true;
  232. //
  233. // Column3
  234. //
  235. this.Column3.Name = "Graisize";
  236. this.Column3.ReadOnly = true;
  237. //
  238. // Column4
  239. //
  240. this.Column4.Name = "Grainnumber";
  241. this.Column4.ReadOnly = true;
  242. //
  243. // Column5
  244. //
  245. this.Column5.Name = "Grainintercept";
  246. this.Column5.ReadOnly = true;
  247. //
  248. // Column6
  249. //
  250. this.Column6.Name = "Graingrade";
  251. this.Column6.ReadOnly = true;
  252. //
  253. // MethodCutOffDialog
  254. //
  255. this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
  256. this.ClientSize = new System.Drawing.Size(1127, 810);
  257. this.Controls.Add(this.groupBox10);
  258. this.Controls.Add(this.groupBox11);
  259. this.Name = "MethodCutOffDialog";
  260. this.TopMost = false;
  261. this.Load += new System.EventHandler(this.MethodCutOffDialog_Load);
  262. this.Controls.SetChildIndex(this.groupBox11, 0);
  263. this.Controls.SetChildIndex(this.groupBox10, 0);
  264. this.Controls.SetChildIndex(this.groupBox6groupBox_analysisResult2, 0);
  265. this.Controls.SetChildIndex(this.groupBox_img, 0);
  266. this.Controls.SetChildIndex(this.groupBox_review, 0);
  267. this.Controls.SetChildIndex(this.groupBox_analysisResult1, 0);
  268. this.Controls.SetChildIndex(this.groupBox_report, 0);
  269. this.groupBox_analysisResult1.ResumeLayout(false);
  270. this.groupBox10.ResumeLayout(false);
  271. this.groupBox11.ResumeLayout(false);
  272. this.groupBox11.PerformLayout();
  273. this.ResumeLayout(false);
  274. }
  275. #endregion 初始化组件
  276. #region 需继承方法
  277. /// <summary>
  278. /// 是否显示晶界
  279. /// </summary>
  280. /// <returns></returns>
  281. protected override Boolean ShowGrainBoundryChecked()
  282. {
  283. return checkBox3_0.Checked;
  284. }
  285. //是否绘制辅助线
  286. protected override bool showGridChecked()
  287. {
  288. return checkBox4.Checked;
  289. }
  290. //是否绘制截点
  291. protected override bool drawGuidePoints()
  292. {
  293. return (imageMat != null && this.checkBox5_0.Checked);
  294. }
  295. //是否显示截点
  296. protected override Boolean drawDisplaySections()
  297. {
  298. return this.checkBox5_0.Checked;
  299. }
  300. //辅助线类型
  301. protected override string[] getTypeNames()
  302. {
  303. return new string[] {
  304. PdnResources.GetString("Menu.Verticalauxiliaryline.text"),
  305. PdnResources.GetString("Menu.Horizontalauxiliaryline.text"),
  306. PdnResources.GetString("Menu.Singlecircleauxiliaryline.text"),
  307. PdnResources.GetString("Menu.Three-circleauxiliaryline.text"),
  308. PdnResources.GetString("Menu.Compositeauxiliaryline.text")};
  309. }
  310. protected override string getTemplateName()
  311. {
  312. return "Template.Manager.item3.GrainSizeCutOff6394Method";
  313. }
  314. protected override string getProjectEngineeringName()
  315. {
  316. return "Menu.DedicatedAnalysis.BlackMetal.GrainSize.Text";
  317. }
  318. protected override string getModelName()
  319. {
  320. return "GrainSizeGuideStyleModel.xml";
  321. }
  322. protected override void SubclassInitialize()
  323. {
  324. InitializeComponent();
  325. InitializeComponentText();
  326. DetailListNotDoubleIndex.Add(0);
  327. DetailListNotDoubleIndex.Add(1);
  328. }
  329. #endregion
  330. protected override void refreshWhileImgChanged()
  331. {
  332. object ShowGrainBoundry;
  333. if (GetParamValue1(ParamKey_displaygrainboundaries, out ShowGrainBoundry))//显示晶界
  334. this.checkBox3_0.Checked = (bool)ShowGrainBoundry;
  335. if (GetParamValue1(ParamKey_displaygrid, out ShowGrainBoundry))//显示网格
  336. this.checkBox4.Checked = (bool)ShowGrainBoundry;
  337. if (GetParamValue1(ParamKey_displaysections, out ShowGrainBoundry))//显示截点
  338. this.checkBox5_0.Checked = (bool)ShowGrainBoundry;
  339. }
  340. private void MethodCutOffDialog_Load(object sender, EventArgs e)
  341. {
  342. object ShowGrainBoundry;
  343. if (GetParamValue1(ParamKey_displaygrainboundaries, out ShowGrainBoundry))//显示晶界
  344. this.checkBox3_0.Checked = (bool)ShowGrainBoundry;
  345. if (GetParamValue1(ParamKey_displaygrid, out ShowGrainBoundry))//显示网格
  346. this.checkBox4.Checked = (bool)ShowGrainBoundry;
  347. if (GetParamValue1(ParamKey_displaysections, out ShowGrainBoundry))//显示截点
  348. this.checkBox5_0.Checked = (bool)ShowGrainBoundry;
  349. this.button8.Text = PdnResources.GetString("Menu.1.5/2section.text");
  350. this.button6_0.Text = PdnResources.GetString("Menu.0.5sectionstyle.text");
  351. this.button10.Text = PdnResources.GetString("Menu.Setting.Text");
  352. this.button7_0.Text = PdnResources.GetString("Menu.1section.text");
  353. this.groupBox11.Text = PdnResources.GetString("Menu.Displayparamssettings.text");
  354. this.checkBox5_0.Text = PdnResources.GetString("Menu.displaysections.text");
  355. this.checkBox4.Text = PdnResources.GetString("Menu.displaygrid.text");
  356. this.checkBox3_0.Text = PdnResources.GetString("Menu.displaygrainboundaries.text");
  357. this.ColumnTotal1.HeaderText = PdnResources.GetString("Menu.Intersectinggrainnumber.Text");
  358. this.ColumnTotal2.HeaderText = PdnResources.GetString("Menu.Numberofgrainsingrid.Text");
  359. this.ColumnTotal3.HeaderText = PdnResources.GetString("Menu.Totalmeshlength.Text") + "(μm)";
  360. this.ColumnTotal4.HeaderText = PdnResources.GetString("Menu.umberofpoints.Text");
  361. this.ColumnTotal5.HeaderText = PdnResources.GetString("Menu.averageintercept.text") + "(μm)";
  362. this.ColumnTotal6.HeaderText = PdnResources.GetString("Menu.Averagegrainsizegrade.text");
  363. this.Column1.HeaderText = PdnResources.GetString("Menu.picture.Text");
  364. this.Column2.HeaderText = PdnResources.GetString("Menu.Tools.GridLine.Text");
  365. this.Column3.HeaderText = PdnResources.GetString("Menu.Gridlength.text") + "(μm)";
  366. this.Column4.HeaderText = PdnResources.GetString("Menu.Thenumberofsections.text");
  367. this.Column5.HeaderText = PdnResources.GetString("Menu.averageintercept.text") + "(μm)";
  368. this.Column6.HeaderText = PdnResources.GetString("Menu.Averagegrainsizegrade.text");
  369. this.Text = "GBT6394_2017(" + PdnResources.GetString("Menu.sectionmethod.text") + ")";
  370. //this.groupBox_img.Size = new System.Drawing.Size(158, 722);
  371. //this.groupBox_review.Size = new System.Drawing.Size(575, 722);
  372. //this.groupBox_analysisResult1.Location = new System.Drawing.Point(12, 800);
  373. //this.groupBox6groupBox_analysisResult2.Location = new System.Drawing.Point(242, 800);
  374. //this.groupBox_report.Location = new System.Drawing.Point(974, 800);
  375. }
  376. /// <summary>
  377. /// 是否显示网格
  378. /// </summary>
  379. /// <param name="sender"></param>
  380. /// <param name="e"></param>
  381. private void checkBox4_CheckedChanged(object sender, EventArgs e)
  382. {
  383. this.documentWorkspace.Refresh();
  384. }
  385. /// <summary>
  386. /// 是否显示截点
  387. /// </summary>
  388. /// <param name="sender"></param>
  389. /// <param name="e"></param>
  390. private void checkBox5_0_CheckedChanged(object sender, EventArgs e)
  391. {
  392. if (!this.checkBox4.Checked)
  393. MessageBox.Show(PdnResources.GetString("Menu.Nogrid.text")+"!");
  394. this.documentWorkspace.Refresh();
  395. }
  396. /// <summary>
  397. /// 是否显示晶界
  398. /// </summary>
  399. /// <param name="sender"></param>
  400. /// <param name="e"></param>
  401. private void checkBox3_0_CheckedChanged(object sender, EventArgs e)
  402. {
  403. if (!bcOriginChecked() && getGrainBoundryChecked() && checkBox3_0.Checked)
  404. {
  405. this.documentWorkspace.PhaseModels[1].choise = true;
  406. }
  407. else
  408. {
  409. this.documentWorkspace.PhaseModels[1].choise = false;
  410. }
  411. this.documentWorkspace.Refresh();
  412. }
  413. /// <summary>
  414. /// 设置截点样式
  415. /// </summary>
  416. /// <param name="sender"></param>
  417. /// <param name="e"></param>
  418. private void button10_Click(object sender, EventArgs e)
  419. {
  420. ShowGrainSurveyPointStyleSettingDialog();
  421. }
  422. /// <summary>
  423. /// 鼠标按下
  424. /// </summary>
  425. /// <param name="drawArea"></param>
  426. /// <param name="e"></param>
  427. protected override void OnMouseDown(object sender, MouseEventArgs e)
  428. {
  429. if (this.documentWorkspace.CompositionSurface == null)
  430. return;
  431. // 换算后的点
  432. PointF point1 = documentWorkspace.GetScalePoint(e.Location);
  433. if (point1.X <= this.documentWorkspace.CompositionSurface.Width
  434. && point1.X >= 0
  435. && point1.Y >= 0
  436. && point1.Y <= this.documentWorkspace.CompositionSurface.Height)
  437. {
  438. RectangleF rectangleF;
  439. // 复合辅助线
  440. int add = GSSClass.GuideClass.getAddOfRStyle(point1, this.comboBox1.SelectedItem, out rectangleF);
  441. if (add == 0 && GSSClass.styleClass.PointKb > 0)
  442. rectangleF = GSSClass.GuideClass.guideModel.RectangleFLine;
  443. //手动添加截点
  444. if (this.documentWorkspace.ActiveTool == Annotation.Enum.DrawToolType.InclusionNoEffect && GSSClass.styleClass.OnMouseDownNext(point1, sender, e))
  445. GSSClass.styleClass.OnMouseDownFirst(point1, rectangleF, GSSClass.standardModel.linePointList, e);
  446. }
  447. if (GSSClass.styleClass.PointKb == 0)
  448. {
  449. //辅助线缩放
  450. GSSClass.GuideClass.OnMouseDown(point1, sender, e);
  451. //辅助线移动
  452. base.OnMouseDown(sender, e);//##
  453. }
  454. ////手动删除截点或取消添加截点
  455. //GSSClass.styleClass.OnMouseDownNext(point1, sender, e);
  456. }
  457. private void button6_0_Click(object sender, EventArgs e)
  458. {
  459. if (this.imageMat != null)
  460. {
  461. //MessageBox.Show(PdnResources.GetString("Menu.ftbuttontoaddainterceptadd.Text")+"!");
  462. GSSClass.styleClass.PointKb = 1;
  463. }
  464. else
  465. {
  466. MessageBox.Show(PdnResources.GetString("Menu.Pleaseselectapicture.text")+"!");
  467. }
  468. }
  469. /// <summary>
  470. /// 1截点添加
  471. /// </summary>
  472. /// <param name="sender"></param>
  473. /// <param name="e"></param>
  474. private void button7_0_Click(object sender, EventArgs e)
  475. {
  476. if (this.imageMat != null)
  477. {
  478. //MessageBox.Show(PdnResources.GetString("Menu.ftbuttontoaddainterceptadd.Text")+"!");
  479. GSSClass.styleClass.PointKb = 2;
  480. }
  481. else
  482. {
  483. MessageBox.Show(PdnResources.GetString("Menu.Pleaseselectapicture.text")+"!");
  484. }
  485. }
  486. private void button8_Click(object sender, EventArgs e)
  487. {
  488. if (this.imageMat != null)
  489. {
  490. //MessageBox.Show(PdnResources.GetString("Menu.ftbuttontoaddainterceptadd.Text")+"!");
  491. GSSClass.styleClass.PointKb = 3;
  492. }
  493. else
  494. {
  495. MessageBox.Show(PdnResources.GetString("Menu.Pleaseselectapicture.text")+"!");
  496. }
  497. }
  498. }
  499. }