1. #pragma once
  2.  
  3. #include "Code.h"
  4.  
  5. namespace ServiceTool_v4 {
  6.  
  7. using namespace System;
  8. using namespace System::ComponentModel;
  9. using namespace System::Collections;
  10. using namespace System::Windows::Forms;
  11. using namespace System::Data;
  12. using namespace System::Drawing;
  13.  
  14. /// <summary>
  15. /// Zusammenfassung für MainWindow
  16. ///
  17. /// Warnung: Wenn Sie den Namen dieser Klasse ändern, müssen Sie auch
  18. /// die Ressourcendateiname-Eigenschaft für das Tool zur Kompilierung verwalteter Ressourcen ändern,
  19. /// das allen RESX-Dateien zugewiesen ist, von denen diese Klasse abhängt.
  20. /// Anderenfalls können die Designer nicht korrekt mit den lokalisierten Ressourcen
  21. /// arbeiten, die diesem Formular zugewiesen sind.
  22. /// </summary>
  23. public ref class MainWindow : public System::Windows::Forms::Form
  24. {
  25. public:
  26. MainWindow(void)
  27. {
  28. InitializeComponent();
  29. //
  30. //TODO: Konstruktorcode hier hinzufügen.
  31. //
  32. this->TBComboCOM->SelectedIndex = 0; // default COM-Port
  33.  
  34.  
  35. // TODO: das folgende nur zum testen und wieder löschen:
  36. TreeNode^ P1 = this->treeView1->Nodes->Add("Parent 1");
  37. TreeNode^ P2 = this->treeView1->Nodes->Add("Parent 2");
  38. TreeNode^ C11 = P1->Nodes->Add("Child 1 von Parent 1");
  39. TreeNode^ C12 = P1->Nodes->Add("Child 2 von Parent 1");
  40. TreeNode^ C13 = P1->Nodes->Add("Child 3 von Parent 1");
  41. P2->Nodes->Add("Child 1 von Parent 2");
  42. this->MainSplit->Visible = true;
  43. // das drübere wieder löschen
  44. }
  45.  
  46. protected:
  47. /// <summary>
  48. /// Verwendete Ressourcen bereinigen.
  49. /// </summary>
  50. ~MainWindow()
  51. {
  52. if (components)
  53. {
  54. delete components;
  55. }
  56. }
  57. private: System::Windows::Forms::MenuStrip^ MainMenuBar;
  58. private: System::Windows::Forms::ToolStripMenuItem^ fileToolStripMenuItem;
  59. private: System::Windows::Forms::ToolStripMenuItem^ openToolStripMenuItem;
  60. private: System::Windows::Forms::ToolStripSeparator^ toolStripMenuItem1;
  61. private: System::Windows::Forms::ToolStripMenuItem^ quitToolStripMenuItem;
  62. private: System::Windows::Forms::ToolStripMenuItem^ helpToolStripMenuItem;
  63. private: System::Windows::Forms::ToolStrip^ MainToolbar;
  64. private: System::Windows::Forms::ToolStripButton^ TBParamRead;
  65. private: System::Windows::Forms::ToolStripButton^ TBParamWrite;
  66. private: System::Windows::Forms::ToolStripButton^ TBSaveData;
  67. private: System::Windows::Forms::ToolStripButton^ TBConnect;
  68. private: System::Windows::Forms::StatusStrip^ MainStatusbar;
  69. private: System::Windows::Forms::ToolStripStatusLabel^ toolStripStatusLabel1;
  70. private: System::Windows::Forms::ToolStripProgressBar^ toolStripProgressBar1;
  71. private: System::Windows::Forms::SplitContainer^ MainSplit;
  72. private: System::Windows::Forms::TreeView^ treeView1;
  73. private: System::Windows::Forms::Label^ labelMainConnectLPM;
  74. private: System::Windows::Forms::ImageList^ Mixed_Icons;
  75. private: System::Windows::Forms::ImageList^ Toolbar_Icons_24;
  76. private: System::Windows::Forms::ToolStripLabel^ TBLabelCOM;
  77. private: System::Windows::Forms::ToolStripComboBox^ TBComboCOM;
  78. private: System::Windows::Forms::ToolStripButton^ TBUpdateProgram;
  79. private: System::Windows::Forms::ToolStripButton^ TBUpdateLPM;
  80. private: System::Windows::Forms::ToolStripMenuItem^ updateLPMSoftwareToolStripMenuItem;
  81. private: System::Windows::Forms::ToolStripMenuItem^ paramaterToolStripMenuItem;
  82. private: System::Windows::Forms::ToolStripMenuItem^ readParamtersToolStripMenuItem;
  83. private: System::Windows::Forms::ToolStripMenuItem^ writeParametersToolStripMenuItem;
  84. private: System::Windows::Forms::ToolStripMenuItem^ lPMServiceToolManualToolStripMenuItem;
  85. private: System::Windows::Forms::ToolStripMenuItem^ updateLPMServiceToolToolStripMenuItem;
  86. private: System::Windows::Forms::ToolStripSeparator^ toolStripMenuItem2;
  87. private: System::Windows::Forms::ToolStripMenuItem^ aboutToolStripMenuItem;
  88. private: System::ComponentModel::IContainer^ components;
  89. private:
  90. /// <summary>
  91. /// Erforderliche Designervariable.
  92. /// </summary>
  93.  
  94.  
  95. #pragma region Windows Form Designer generated code
  96. /// <summary>
  97. /// Erforderliche Methode für die Designerunterstützung.
  98. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
  99. /// </summary>
  100. void InitializeComponent(void)
  101. {
  102. this->components = (gcnew System::ComponentModel::Container());
  103. System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(MainWindow::typeid));
  104. this->MainMenuBar = (gcnew System::Windows::Forms::MenuStrip());
  105. this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  106. this->openToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  107. this->updateLPMSoftwareToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  108. this->toolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripSeparator());
  109. this->quitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  110. this->paramaterToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  111. this->readParamtersToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  112. this->writeParametersToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  113. this->helpToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  114. this->lPMServiceToolManualToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  115. this->updateLPMServiceToolToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  116. this->toolStripMenuItem2 = (gcnew System::Windows::Forms::ToolStripSeparator());
  117. this->aboutToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  118. this->MainToolbar = (gcnew System::Windows::Forms::ToolStrip());
  119. this->TBParamRead = (gcnew System::Windows::Forms::ToolStripButton());
  120. this->TBParamWrite = (gcnew System::Windows::Forms::ToolStripButton());
  121. this->TBSaveData = (gcnew System::Windows::Forms::ToolStripButton());
  122. this->TBUpdateLPM = (gcnew System::Windows::Forms::ToolStripButton());
  123. this->TBConnect = (gcnew System::Windows::Forms::ToolStripButton());
  124. this->TBLabelCOM = (gcnew System::Windows::Forms::ToolStripLabel());
  125. this->TBComboCOM = (gcnew System::Windows::Forms::ToolStripComboBox());
  126. this->TBUpdateProgram = (gcnew System::Windows::Forms::ToolStripButton());
  127. this->MainStatusbar = (gcnew System::Windows::Forms::StatusStrip());
  128. this->toolStripStatusLabel1 = (gcnew System::Windows::Forms::ToolStripStatusLabel());
  129. this->toolStripProgressBar1 = (gcnew System::Windows::Forms::ToolStripProgressBar());
  130. this->MainSplit = (gcnew System::Windows::Forms::SplitContainer());
  131. this->treeView1 = (gcnew System::Windows::Forms::TreeView());
  132. this->labelMainConnectLPM = (gcnew System::Windows::Forms::Label());
  133. this->Mixed_Icons = (gcnew System::Windows::Forms::ImageList(this->components));
  134. this->Toolbar_Icons_24 = (gcnew System::Windows::Forms::ImageList(this->components));
  135. this->MainMenuBar->SuspendLayout();
  136. this->MainToolbar->SuspendLayout();
  137. this->MainStatusbar->SuspendLayout();
  138. this->MainSplit->Panel1->SuspendLayout();
  139. this->MainSplit->SuspendLayout();
  140. this->SuspendLayout();
  141. //
  142. // MainMenuBar
  143. //
  144. this->MainMenuBar->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(3) {this->fileToolStripMenuItem,
  145. this->paramaterToolStripMenuItem, this->helpToolStripMenuItem});
  146. this->MainMenuBar->Location = System::Drawing::Point(0, 0);
  147. this->MainMenuBar->Name = L"MainMenuBar";
  148. this->MainMenuBar->Size = System::Drawing::Size(624, 24);
  149. this->MainMenuBar->TabIndex = 2;
  150. this->MainMenuBar->Text = L"MainMenuBar";
  151. //
  152. // fileToolStripMenuItem
  153. //
  154. this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->openToolStripMenuItem,
  155. this->updateLPMSoftwareToolStripMenuItem, this->toolStripMenuItem1, this->quitToolStripMenuItem});
  156. this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
  157. this->fileToolStripMenuItem->Size = System::Drawing::Size(37, 20);
  158. this->fileToolStripMenuItem->Text = L"&File";
  159. //
  160. // openToolStripMenuItem
  161. //
  162. this->openToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"openToolStripMenuItem.Image")));
  163. this->openToolStripMenuItem->Name = L"openToolStripMenuItem";
  164. this->openToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S));
  165. this->openToolStripMenuItem->Size = System::Drawing::Size(241, 22);
  166. this->openToolStripMenuItem->Text = L"&Save Data Samples...";
  167. //
  168. // updateLPMSoftwareToolStripMenuItem
  169. //
  170. this->updateLPMSoftwareToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"updateLPMSoftwareToolStripMenuItem.Image")));
  171. this->updateLPMSoftwareToolStripMenuItem->Name = L"updateLPMSoftwareToolStripMenuItem";
  172. this->updateLPMSoftwareToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::U));
  173. this->updateLPMSoftwareToolStripMenuItem->Size = System::Drawing::Size(241, 22);
  174. this->updateLPMSoftwareToolStripMenuItem->Text = L"&Update LPM Software...";
  175. //
  176. // toolStripMenuItem1
  177. //
  178. this->toolStripMenuItem1->Name = L"toolStripMenuItem1";
  179. this->toolStripMenuItem1->Size = System::Drawing::Size(238, 6);
  180. //
  181. // quitToolStripMenuItem
  182. //
  183. this->quitToolStripMenuItem->Name = L"quitToolStripMenuItem";
  184. this->quitToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::Q));
  185. this->quitToolStripMenuItem->Size = System::Drawing::Size(241, 22);
  186. this->quitToolStripMenuItem->Text = L"&Quit";
  187. this->quitToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainWindow::quitToolStripMenuItem_Click);
  188. //
  189. // paramaterToolStripMenuItem
  190. //
  191. this->paramaterToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->readParamtersToolStripMenuItem,
  192. this->writeParametersToolStripMenuItem});
  193. this->paramaterToolStripMenuItem->Name = L"paramaterToolStripMenuItem";
  194. this->paramaterToolStripMenuItem->Size = System::Drawing::Size(73, 20);
  195. this->paramaterToolStripMenuItem->Text = L"&Parameter";
  196. //
  197. // readParamtersToolStripMenuItem
  198. //
  199. this->readParamtersToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"readParamtersToolStripMenuItem.Image")));
  200. this->readParamtersToolStripMenuItem->Name = L"readParamtersToolStripMenuItem";
  201. this->readParamtersToolStripMenuItem->Size = System::Drawing::Size(164, 22);
  202. this->readParamtersToolStripMenuItem->Text = L"&Read Paramters";
  203. //
  204. // writeParametersToolStripMenuItem
  205. //
  206. this->writeParametersToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"writeParametersToolStripMenuItem.Image")));
  207. this->writeParametersToolStripMenuItem->Name = L"writeParametersToolStripMenuItem";
  208. this->writeParametersToolStripMenuItem->Size = System::Drawing::Size(164, 22);
  209. this->writeParametersToolStripMenuItem->Text = L"&Write Parameters";
  210. //
  211. // helpToolStripMenuItem
  212. //
  213. this->helpToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->lPMServiceToolManualToolStripMenuItem,
  214. this->updateLPMServiceToolToolStripMenuItem, this->toolStripMenuItem2, this->aboutToolStripMenuItem});
  215. this->helpToolStripMenuItem->Name = L"helpToolStripMenuItem";
  216. this->helpToolStripMenuItem->Size = System::Drawing::Size(44, 20);
  217. this->helpToolStripMenuItem->Text = L"&Help";
  218. //
  219. // lPMServiceToolManualToolStripMenuItem
  220. //
  221. this->lPMServiceToolManualToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"lPMServiceToolManualToolStripMenuItem.Image")));
  222. this->lPMServiceToolManualToolStripMenuItem->Name = L"lPMServiceToolManualToolStripMenuItem";
  223. this->lPMServiceToolManualToolStripMenuItem->Size = System::Drawing::Size(208, 22);
  224. this->lPMServiceToolManualToolStripMenuItem->Text = L"LPM Service Tool &Manual";
  225. //
  226. // updateLPMServiceToolToolStripMenuItem
  227. //
  228. this->updateLPMServiceToolToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"updateLPMServiceToolToolStripMenuItem.Image")));
  229. this->updateLPMServiceToolToolStripMenuItem->Name = L"updateLPMServiceToolToolStripMenuItem";
  230. this->updateLPMServiceToolToolStripMenuItem->Size = System::Drawing::Size(208, 22);
  231. this->updateLPMServiceToolToolStripMenuItem->Text = L"&Update LPM Service Tool";
  232. //
  233. // toolStripMenuItem2
  234. //
  235. this->toolStripMenuItem2->Name = L"toolStripMenuItem2";
  236. this->toolStripMenuItem2->Size = System::Drawing::Size(205, 6);
  237. //
  238. // aboutToolStripMenuItem
  239. //
  240. this->aboutToolStripMenuItem->Name = L"aboutToolStripMenuItem";
  241. this->aboutToolStripMenuItem->Size = System::Drawing::Size(208, 22);
  242. this->aboutToolStripMenuItem->Text = L"&About LPM Service Tool";
  243. //
  244. // MainToolbar
  245. //
  246. this->MainToolbar->GripStyle = System::Windows::Forms::ToolStripGripStyle::Hidden;
  247. this->MainToolbar->ImageScalingSize = System::Drawing::Size(24, 24);
  248. this->MainToolbar->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(8) {this->TBParamRead, this->TBParamWrite,
  249. this->TBSaveData, this->TBUpdateLPM, this->TBConnect, this->TBLabelCOM, this->TBComboCOM, this->TBUpdateProgram});
  250. this->MainToolbar->Location = System::Drawing::Point(0, 24);
  251. this->MainToolbar->Name = L"MainToolbar";
  252. this->MainToolbar->Size = System::Drawing::Size(624, 31);
  253. this->MainToolbar->TabIndex = 0;
  254. this->MainToolbar->TabStop = true;
  255. this->MainToolbar->Text = L"MainToolbar";
  256. //
  257. // TBParamRead
  258. //
  259. this->TBParamRead->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
  260. this->TBParamRead->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBParamRead.Image")));
  261. this->TBParamRead->ImageTransparentColor = System::Drawing::Color::Magenta;
  262. this->TBParamRead->Name = L"TBParamRead";
  263. this->TBParamRead->Size = System::Drawing::Size(28, 28);
  264. this->TBParamRead->Text = L"TBParamRead";
  265. this->TBParamRead->ToolTipText = L"Read Parameters";
  266. //
  267. // TBParamWrite
  268. //
  269. this->TBParamWrite->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
  270. this->TBParamWrite->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBParamWrite.Image")));
  271. this->TBParamWrite->ImageTransparentColor = System::Drawing::Color::Magenta;
  272. this->TBParamWrite->Name = L"TBParamWrite";
  273. this->TBParamWrite->Size = System::Drawing::Size(28, 28);
  274. this->TBParamWrite->Text = L"TBParamWrite";
  275. this->TBParamWrite->ToolTipText = L"Write Parameters";
  276. //
  277. // TBSaveData
  278. //
  279. this->TBSaveData->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
  280. this->TBSaveData->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBSaveData.Image")));
  281. this->TBSaveData->ImageTransparentColor = System::Drawing::Color::Magenta;
  282. this->TBSaveData->Name = L"TBSaveData";
  283. this->TBSaveData->Size = System::Drawing::Size(28, 28);
  284. this->TBSaveData->Text = L"TBSaveData";
  285. this->TBSaveData->ToolTipText = L"Save Data Samples";
  286. //
  287. // TBUpdateLPM
  288. //
  289. this->TBUpdateLPM->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
  290. this->TBUpdateLPM->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBUpdateLPM.Image")));
  291. this->TBUpdateLPM->ImageTransparentColor = System::Drawing::Color::Magenta;
  292. this->TBUpdateLPM->Name = L"TBUpdateLPM";
  293. this->TBUpdateLPM->Size = System::Drawing::Size(28, 28);
  294. this->TBUpdateLPM->Text = L"TBUpdateLPM";
  295. this->TBUpdateLPM->ToolTipText = L"Update LPM Software";
  296. //
  297. // TBConnect
  298. //
  299. this->TBConnect->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
  300. this->TBConnect->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBConnect.Image")));
  301. this->TBConnect->ImageTransparentColor = System::Drawing::Color::Magenta;
  302. this->TBConnect->Name = L"TBConnect";
  303. this->TBConnect->Size = System::Drawing::Size(28, 28);
  304. this->TBConnect->Text = L"TBConnect";
  305. this->TBConnect->ToolTipText = L"Conncet to LPM";
  306. this->TBConnect->Click += gcnew System::EventHandler(this, &MainWindow::TBConnect_Click);
  307. //
  308. // TBLabelCOM
  309. //
  310. this->TBLabelCOM->Name = L"TBLabelCOM";
  311. this->TBLabelCOM->Size = System::Drawing::Size(65, 28);
  312. this->TBLabelCOM->Text = L"&COM-Port:";
  313. //
  314. // TBComboCOM
  315. //
  316. this->TBComboCOM->AutoSize = false;
  317. this->TBComboCOM->IntegralHeight = false;
  318. this->TBComboCOM->Items->AddRange(gcnew cli::array< System::Object^ >(5) {L"1", L"2", L"3", L"4", L"5"});
  319. this->TBComboCOM->MaxLength = 2;
  320. this->TBComboCOM->Name = L"TBComboCOM";
  321. this->TBComboCOM->Size = System::Drawing::Size(40, 23);
  322. this->TBComboCOM->Sorted = true;
  323. this->TBComboCOM->ToolTipText = L"Select COM-Port";
  324. //
  325. // TBUpdateProgram
  326. //
  327. this->TBUpdateProgram->Alignment = System::Windows::Forms::ToolStripItemAlignment::Right;
  328. this->TBUpdateProgram->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
  329. this->TBUpdateProgram->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBUpdateProgram.Image")));
  330. this->TBUpdateProgram->ImageTransparentColor = System::Drawing::Color::Magenta;
  331. this->TBUpdateProgram->Name = L"TBUpdateProgram";
  332. this->TBUpdateProgram->Size = System::Drawing::Size(28, 28);
  333. this->TBUpdateProgram->Text = L"toolStripButton1";
  334. this->TBUpdateProgram->ToolTipText = L"Update LPM Servicetool";
  335. //
  336. // MainStatusbar
  337. //
  338. this->MainStatusbar->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->toolStripStatusLabel1,
  339. this->toolStripProgressBar1});
  340. this->MainStatusbar->Location = System::Drawing::Point(0, 422);
  341. this->MainStatusbar->Name = L"MainStatusbar";
  342. this->MainStatusbar->Size = System::Drawing::Size(624, 22);
  343. this->MainStatusbar->TabIndex = 1;
  344. this->MainStatusbar->Text = L"MainStatusbar";
  345. //
  346. // toolStripStatusLabel1
  347. //
  348. this->toolStripStatusLabel1->Name = L"toolStripStatusLabel1";
  349. this->toolStripStatusLabel1->Size = System::Drawing::Size(118, 17);
  350. this->toolStripStatusLabel1->Text = L"toolStripStatusLabel1";
  351. //
  352. // toolStripProgressBar1
  353. //
  354. this->toolStripProgressBar1->Name = L"toolStripProgressBar1";
  355. this->toolStripProgressBar1->Size = System::Drawing::Size(100, 16);
  356. //
  357. // MainSplit
  358. //
  359. this->MainSplit->Dock = System::Windows::Forms::DockStyle::Fill;
  360. this->MainSplit->Location = System::Drawing::Point(0, 55);
  361. this->MainSplit->Name = L"MainSplit";
  362. //
  363. // MainSplit.Panel1
  364. //
  365. this->MainSplit->Panel1->Controls->Add(this->treeView1);
  366. this->MainSplit->Size = System::Drawing::Size(624, 367);
  367. this->MainSplit->SplitterDistance = 207;
  368. this->MainSplit->TabIndex = 3;
  369. this->MainSplit->Visible = false;
  370. //
  371. // treeView1
  372. //
  373. this->treeView1->Dock = System::Windows::Forms::DockStyle::Fill;
  374. this->treeView1->Location = System::Drawing::Point(0, 0);
  375. this->treeView1->Name = L"treeView1";
  376. this->treeView1->Size = System::Drawing::Size(207, 367);
  377. this->treeView1->TabIndex = 0;
  378. this->treeView1->TabStop = false;
  379. //
  380. // labelMainConnectLPM
  381. //
  382. this->labelMainConnectLPM->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
  383. this->labelMainConnectLPM->ImageKey = L"warning.ico";
  384. this->labelMainConnectLPM->ImageList = this->Mixed_Icons;
  385. this->labelMainConnectLPM->Location = System::Drawing::Point(217, 280);
  386. this->labelMainConnectLPM->Name = L"labelMainConnectLPM";
  387. this->labelMainConnectLPM->Size = System::Drawing::Size(198, 49);
  388. this->labelMainConnectLPM->TabIndex = 3;
  389. this->labelMainConnectLPM->Text = L"Please connect LPM to your PC\r\nand press the \"Connect\" button";
  390. this->labelMainConnectLPM->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
  391. //
  392. // Mixed_Icons
  393. //
  394. this->Mixed_Icons->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^ >(resources->GetObject(L"Mixed_Icons.ImageStream")));
  395. this->Mixed_Icons->TransparentColor = System::Drawing::Color::Transparent;
  396. this->Mixed_Icons->Images->SetKeyName(0, L"warning.ico");
  397. //
  398. // Toolbar_Icons_24
  399. //
  400. this->Toolbar_Icons_24->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^ >(resources->GetObject(L"Toolbar_Icons_24.ImageStream")));
  401. this->Toolbar_Icons_24->TransparentColor = System::Drawing::Color::Transparent;
  402. this->Toolbar_Icons_24->Images->SetKeyName(0, L"Accept.png");
  403. this->Toolbar_Icons_24->Images->SetKeyName(1, L"Add to basket.png");
  404. this->Toolbar_Icons_24->Images->SetKeyName(2, L"Add.png");
  405. this->Toolbar_Icons_24->Images->SetKeyName(3, L"Address book.png");
  406. this->Toolbar_Icons_24->Images->SetKeyName(4, L"Alarm.png");
  407. this->Toolbar_Icons_24->Images->SetKeyName(5, L"Anchor.png");
  408. this->Toolbar_Icons_24->Images->SetKeyName(6, L"Application form.png");
  409. this->Toolbar_Icons_24->Images->SetKeyName(7, L"Bar chart.png");
  410. this->Toolbar_Icons_24->Images->SetKeyName(8, L"Basket.png");
  411. this->Toolbar_Icons_24->Images->SetKeyName(9, L"Bell.png");
  412. this->Toolbar_Icons_24->Images->SetKeyName(10, L"Best.png");
  413. this->Toolbar_Icons_24->Images->SetKeyName(11, L"Billboard.png");
  414. this->Toolbar_Icons_24->Images->SetKeyName(12, L"Bluetooth.png");
  415. this->Toolbar_Icons_24->Images->SetKeyName(13, L"Bomb.png");
  416. this->Toolbar_Icons_24->Images->SetKeyName(14, L"Book.png");
  417. this->Toolbar_Icons_24->Images->SetKeyName(15, L"Bookmark.png");
  418. this->Toolbar_Icons_24->Images->SetKeyName(16, L"Box.png");
  419. this->Toolbar_Icons_24->Images->SetKeyName(17, L"Boy.png");
  420. this->Toolbar_Icons_24->Images->SetKeyName(18, L"Brick house.png");
  421. this->Toolbar_Icons_24->Images->SetKeyName(19, L"Bricks.png");
  422. this->Toolbar_Icons_24->Images->SetKeyName(20, L"Brief case.png");
  423. this->Toolbar_Icons_24->Images->SetKeyName(21, L"Brightness.png");
  424. this->Toolbar_Icons_24->Images->SetKeyName(22, L"Bubble.png");
  425. this->Toolbar_Icons_24->Images->SetKeyName(23, L"Buddy.png");
  426. this->Toolbar_Icons_24->Images->SetKeyName(24, L"Cable.png");
  427. this->Toolbar_Icons_24->Images->SetKeyName(25, L"Calculator.png");
  428. this->Toolbar_Icons_24->Images->SetKeyName(26, L"Calendar.png");
  429. this->Toolbar_Icons_24->Images->SetKeyName(27, L"Call.png");
  430. this->Toolbar_Icons_24->Images->SetKeyName(28, L"Camera.png");
  431. this->Toolbar_Icons_24->Images->SetKeyName(29, L"Card file.png");
  432. this->Toolbar_Icons_24->Images->SetKeyName(30, L"Cash register.png");
  433. this->Toolbar_Icons_24->Images->SetKeyName(31, L"Cat.png");
  434. this->Toolbar_Icons_24->Images->SetKeyName(32, L"Certificate.png");
  435. this->Toolbar_Icons_24->Images->SetKeyName(33, L"Clien list.png");
  436. this->Toolbar_Icons_24->Images->SetKeyName(34, L"Clipboard.png");
  437. this->Toolbar_Icons_24->Images->SetKeyName(35, L"Clock.png");
  438. this->Toolbar_Icons_24->Images->SetKeyName(36, L"Closed door.png");
  439. this->Toolbar_Icons_24->Images->SetKeyName(37, L"Closed folder.png");
  440. this->Toolbar_Icons_24->Images->SetKeyName(38, L"Coin.png");
  441. this->Toolbar_Icons_24->Images->SetKeyName(39, L"Coins.png");
  442. this->Toolbar_Icons_24->Images->SetKeyName(40, L"Color wheel.png");
  443. this->Toolbar_Icons_24->Images->SetKeyName(41, L"Comment.png");
  444. this->Toolbar_Icons_24->Images->SetKeyName(42, L"Comments.png");
  445. this->Toolbar_Icons_24->Images->SetKeyName(43, L"Company.png");
  446. this->Toolbar_Icons_24->Images->SetKeyName(44, L"Computer.png");
  447. this->Toolbar_Icons_24->Images->SetKeyName(45, L"Conference.png");
  448. this->Toolbar_Icons_24->Images->SetKeyName(46, L"Connect.png");
  449. this->Toolbar_Icons_24->Images->SetKeyName(47, L"Construction.png");
  450. this->Toolbar_Icons_24->Images->SetKeyName(48, L"Contrast.png");
  451. this->Toolbar_Icons_24->Images->SetKeyName(49, L"Control panel.png");
  452. this->Toolbar_Icons_24->Images->SetKeyName(50, L"Create.png");
  453. this->Toolbar_Icons_24->Images->SetKeyName(51, L"Database.png");
  454. this->Toolbar_Icons_24->Images->SetKeyName(52, L"Date.png");
  455. this->Toolbar_Icons_24->Images->SetKeyName(53, L"Delete.png");
  456. this->Toolbar_Icons_24->Images->SetKeyName(54, L"Desktop.png");
  457. this->Toolbar_Icons_24->Images->SetKeyName(55, L"Diagram.png");
  458. this->Toolbar_Icons_24->Images->SetKeyName(56, L"Dice.png");
  459. this->Toolbar_Icons_24->Images->SetKeyName(57, L"Disconnect.png");
  460. this->Toolbar_Icons_24->Images->SetKeyName(58, L"Discussion.png");
  461. this->Toolbar_Icons_24->Images->SetKeyName(59, L"Document.png");
  462. this->Toolbar_Icons_24->Images->SetKeyName(60, L"Documents.png");
  463. this->Toolbar_Icons_24->Images->SetKeyName(61, L"Dog.png");
  464. this->Toolbar_Icons_24->Images->SetKeyName(62, L"Dollar.png");
  465. this->Toolbar_Icons_24->Images->SetKeyName(63, L"Down.png");
  466. this->Toolbar_Icons_24->Images->SetKeyName(64, L"Download.png");
  467. this->Toolbar_Icons_24->Images->SetKeyName(65, L"Edit.png");
  468. this->Toolbar_Icons_24->Images->SetKeyName(66, L"Euro.png");
  469. this->Toolbar_Icons_24->Images->SetKeyName(67, L"Exit button.png");
  470. this->Toolbar_Icons_24->Images->SetKeyName(68, L"Exit.png");
  471. this->Toolbar_Icons_24->Images->SetKeyName(69, L"Favourites.png");
  472. this->Toolbar_Icons_24->Images->SetKeyName(70, L"Fax.png");
  473. this->Toolbar_Icons_24->Images->SetKeyName(71, L"Flash drive.png");
  474. this->Toolbar_Icons_24->Images->SetKeyName(72, L"Flow block.png");
  475. this->Toolbar_Icons_24->Images->SetKeyName(73, L"Free.png");
  476. this->Toolbar_Icons_24->Images->SetKeyName(74, L"Friends.png");
  477. this->Toolbar_Icons_24->Images->SetKeyName(75, L"Full basket.png");
  478. this->Toolbar_Icons_24->Images->SetKeyName(76, L"Funny.png");
  479. this->Toolbar_Icons_24->Images->SetKeyName(77, L"Game controller.png");
  480. this->Toolbar_Icons_24->Images->SetKeyName(78, L"Gear.png");
  481. this->Toolbar_Icons_24->Images->SetKeyName(79, L"Genealogy.png");
  482. this->Toolbar_Icons_24->Images->SetKeyName(80, L"Gift.png");
  483. this->Toolbar_Icons_24->Images->SetKeyName(81, L"Girl.png");
  484. this->Toolbar_Icons_24->Images->SetKeyName(82, L"Globe.png");
  485. this->Toolbar_Icons_24->Images->SetKeyName(83, L"Handshake.png");
  486. this->Toolbar_Icons_24->Images->SetKeyName(84, L"Happy.png");
  487. this->Toolbar_Icons_24->Images->SetKeyName(85, L"Hard disk.png");
  488. this->Toolbar_Icons_24->Images->SetKeyName(86, L"Heart.png");
  489. this->Toolbar_Icons_24->Images->SetKeyName(87, L"Help.png");
  490. this->Toolbar_Icons_24->Images->SetKeyName(88, L"Hierarchy.png");
  491. this->Toolbar_Icons_24->Images->SetKeyName(89, L"Home.png");
  492. this->Toolbar_Icons_24->Images->SetKeyName(90, L"Hungup.png");
  493. this->Toolbar_Icons_24->Images->SetKeyName(91, L"Industry.png");
  494. this->Toolbar_Icons_24->Images->SetKeyName(92, L"Info.png");
  495. this->Toolbar_Icons_24->Images->SetKeyName(93, L"Key.png");
  496. this->Toolbar_Icons_24->Images->SetKeyName(94, L"Label.png");
  497. this->Toolbar_Icons_24->Images->SetKeyName(95, L"Left.png");
  498. this->Toolbar_Icons_24->Images->SetKeyName(96, L"Lego brick.png");
  499. this->Toolbar_Icons_24->Images->SetKeyName(97, L"Letter.png");
  500. this->Toolbar_Icons_24->Images->SetKeyName(98, L"List.png");
  501. this->Toolbar_Icons_24->Images->SetKeyName(99, L"Lists.png");
  502. this->Toolbar_Icons_24->Images->SetKeyName(100, L"Lock.png");
  503. this->Toolbar_Icons_24->Images->SetKeyName(101, L"Log out.png");
  504. this->Toolbar_Icons_24->Images->SetKeyName(102, L"Login.png");
  505. this->Toolbar_Icons_24->Images->SetKeyName(103, L"Mail.png");
  506. this->Toolbar_Icons_24->Images->SetKeyName(104, L"Microsoft.png");
  507. this->Toolbar_Icons_24->Images->SetKeyName(105, L"Mobile phone.png");
  508. this->Toolbar_Icons_24->Images->SetKeyName(106, L"Money.png");
  509. this->Toolbar_Icons_24->Images->SetKeyName(107, L"Monitor.png");
  510. this->Toolbar_Icons_24->Images->SetKeyName(108, L"Mouse.png");
  511. this->Toolbar_Icons_24->Images->SetKeyName(109, L"Music.png");
  512. this->Toolbar_Icons_24->Images->SetKeyName(110, L"No.png");
  513. this->Toolbar_Icons_24->Images->SetKeyName(111, L"Notes.png");
  514. this->Toolbar_Icons_24->Images->SetKeyName(112, L"Numbered list.png");
  515. this->Toolbar_Icons_24->Images->SetKeyName(113, L"OK.png");
  516. this->Toolbar_Icons_24->Images->SetKeyName(114, L"Online.png");
  517. this->Toolbar_Icons_24->Images->SetKeyName(115, L"Open door.png");
  518. this->Toolbar_Icons_24->Images->SetKeyName(116, L"Open file.png");
  519. this->Toolbar_Icons_24->Images->SetKeyName(117, L"Open folder.png");
  520. this->Toolbar_Icons_24->Images->SetKeyName(118, L"Open letter.png");
  521. this->Toolbar_Icons_24->Images->SetKeyName(119, L"Open lock.png");
  522. this->Toolbar_Icons_24->Images->SetKeyName(120, L"Payment.png");
  523. this->Toolbar_Icons_24->Images->SetKeyName(121, L"Peace.png");
  524. this->Toolbar_Icons_24->Images->SetKeyName(122, L"Pets.png");
  525. this->Toolbar_Icons_24->Images->SetKeyName(123, L"Phone.png");
  526. this->Toolbar_Icons_24->Images->SetKeyName(124, L"Piggy bank.png");
  527. this->Toolbar_Icons_24->Images->SetKeyName(125, L"Piggy.png");
  528. this->Toolbar_Icons_24->Images->SetKeyName(126, L"Pointer.png");
  529. this->Toolbar_Icons_24->Images->SetKeyName(127, L"Pound.png");
  530. this->Toolbar_Icons_24->Images->SetKeyName(128, L"Price list.png");
  531. this->Toolbar_Icons_24->Images->SetKeyName(129, L"Print preview.png");
  532. this->Toolbar_Icons_24->Images->SetKeyName(130, L"Print.png");
  533. this->Toolbar_Icons_24->Images->SetKeyName(131, L"Printer.png");
  534. this->Toolbar_Icons_24->Images->SetKeyName(132, L"Problem.png");
  535. this->Toolbar_Icons_24->Images->SetKeyName(133, L"Properties.png");
  536. this->Toolbar_Icons_24->Images->SetKeyName(134, L"Red star.png");
  537. this->Toolbar_Icons_24->Images->SetKeyName(135, L"Refresh.png");
  538. this->Toolbar_Icons_24->Images->SetKeyName(136, L"Remove from basket.png");
  539. this->Toolbar_Icons_24->Images->SetKeyName(137, L"Report.png");
  540. this->Toolbar_Icons_24->Images->SetKeyName(138, L"Right.png");
  541. this->Toolbar_Icons_24->Images->SetKeyName(139, L"Rouble.png");
  542. this->Toolbar_Icons_24->Images->SetKeyName(140, L"RSS.png");
  543. this->Toolbar_Icons_24->Images->SetKeyName(141, L"Sad.png");
  544. this->Toolbar_Icons_24->Images->SetKeyName(142, L"Safe.png");
  545. this->Toolbar_Icons_24->Images->SetKeyName(143, L"Save as.png");
  546. this->Toolbar_Icons_24->Images->SetKeyName(144, L"Save.png");
  547. this->Toolbar_Icons_24->Images->SetKeyName(145, L"Scroll list.png");
  548. this->Toolbar_Icons_24->Images->SetKeyName(146, L"Search.png");
  549. this->Toolbar_Icons_24->Images->SetKeyName(147, L"Shield.png");
  550. this->Toolbar_Icons_24->Images->SetKeyName(148, L"Smile.png");
  551. this->Toolbar_Icons_24->Images->SetKeyName(149, L"Software.png");
  552. this->Toolbar_Icons_24->Images->SetKeyName(150, L"Statistics.png");
  553. this->Toolbar_Icons_24->Images->SetKeyName(151, L"Stop.png");
  554. this->Toolbar_Icons_24->Images->SetKeyName(152, L"Task list.png");
  555. this->Toolbar_Icons_24->Images->SetKeyName(153, L"Telephone.png");
  556. this->Toolbar_Icons_24->Images->SetKeyName(154, L"Text.png");
  557. this->Toolbar_Icons_24->Images->SetKeyName(155, L"Tick.png");
  558. this->Toolbar_Icons_24->Images->SetKeyName(156, L"To do list.png");
  559. this->Toolbar_Icons_24->Images->SetKeyName(157, L"Trash.png");
  560. this->Toolbar_Icons_24->Images->SetKeyName(158, L"Unknown person.png");
  561. this->Toolbar_Icons_24->Images->SetKeyName(159, L"Unlock.png");
  562. this->Toolbar_Icons_24->Images->SetKeyName(160, L"Unordered list.png");
  563. this->Toolbar_Icons_24->Images->SetKeyName(161, L"Up.png");
  564. this->Toolbar_Icons_24->Images->SetKeyName(162, L"Upload.png");
  565. this->Toolbar_Icons_24->Images->SetKeyName(163, L"User group.png");
  566. this->Toolbar_Icons_24->Images->SetKeyName(164, L"User.png");
  567. this->Toolbar_Icons_24->Images->SetKeyName(165, L"Users.png");
  568. this->Toolbar_Icons_24->Images->SetKeyName(166, L"Wallet.png");
  569. this->Toolbar_Icons_24->Images->SetKeyName(167, L"Warning.png");
  570. this->Toolbar_Icons_24->Images->SetKeyName(168, L"Weather.png");
  571. this->Toolbar_Icons_24->Images->SetKeyName(169, L"Wireless.png");
  572. this->Toolbar_Icons_24->Images->SetKeyName(170, L"Wizard.png");
  573. this->Toolbar_Icons_24->Images->SetKeyName(171, L"Yen.png");
  574. this->Toolbar_Icons_24->Images->SetKeyName(172, L"Yin-Yang.png");
  575. this->Toolbar_Icons_24->Images->SetKeyName(173, L"Zoom in.png");
  576. this->Toolbar_Icons_24->Images->SetKeyName(174, L"Zoom out.png");
  577. this->Toolbar_Icons_24->Images->SetKeyName(175, L"Zoom.png");
  578. //
  579. // MainWindow
  580. //
  581. this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  582. this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  583. this->ClientSize = System::Drawing::Size(624, 444);
  584. this->Controls->Add(this->MainSplit);
  585. this->Controls->Add(this->MainStatusbar);
  586. this->Controls->Add(this->MainToolbar);
  587. this->Controls->Add(this->MainMenuBar);
  588. this->Controls->Add(this->labelMainConnectLPM);
  589. this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
  590. this->MainMenuStrip = this->MainMenuBar;
  591. this->MaximizeBox = false;
  592. this->MinimumSize = System::Drawing::Size(640, 480);
  593. this->Name = L"MainWindow";
  594. this->Text = L"LPM Service Tool v4.0 dev.";
  595. this->MainMenuBar->ResumeLayout(false);
  596. this->MainMenuBar->PerformLayout();
  597. this->MainToolbar->ResumeLayout(false);
  598. this->MainToolbar->PerformLayout();
  599. this->MainStatusbar->ResumeLayout(false);
  600. this->MainStatusbar->PerformLayout();
  601. this->MainSplit->Panel1->ResumeLayout(false);
  602. this->MainSplit->ResumeLayout(false);
  603. this->ResumeLayout(false);
  604. this->PerformLayout();
  605.  
  606. }
  607. #pragma endregion
  608. private: System::Void quitToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e)
  609. {
  610. this->Close();
  611. }
  612.  
  613. private: System::Void TBConnect_Click(System::Object^ sender, System::EventArgs^ e)
  614. {
  615. array<int>^ DDDMM = gcnew array<int>(5); // Parameter DIM/MAX (scope, laser, proc, phase, fixed_par)
  616. GetDim_Max(FilterStringPound(ReadREFToString(this->TBComboCOM->Text)), DDDMM);
  617.  
  618.  
  619. //Connect to LPM on COM Port specified by TBComboCOM
  620. //For testing: read file, named x.ref (x specified by TBComboCOM)
  621.  
  622. }
  623.  
  624. private: array<int>^ state;
  625. public: MainWindow(): state(gcnew array<int>(5)) {}
  626.  
  627.  
  628. };
  629. }
  630.