版博士V2.0程序
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

394 wiersze
21 KiB

  1. using MaiMuAOI.SysCtrl;
  2. using MaiMuAOI.SysUI;
  3. using System;
  4. using System.CodeDom.Compiler;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.IO;
  10. using System.IO.Ports;
  11. using System.Linq;
  12. using System.Text;
  13. using System.Threading.Tasks;
  14. using System.Windows.Forms;
  15. namespace MaiMuAOI.UI.SysSet
  16. {
  17. public partial class SysSetFrm : Form
  18. {
  19. public SysSetFrm()
  20. {
  21. InitializeComponent();
  22. UIStyle.SetUIStyle(this);
  23. this.uiTitel1.FatherForm = this;
  24. }
  25. private void tsbtnExit_Click(object sender, EventArgs e)
  26. {
  27. this.Close();
  28. }
  29. private void tsbtnSave_Click(object sender, EventArgs e)
  30. {
  31. try
  32. {
  33. GetParamsSave();
  34. SysMgr.Instance.CheckWebLog();
  35. MessageBox.Show("保存成功,修改硬件参数之后需重启生效!", "保存成功", MessageBoxButtons.OK, MessageBoxIcon.Information);
  36. }
  37. catch (Exception ex)
  38. {
  39. MessageBox.Show(ex.Message,"保存出错", MessageBoxButtons.OK, MessageBoxIcon.Error);
  40. }
  41. }
  42. private void SysSetFrm_Load(object sender, EventArgs e)
  43. {
  44. skinTabControl1.SelectedIndex = 0;
  45. var comNameList = SerialPort.GetPortNames().ToList();
  46. comNameList.ForEach(comName =>
  47. {
  48. this.cobLightPortNum.Items.Add(comName);
  49. this.coLensPortNum.Items.Add(comName);
  50. this.coTensorPortNum.Items.Add(comName);
  51. });
  52. RefeshParams();
  53. }
  54. #region 界面刷新&保存
  55. private void RefeshParams()
  56. {
  57. ckSkipSizeFailed.Checked = ConfMgr.Instance.SysConfigParams.OpenMarkErrorStop;
  58. chkBuzzer.Checked = ConfMgr.Instance.SysConfigParams.OpenBuzzer;
  59. chkDoorSensor.Checked = ConfMgr.Instance.SysConfigParams.OpenDoor;
  60. chkHttpLog.Checked = ConfMgr.Instance.SysConfigParams.OpenHttpLog;
  61. cbOpenAutoAxisGoHome.Checked = ConfMgr.Instance.SysConfigParams.OpenAutoGoHome;
  62. cbOpenFlawDistribution.Checked = ConfMgr.Instance.SysConfigParams.OpenFlawDistribution;
  63. cbOpenAxisXCal.Checked = ConfMgr.Instance.SysConfigParams.OpenAxisXCalibration;
  64. cobLightPortNum.Text = ConfMgr.Instance.SysConfigParams.LightCom;
  65. numCamBaud.Value = ConfMgr.Instance.SysConfigParams.LightComBaud;
  66. coTensorPortNum.Text = ConfMgr.Instance.SysConfigParams.TensionCom;
  67. numTensorBaud.Value = ConfMgr.Instance.SysConfigParams.TensionComBaud;
  68. numOffset.Value = (decimal)ConfMgr.Instance.SysConfigParams.Tension_Offset;
  69. coLensPortNum.Text = ConfMgr.Instance.SysConfigParams.LensMotorCom;
  70. numLensBaud.Value = ConfMgr.Instance.SysConfigParams.LensMotorComBaud;
  71. tbThicknessIP.Text = ConfMgr.Instance.SysConfigParams.ThicknessIP;
  72. numThicknessPort.Value = ConfMgr.Instance.SysConfigParams.ThicknessPort;
  73. tbIODevNum.Text = ConfMgr.Instance.SysConfigParams.IODevName;
  74. tbIOCfgPath.Text = ConfMgr.Instance.SysConfigParams.IOCfgPath;
  75. tbMotionCfgPath.Text = ConfMgr.Instance.SysConfigParams.MotionCfgPath;
  76. tbCamCfgPath.Text = ConfMgr.Instance.SysConfigParams.FrontCamCfgPath;
  77. tbCamSN.Text = ConfMgr.Instance.SysConfigParams.FrontCamName;
  78. tbCamCfgPath2.Text = ConfMgr.Instance.SysConfigParams.BackCamCfgPath;
  79. tbCamSN2.Text = ConfMgr.Instance.SysConfigParams.BackCamName;
  80. chkSaveAllDefectImg.Checked = ConfMgr.Instance.SysConfigParams.SaveAllImg;
  81. tbDefectPath.Text = ConfMgr.Instance.SysConfigParams.DefectBigImag.SavePath;
  82. chkDefect_Path_AutoClear.Checked = ConfMgr.Instance.SysConfigParams.DefectBigImag.AutoDelete;
  83. numDefect_Path_AutoClear.Value = (decimal)ConfMgr.Instance.SysConfigParams.DefectBigImag.AutoDeleteDays;
  84. tbDefectSmallPath.Text = ConfMgr.Instance.SysConfigParams.DefectSmallImag.SavePath;
  85. chkDefect_Small_Path_AutoClear.Checked = ConfMgr.Instance.SysConfigParams.DefectSmallImag.AutoDelete;
  86. numDefect_Small_Path_AutoClear.Value = (decimal)ConfMgr.Instance.SysConfigParams.DefectSmallImag.AutoDeleteDays;
  87. tbDefectCompressSavePath.Text = ConfMgr.Instance.SysConfigParams.DefectRepairImag.SavePath;
  88. chkDefect_Compress_SavePath_AutoClear.Checked = ConfMgr.Instance.SysConfigParams.DefectRepairImag.AutoDelete;
  89. numDefect_Compress_SavePath_AutoClear.Value = (decimal)ConfMgr.Instance.SysConfigParams.DefectRepairImag.AutoDeleteDays;
  90. tbSizeBmpSavePath.Text = ConfMgr.Instance.SysConfigParams.SizeBigImag.SavePath;
  91. chkSizeBmp_SavePath_AutoClear.Checked = ConfMgr.Instance.SysConfigParams.SizeBigImag.AutoDelete;
  92. numSizeBmp_SavePath_AutoClear.Value = (decimal)ConfMgr.Instance.SysConfigParams.SizeBigImag.AutoDeleteDays;
  93. tbSizeBmpCompareSavePath.Text = ConfMgr.Instance.SysConfigParams.SizeNGImag.SavePath;
  94. chkSizeBmp_Compare_SavePath_AutoClear.Checked = ConfMgr.Instance.SysConfigParams.SizeNGImag.AutoDelete;
  95. numSizeBmp_Compare_SavePath_AutoClear.Value = (decimal)ConfMgr.Instance.SysConfigParams.SizeNGImag.AutoDeleteDays;
  96. tbSizeBmpZoomImageSavePath.Text = ConfMgr.Instance.SysConfigParams.SizeRepairImag.SavePath;
  97. chkSizeBmp_Zoom_Image_SavePath_AutoClear.Checked = ConfMgr.Instance.SysConfigParams.SizeRepairImag.AutoDelete;
  98. numSizeBmp_Zoom_Image_SavePath_AutoClear.Value = (decimal)ConfMgr.Instance.SysConfigParams.SizeRepairImag.AutoDeleteDays;
  99. chkSkipAxis0.Checked = ConfMgr.Instance.SysConfigParams.DisableX1;
  100. chkSkipAxis1.Checked = ConfMgr.Instance.SysConfigParams.DisableX2;
  101. chkSkipAxis2.Checked = ConfMgr.Instance.SysConfigParams.DisableY;
  102. chkSkipAxis3.Checked = ConfMgr.Instance.SysConfigParams.DisableZ;
  103. chkSkipLight.Checked = ConfMgr.Instance.SysConfigParams.DisableLight;
  104. chkSkipTensor.Checked = ConfMgr.Instance.SysConfigParams.DisableTensor;
  105. chkSkipHeight.Checked = ConfMgr.Instance.SysConfigParams.DisableThickness;
  106. chkSkipLens.Checked = ConfMgr.Instance.SysConfigParams.DisableLensMotor;
  107. chkSkipScannerCC.Checked = ConfMgr.Instance.SysConfigParams.DisableFrontCam;
  108. chkSkipScannerGL.Checked = ConfMgr.Instance.SysConfigParams.DisableBackCam;
  109. tbSizeEnginePath.Text = ConfMgr.Instance.SysConfigParams.ImageProcessPath;
  110. tbModelPath.Text = ConfMgr.Instance.SysConfigParams.AIModelPath;
  111. tbLocalIp.Text = ConfMgr.Instance.SysConfigParams.HttpServerIP;
  112. numHttpPort.Value = ConfMgr.Instance.SysConfigParams.HttpServerPort;
  113. tbLogPath.Text = ConfMgr.Instance.SysConfigParams.LogPath;
  114. ckbAutoClear.Checked = ConfMgr.Instance.SysConfigParams.AutoDeleteLog;
  115. numLogDays.Value = (decimal)ConfMgr.Instance.SysConfigParams.AutoDeleteLogData;
  116. cbResetBtn.Checked = ConfMgr.Instance.SysConfigParams.ShowResetBtn;
  117. cbBuzzShow.Checked = ConfMgr.Instance.SysConfigParams.ShowBuzz;
  118. cbDoorAlm.Checked = ConfMgr.Instance.SysConfigParams.ShowDoorAlm;
  119. numViewX.Value = (decimal)ConfMgr.Instance.SysConfigParams.DefectCamViewX;
  120. numViewY.Value = (decimal)ConfMgr.Instance.SysConfigParams.DefectCamViewY;
  121. cbEnableHttp.Checked = ConfMgr.Instance.SysConfigParams.EnableHttp;
  122. tbHttpUrl.Text = ConfMgr.Instance.SysConfigParams.HttpUrl;
  123. tbTempPath.Text = ConfMgr.Instance.SysConfigParams.HttpTempPath;
  124. tbKey.Text = ConfMgr.Instance.SysConfigParams.HttpReturnKey;
  125. tbValue.Text = ConfMgr.Instance.SysConfigParams.HttpReturnValue;
  126. numAxisZ1.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_0_58X;
  127. //numAxisZ2.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_0_6X;
  128. numAxisZ3.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_1_0X;
  129. numAxisZ4.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_1_5X;
  130. numAxisZ5.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_2_0X;
  131. numAxisZ6.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_2_5X;
  132. numAxisZ7.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_3_0X;
  133. numAxisZ8.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_3_5X;
  134. numAxisZ9.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_4_0X;
  135. numAxisZ10.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_4_5X;
  136. numAxisZ11.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_5_0X;
  137. numAxisZ12.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_5_5X;
  138. numAxisZ13.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_6_0X;
  139. numAxisZ14.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_6_5X;
  140. numAxisZ15.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_7_0X;
  141. numAxisZ16.Value = (decimal)ConfMgr.Instance.SysConfigParams.LensAxisZPos.Z_7_5X;
  142. }
  143. private void GetParamsSave()
  144. {
  145. SysConfigParams configParams = new SysConfigParams();
  146. configParams.OpenMarkErrorStop = ckSkipSizeFailed.Checked;
  147. configParams.OpenBuzzer = chkBuzzer.Checked;
  148. configParams.OpenDoor = chkDoorSensor.Checked;
  149. configParams.OpenHttpLog = chkHttpLog.Checked;
  150. configParams.OpenAutoGoHome = cbOpenAutoAxisGoHome.Checked;
  151. configParams.OpenFlawDistribution = cbOpenFlawDistribution.Checked;
  152. configParams.OpenAxisXCalibration = cbOpenAxisXCal.Checked;
  153. configParams.LightCom = cobLightPortNum.Text;
  154. configParams.LightComBaud = (int)numCamBaud.Value;
  155. configParams.TensionCom = coTensorPortNum.Text;
  156. configParams.TensionComBaud = (int)numTensorBaud.Value;
  157. configParams.Tension_Offset = (double)numOffset.Value;
  158. configParams.LensMotorCom = coLensPortNum.Text;
  159. configParams.LensMotorComBaud = (int)numLensBaud.Value;
  160. configParams.ThicknessIP = tbThicknessIP.Text;
  161. configParams.ThicknessPort = (int)numThicknessPort.Value;
  162. configParams.IODevName = tbIODevNum.Text;
  163. configParams.IOCfgPath = tbIOCfgPath.Text;
  164. configParams.MotionCfgPath = tbMotionCfgPath.Text;
  165. configParams.FrontCamName = tbCamSN.Text;
  166. configParams.FrontCamCfgPath = tbCamCfgPath.Text;
  167. configParams.BackCamName = tbCamSN2.Text;
  168. configParams.BackCamCfgPath = tbCamCfgPath2.Text;
  169. configParams.SaveAllImg = chkSaveAllDefectImg.Checked;
  170. configParams.DefectBigImag.SavePath = tbDefectPath.Text;
  171. configParams.DefectBigImag.AutoDelete = chkDefect_Path_AutoClear.Checked;
  172. configParams.DefectBigImag.AutoDeleteDays = (double)numDefect_Path_AutoClear.Value;
  173. configParams.DefectSmallImag.SavePath = tbDefectSmallPath.Text;
  174. configParams.DefectSmallImag.AutoDelete = chkDefect_Small_Path_AutoClear.Checked;
  175. configParams.DefectSmallImag.AutoDeleteDays = (double)numDefect_Small_Path_AutoClear.Value;
  176. configParams.DefectRepairImag.SavePath = tbDefectCompressSavePath.Text;
  177. configParams.DefectRepairImag.AutoDelete = chkDefect_Compress_SavePath_AutoClear.Checked;
  178. configParams.DefectRepairImag.AutoDeleteDays = (double)numDefect_Compress_SavePath_AutoClear.Value;
  179. configParams.SizeBigImag.SavePath = tbSizeBmpSavePath.Text;
  180. configParams.SizeBigImag.AutoDelete = chkSizeBmp_SavePath_AutoClear.Checked;
  181. configParams.SizeBigImag.AutoDeleteDays = (double)numSizeBmp_SavePath_AutoClear.Value;
  182. configParams.SizeNGImag.SavePath = tbSizeBmpCompareSavePath.Text;
  183. configParams.SizeNGImag.AutoDelete = chkSizeBmp_Compare_SavePath_AutoClear.Checked;
  184. configParams.SizeNGImag.AutoDeleteDays = (double)numSizeBmp_Compare_SavePath_AutoClear.Value;
  185. configParams.SizeRepairImag.SavePath = tbSizeBmpZoomImageSavePath.Text;
  186. configParams.SizeRepairImag.AutoDelete = chkSizeBmp_Zoom_Image_SavePath_AutoClear.Checked;
  187. configParams.SizeRepairImag.AutoDeleteDays = (double)numSizeBmp_Zoom_Image_SavePath_AutoClear.Value;
  188. configParams.DisableX1 = chkSkipAxis0.Checked;
  189. configParams.DisableX2 = chkSkipAxis1.Checked;
  190. configParams.DisableY = chkSkipAxis2.Checked;
  191. configParams.DisableZ = chkSkipAxis3.Checked;
  192. configParams.DisableLight = chkSkipLight.Checked;
  193. configParams.DisableTensor = chkSkipTensor.Checked;
  194. configParams.DisableThickness = chkSkipHeight.Checked;
  195. configParams.DisableLensMotor = chkSkipLens.Checked;
  196. configParams.DisableFrontCam = chkSkipScannerCC.Checked;
  197. configParams.DisableBackCam = chkSkipScannerGL.Checked;
  198. configParams.ImageProcessPath = tbSizeEnginePath.Text;
  199. configParams.AIModelPath = tbModelPath.Text;
  200. configParams.HttpServerIP = tbLocalIp.Text;
  201. configParams.HttpServerPort = (int)numHttpPort.Value;
  202. configParams.LogPath = tbLogPath.Text;
  203. configParams.AutoDeleteLog = ckbAutoClear.Checked;
  204. configParams.AutoDeleteLogData = (double)numLogDays.Value;
  205. configParams.ShowResetBtn = cbResetBtn.Checked;
  206. configParams.ShowBuzz = cbBuzzShow.Checked;
  207. configParams.ShowDoorAlm = cbDoorAlm.Checked;
  208. configParams.DefectCamViewX = (double)numViewX.Value;
  209. configParams.DefectCamViewY = (double)numViewY.Value;
  210. configParams.EnableHttp = cbEnableHttp.Checked;
  211. configParams.HttpUrl = tbHttpUrl.Text;
  212. configParams.HttpTempPath = tbTempPath.Text;
  213. configParams.HttpReturnKey = tbKey.Text;
  214. configParams.HttpReturnValue = tbValue.Text;
  215. configParams.LensAxisZPos.Z_0_58X = (double)numAxisZ1.Value;
  216. //configParams.LensAxisZPos.Z_0_6X = (double)numAxisZ2.Value;
  217. configParams.LensAxisZPos.Z_1_0X = (double)numAxisZ3.Value;
  218. configParams.LensAxisZPos.Z_1_5X = (double)numAxisZ4.Value;
  219. configParams.LensAxisZPos.Z_2_0X = (double)numAxisZ5.Value;
  220. configParams.LensAxisZPos.Z_2_5X = (double)numAxisZ6.Value;
  221. configParams.LensAxisZPos.Z_3_0X = (double)numAxisZ7.Value;
  222. configParams.LensAxisZPos.Z_3_5X = (double)numAxisZ8.Value;
  223. configParams.LensAxisZPos.Z_4_0X = (double)numAxisZ9.Value;
  224. configParams.LensAxisZPos.Z_4_5X = (double)numAxisZ10.Value;
  225. configParams.LensAxisZPos.Z_5_0X = (double)numAxisZ11.Value;
  226. configParams.LensAxisZPos.Z_5_5X = (double)numAxisZ12.Value;
  227. configParams.LensAxisZPos.Z_6_0X = (double)numAxisZ13.Value;
  228. configParams.LensAxisZPos.Z_6_5X = (double)numAxisZ14.Value;
  229. configParams.LensAxisZPos.Z_7_0X = (double)numAxisZ15.Value;
  230. configParams.LensAxisZPos.Z_7_5X = (double)numAxisZ16.Value;
  231. ConfMgr.Instance.WriteSysConfParams(configParams);
  232. }
  233. #endregion
  234. private void tbPath_Click(object sender, EventArgs e)
  235. {
  236. TextBox tb = (TextBox)sender;
  237. string path = ConfMgr.SelectFolder(Application.StartupPath);
  238. if (!string.IsNullOrWhiteSpace(path))
  239. {
  240. if(tb.Name == tbIOCfgPath.Name)
  241. this.tbIOCfgPath.Text = path;
  242. else if (tb.Name == tbCamCfgPath.Name)
  243. this.tbCamCfgPath.Text = path;
  244. else if (tb.Name == tbMotionCfgPath.Name)
  245. this.tbMotionCfgPath.Text = path;
  246. else if (tb.Name == tbSizeEnginePath.Name)
  247. this.tbSizeEnginePath.Text = path;
  248. else if (tb.Name == tbModelPath.Name)
  249. this.tbModelPath.Text = path;
  250. else if (tb.Name == tbLogPath.Name)
  251. this.tbLogPath.Text = path;
  252. else if (tb.Name == tbDefectCompressSavePath.Name)
  253. this.tbDefectCompressSavePath.Text = path;
  254. else if (tb.Name == tbDefectPath.Name)
  255. this.tbDefectPath.Text = path;
  256. else if (tb.Name == tbDefectSmallPath.Name)
  257. this.tbDefectSmallPath.Text = path;
  258. else if (tb.Name == tbSizeBmpCompareSavePath.Name)
  259. this.tbSizeBmpCompareSavePath.Text = path;
  260. else if (tb.Name == tbSizeBmpSavePath.Name)
  261. this.tbSizeBmpSavePath.Text = path;
  262. else if (tb.Name == tbSizeBmpZoomImageSavePath.Name)
  263. this.tbSizeBmpZoomImageSavePath.Text = path;
  264. }
  265. }
  266. private void btnClearPathClick(object sender, EventArgs e)
  267. {
  268. PictureBox pb = (PictureBox)sender;
  269. string path = "";
  270. if (pb.Name == btnClearDefect_Compress_SavePath.Name)
  271. this.tbDefectCompressSavePath.Text = path;
  272. else if (pb.Name == btnClearDefect_Path.Name)
  273. this.tbDefectPath.Text = path;
  274. else if (pb.Name == btnClearDefect_Small_Path.Name)
  275. this.tbDefectSmallPath.Text = path;
  276. else if (pb.Name == btnClearSizeBmp_Compare_SavePath.Name)
  277. this.tbSizeBmpCompareSavePath.Text = path;
  278. else if (pb.Name == btnClearSizeBmp_Path.Name)
  279. this.tbSizeBmpSavePath.Text = path;
  280. else if (pb.Name == btnSizeBmp_Zoom_Image_SavePath.Name)
  281. this.tbSizeBmpZoomImageSavePath.Text = path;
  282. }
  283. private void tsbtnDatSave_Click(object sender, EventArgs e)
  284. {
  285. try
  286. {
  287. string lsPath = ConfMgr.SelectFolder();
  288. if (string.IsNullOrWhiteSpace(lsPath))
  289. return;
  290. //lsPath += "\\DB" + DateTime.Now.ToString("yyyyMMddHHmm") + ".bak";
  291. lsPath += "\\backup_" + DateTime.Now.ToString("yyyyMMddHHmm") + ".sql";
  292. Service.InitDB.BackupDataBase(lsPath);
  293. MessageBox.Show("备份成功!", "成功", MessageBoxButtons.OK, MessageBoxIcon.Information);
  294. }
  295. catch (Exception ex)
  296. {
  297. MessageBox.Show(ex.Message, "失败", MessageBoxButtons.OK, MessageBoxIcon.Error);
  298. }
  299. }
  300. private void tsbtnDatImport_Click(object sender, EventArgs e)
  301. {
  302. try
  303. {
  304. string dbPath = ConfMgr.SelectFile();
  305. if (string.IsNullOrWhiteSpace(dbPath))
  306. return;
  307. if (MessageBox.Show($"是否导入{dbPath}?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
  308. {
  309. bool rel = Service.InitDB.RestoreDB(dbPath);
  310. if (rel)
  311. {
  312. MessageBox.Show("导入成功!", "成功", MessageBoxButtons.OK, MessageBoxIcon.Information);
  313. }
  314. else
  315. MessageBox.Show("导入失败!", "失败", MessageBoxButtons.OK, MessageBoxIcon.Error);
  316. }
  317. }
  318. catch (Exception ex)
  319. {
  320. MessageBox.Show(ex.Message, "失败", MessageBoxButtons.OK, MessageBoxIcon.Error);
  321. }
  322. }
  323. private void tbPathFile_Click(object sender, EventArgs e)
  324. {
  325. TextBox tb = (TextBox)sender;
  326. string path = ConfMgr.SelectFile("所有文件|*.*", Application.StartupPath);
  327. if (!string.IsNullOrWhiteSpace(path))
  328. {
  329. if (tb.Name == tbIOCfgPath.Name)
  330. this.tbIOCfgPath.Text = path;
  331. else if (tb.Name == tbCamCfgPath.Name)
  332. this.tbCamCfgPath.Text = path;
  333. else if (tb.Name == tbMotionCfgPath.Name)
  334. this.tbMotionCfgPath.Text = path;
  335. else if (tb.Name == tbCamCfgPath2.Name)
  336. this.tbCamCfgPath2.Text = path;
  337. }
  338. }
  339. }
  340. }