#pragma once
#include "Code.h"
namespace ServiceTool_v4 {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Zusammenfassung für MainWindow
///
/// Warnung: Wenn Sie den Namen dieser Klasse ändern, müssen Sie auch
/// die Ressourcendateiname-Eigenschaft für das Tool zur Kompilierung verwalteter Ressourcen ändern,
/// das allen RESX-Dateien zugewiesen ist, von denen diese Klasse abhängt.
/// Anderenfalls können die Designer nicht korrekt mit den lokalisierten Ressourcen
/// arbeiten, die diesem Formular zugewiesen sind.
/// </summary>
public ref class MainWindow : public System::Windows::Forms::Form
{
public:
MainWindow(void)
{
InitializeComponent();
//
//TODO: Konstruktorcode hier hinzufügen.
//
this->TBComboCOM->SelectedIndex = 0; // default COM-Port
// TODO: das folgende nur zum testen und wieder löschen:
TreeNode^ P1 = this->treeView1->Nodes->Add("Parent 1");
TreeNode^ P2 = this->treeView1->Nodes->Add("Parent 2");
TreeNode^ C11 = P1->Nodes->Add("Child 1 von Parent 1");
TreeNode^ C12 = P1->Nodes->Add("Child 2 von Parent 1");
TreeNode^ C13 = P1->Nodes->Add("Child 3 von Parent 1");
P2->Nodes->Add("Child 1 von Parent 2");
this->MainSplit->Visible = true;
// das drübere wieder löschen
}
protected:
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
~MainWindow()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::MenuStrip^ MainMenuBar;
private: System::Windows::Forms::ToolStripMenuItem^ fileToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ openToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^ toolStripMenuItem1;
private: System::Windows::Forms::ToolStripMenuItem^ quitToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ helpToolStripMenuItem;
private: System::Windows::Forms::ToolStrip^ MainToolbar;
private: System::Windows::Forms::ToolStripButton^ TBParamRead;
private: System::Windows::Forms::ToolStripButton^ TBParamWrite;
private: System::Windows::Forms::ToolStripButton^ TBSaveData;
private: System::Windows::Forms::ToolStripButton^ TBConnect;
private: System::Windows::Forms::StatusStrip^ MainStatusbar;
private: System::Windows::Forms::ToolStripStatusLabel^ toolStripStatusLabel1;
private: System::Windows::Forms::ToolStripProgressBar^ toolStripProgressBar1;
private: System::Windows::Forms::SplitContainer^ MainSplit;
private: System::Windows::Forms::TreeView^ treeView1;
private: System::Windows::Forms::Label^ labelMainConnectLPM;
private: System::Windows::Forms::ImageList^ Mixed_Icons;
private: System::Windows::Forms::ImageList^ Toolbar_Icons_24;
private: System::Windows::Forms::ToolStripLabel^ TBLabelCOM;
private: System::Windows::Forms::ToolStripComboBox^ TBComboCOM;
private: System::Windows::Forms::ToolStripButton^ TBUpdateProgram;
private: System::Windows::Forms::ToolStripButton^ TBUpdateLPM;
private: System::Windows::Forms::ToolStripMenuItem^ updateLPMSoftwareToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ paramaterToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ readParamtersToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ writeParametersToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ lPMServiceToolManualToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ updateLPMServiceToolToolStripMenuItem;
private: System::Windows::Forms::ToolStripSeparator^ toolStripMenuItem2;
private: System::Windows::Forms::ToolStripMenuItem^ aboutToolStripMenuItem;
private: System::ComponentModel::IContainer^ components;
private:
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
void InitializeComponent(void)
{
this->components = (gcnew System::ComponentModel::Container());
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(MainWindow::typeid));
this->MainMenuBar = (gcnew System::Windows::Forms::MenuStrip());
this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->openToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->updateLPMSoftwareToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->toolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->quitToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->paramaterToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->readParamtersToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->writeParametersToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->helpToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->lPMServiceToolManualToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->updateLPMServiceToolToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->toolStripMenuItem2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->aboutToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->MainToolbar = (gcnew System::Windows::Forms::ToolStrip());
this->TBParamRead = (gcnew System::Windows::Forms::ToolStripButton());
this->TBParamWrite = (gcnew System::Windows::Forms::ToolStripButton());
this->TBSaveData = (gcnew System::Windows::Forms::ToolStripButton());
this->TBUpdateLPM = (gcnew System::Windows::Forms::ToolStripButton());
this->TBConnect = (gcnew System::Windows::Forms::ToolStripButton());
this->TBLabelCOM = (gcnew System::Windows::Forms::ToolStripLabel());
this->TBComboCOM = (gcnew System::Windows::Forms::ToolStripComboBox());
this->TBUpdateProgram = (gcnew System::Windows::Forms::ToolStripButton());
this->MainStatusbar = (gcnew System::Windows::Forms::StatusStrip());
this->toolStripStatusLabel1 = (gcnew System::Windows::Forms::ToolStripStatusLabel());
this->toolStripProgressBar1 = (gcnew System::Windows::Forms::ToolStripProgressBar());
this->MainSplit = (gcnew System::Windows::Forms::SplitContainer());
this->treeView1 = (gcnew System::Windows::Forms::TreeView());
this->labelMainConnectLPM = (gcnew System::Windows::Forms::Label());
this->Mixed_Icons = (gcnew System::Windows::Forms::ImageList(this->components));
this->Toolbar_Icons_24 = (gcnew System::Windows::Forms::ImageList(this->components));
this->MainMenuBar->SuspendLayout();
this->MainToolbar->SuspendLayout();
this->MainStatusbar->SuspendLayout();
this->MainSplit->Panel1->SuspendLayout();
this->MainSplit->SuspendLayout();
this->SuspendLayout();
//
// MainMenuBar
//
this->MainMenuBar->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(3) {this->fileToolStripMenuItem,
this->paramaterToolStripMenuItem, this->helpToolStripMenuItem});
this->MainMenuBar->Location = System::Drawing::Point(0, 0);
this->MainMenuBar->Name = L"MainMenuBar";
this->MainMenuBar->Size = System::Drawing::Size(624, 24);
this->MainMenuBar->TabIndex = 2;
this->MainMenuBar->Text = L"MainMenuBar";
//
// fileToolStripMenuItem
//
this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->openToolStripMenuItem,
this->updateLPMSoftwareToolStripMenuItem, this->toolStripMenuItem1, this->quitToolStripMenuItem});
this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
this->fileToolStripMenuItem->Size = System::Drawing::Size(37, 20);
this->fileToolStripMenuItem->Text = L"&File";
//
// openToolStripMenuItem
//
this->openToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"openToolStripMenuItem.Image")));
this->openToolStripMenuItem->Name = L"openToolStripMenuItem";
this->openToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::S));
this->openToolStripMenuItem->Size = System::Drawing::Size(241, 22);
this->openToolStripMenuItem->Text = L"&Save Data Samples...";
//
// updateLPMSoftwareToolStripMenuItem
//
this->updateLPMSoftwareToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"updateLPMSoftwareToolStripMenuItem.Image")));
this->updateLPMSoftwareToolStripMenuItem->Name = L"updateLPMSoftwareToolStripMenuItem";
this->updateLPMSoftwareToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::U));
this->updateLPMSoftwareToolStripMenuItem->Size = System::Drawing::Size(241, 22);
this->updateLPMSoftwareToolStripMenuItem->Text = L"&Update LPM Software...";
//
// toolStripMenuItem1
//
this->toolStripMenuItem1->Name = L"toolStripMenuItem1";
this->toolStripMenuItem1->Size = System::Drawing::Size(238, 6);
//
// quitToolStripMenuItem
//
this->quitToolStripMenuItem->Name = L"quitToolStripMenuItem";
this->quitToolStripMenuItem->ShortcutKeys = static_cast<System::Windows::Forms::Keys>((System::Windows::Forms::Keys::Control | System::Windows::Forms::Keys::Q));
this->quitToolStripMenuItem->Size = System::Drawing::Size(241, 22);
this->quitToolStripMenuItem->Text = L"&Quit";
this->quitToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainWindow::quitToolStripMenuItem_Click);
//
// paramaterToolStripMenuItem
//
this->paramaterToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->readParamtersToolStripMenuItem,
this->writeParametersToolStripMenuItem});
this->paramaterToolStripMenuItem->Name = L"paramaterToolStripMenuItem";
this->paramaterToolStripMenuItem->Size = System::Drawing::Size(73, 20);
this->paramaterToolStripMenuItem->Text = L"&Parameter";
//
// readParamtersToolStripMenuItem
//
this->readParamtersToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"readParamtersToolStripMenuItem.Image")));
this->readParamtersToolStripMenuItem->Name = L"readParamtersToolStripMenuItem";
this->readParamtersToolStripMenuItem->Size = System::Drawing::Size(164, 22);
this->readParamtersToolStripMenuItem->Text = L"&Read Paramters";
//
// writeParametersToolStripMenuItem
//
this->writeParametersToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"writeParametersToolStripMenuItem.Image")));
this->writeParametersToolStripMenuItem->Name = L"writeParametersToolStripMenuItem";
this->writeParametersToolStripMenuItem->Size = System::Drawing::Size(164, 22);
this->writeParametersToolStripMenuItem->Text = L"&Write Parameters";
//
// helpToolStripMenuItem
//
this->helpToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->lPMServiceToolManualToolStripMenuItem,
this->updateLPMServiceToolToolStripMenuItem, this->toolStripMenuItem2, this->aboutToolStripMenuItem});
this->helpToolStripMenuItem->Name = L"helpToolStripMenuItem";
this->helpToolStripMenuItem->Size = System::Drawing::Size(44, 20);
this->helpToolStripMenuItem->Text = L"&Help";
//
// lPMServiceToolManualToolStripMenuItem
//
this->lPMServiceToolManualToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"lPMServiceToolManualToolStripMenuItem.Image")));
this->lPMServiceToolManualToolStripMenuItem->Name = L"lPMServiceToolManualToolStripMenuItem";
this->lPMServiceToolManualToolStripMenuItem->Size = System::Drawing::Size(208, 22);
this->lPMServiceToolManualToolStripMenuItem->Text = L"LPM Service Tool &Manual";
//
// updateLPMServiceToolToolStripMenuItem
//
this->updateLPMServiceToolToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"updateLPMServiceToolToolStripMenuItem.Image")));
this->updateLPMServiceToolToolStripMenuItem->Name = L"updateLPMServiceToolToolStripMenuItem";
this->updateLPMServiceToolToolStripMenuItem->Size = System::Drawing::Size(208, 22);
this->updateLPMServiceToolToolStripMenuItem->Text = L"&Update LPM Service Tool";
//
// toolStripMenuItem2
//
this->toolStripMenuItem2->Name = L"toolStripMenuItem2";
this->toolStripMenuItem2->Size = System::Drawing::Size(205, 6);
//
// aboutToolStripMenuItem
//
this->aboutToolStripMenuItem->Name = L"aboutToolStripMenuItem";
this->aboutToolStripMenuItem->Size = System::Drawing::Size(208, 22);
this->aboutToolStripMenuItem->Text = L"&About LPM Service Tool";
//
// MainToolbar
//
this->MainToolbar->GripStyle = System::Windows::Forms::ToolStripGripStyle::Hidden;
this->MainToolbar->ImageScalingSize = System::Drawing::Size(24, 24);
this->MainToolbar->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(8) {this->TBParamRead, this->TBParamWrite,
this->TBSaveData, this->TBUpdateLPM, this->TBConnect, this->TBLabelCOM, this->TBComboCOM, this->TBUpdateProgram});
this->MainToolbar->Location = System::Drawing::Point(0, 24);
this->MainToolbar->Name = L"MainToolbar";
this->MainToolbar->Size = System::Drawing::Size(624, 31);
this->MainToolbar->TabIndex = 0;
this->MainToolbar->TabStop = true;
this->MainToolbar->Text = L"MainToolbar";
//
// TBParamRead
//
this->TBParamRead->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->TBParamRead->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBParamRead.Image")));
this->TBParamRead->ImageTransparentColor = System::Drawing::Color::Magenta;
this->TBParamRead->Name = L"TBParamRead";
this->TBParamRead->Size = System::Drawing::Size(28, 28);
this->TBParamRead->Text = L"TBParamRead";
this->TBParamRead->ToolTipText = L"Read Parameters";
//
// TBParamWrite
//
this->TBParamWrite->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->TBParamWrite->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBParamWrite.Image")));
this->TBParamWrite->ImageTransparentColor = System::Drawing::Color::Magenta;
this->TBParamWrite->Name = L"TBParamWrite";
this->TBParamWrite->Size = System::Drawing::Size(28, 28);
this->TBParamWrite->Text = L"TBParamWrite";
this->TBParamWrite->ToolTipText = L"Write Parameters";
//
// TBSaveData
//
this->TBSaveData->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->TBSaveData->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBSaveData.Image")));
this->TBSaveData->ImageTransparentColor = System::Drawing::Color::Magenta;
this->TBSaveData->Name = L"TBSaveData";
this->TBSaveData->Size = System::Drawing::Size(28, 28);
this->TBSaveData->Text = L"TBSaveData";
this->TBSaveData->ToolTipText = L"Save Data Samples";
//
// TBUpdateLPM
//
this->TBUpdateLPM->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->TBUpdateLPM->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBUpdateLPM.Image")));
this->TBUpdateLPM->ImageTransparentColor = System::Drawing::Color::Magenta;
this->TBUpdateLPM->Name = L"TBUpdateLPM";
this->TBUpdateLPM->Size = System::Drawing::Size(28, 28);
this->TBUpdateLPM->Text = L"TBUpdateLPM";
this->TBUpdateLPM->ToolTipText = L"Update LPM Software";
//
// TBConnect
//
this->TBConnect->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->TBConnect->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBConnect.Image")));
this->TBConnect->ImageTransparentColor = System::Drawing::Color::Magenta;
this->TBConnect->Name = L"TBConnect";
this->TBConnect->Size = System::Drawing::Size(28, 28);
this->TBConnect->Text = L"TBConnect";
this->TBConnect->ToolTipText = L"Conncet to LPM";
this->TBConnect->Click += gcnew System::EventHandler(this, &MainWindow::TBConnect_Click);
//
// TBLabelCOM
//
this->TBLabelCOM->Name = L"TBLabelCOM";
this->TBLabelCOM->Size = System::Drawing::Size(65, 28);
this->TBLabelCOM->Text = L"&COM-Port:";
//
// TBComboCOM
//
this->TBComboCOM->AutoSize = false;
this->TBComboCOM->IntegralHeight = false;
this->TBComboCOM->Items->AddRange(gcnew cli::array< System::Object^ >(5) {L"1", L"2", L"3", L"4", L"5"});
this->TBComboCOM->MaxLength = 2;
this->TBComboCOM->Name = L"TBComboCOM";
this->TBComboCOM->Size = System::Drawing::Size(40, 23);
this->TBComboCOM->Sorted = true;
this->TBComboCOM->ToolTipText = L"Select COM-Port";
//
// TBUpdateProgram
//
this->TBUpdateProgram->Alignment = System::Windows::Forms::ToolStripItemAlignment::Right;
this->TBUpdateProgram->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->TBUpdateProgram->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"TBUpdateProgram.Image")));
this->TBUpdateProgram->ImageTransparentColor = System::Drawing::Color::Magenta;
this->TBUpdateProgram->Name = L"TBUpdateProgram";
this->TBUpdateProgram->Size = System::Drawing::Size(28, 28);
this->TBUpdateProgram->Text = L"toolStripButton1";
this->TBUpdateProgram->ToolTipText = L"Update LPM Servicetool";
//
// MainStatusbar
//
this->MainStatusbar->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(2) {this->toolStripStatusLabel1,
this->toolStripProgressBar1});
this->MainStatusbar->Location = System::Drawing::Point(0, 422);
this->MainStatusbar->Name = L"MainStatusbar";
this->MainStatusbar->Size = System::Drawing::Size(624, 22);
this->MainStatusbar->TabIndex = 1;
this->MainStatusbar->Text = L"MainStatusbar";
//
// toolStripStatusLabel1
//
this->toolStripStatusLabel1->Name = L"toolStripStatusLabel1";
this->toolStripStatusLabel1->Size = System::Drawing::Size(118, 17);
this->toolStripStatusLabel1->Text = L"toolStripStatusLabel1";
//
// toolStripProgressBar1
//
this->toolStripProgressBar1->Name = L"toolStripProgressBar1";
this->toolStripProgressBar1->Size = System::Drawing::Size(100, 16);
//
// MainSplit
//
this->MainSplit->Dock = System::Windows::Forms::DockStyle::Fill;
this->MainSplit->Location = System::Drawing::Point(0, 55);
this->MainSplit->Name = L"MainSplit";
//
// MainSplit.Panel1
//
this->MainSplit->Panel1->Controls->Add(this->treeView1);
this->MainSplit->Size = System::Drawing::Size(624, 367);
this->MainSplit->SplitterDistance = 207;
this->MainSplit->TabIndex = 3;
this->MainSplit->Visible = false;
//
// treeView1
//
this->treeView1->Dock = System::Windows::Forms::DockStyle::Fill;
this->treeView1->Location = System::Drawing::Point(0, 0);
this->treeView1->Name = L"treeView1";
this->treeView1->Size = System::Drawing::Size(207, 367);
this->treeView1->TabIndex = 0;
this->treeView1->TabStop = false;
//
// labelMainConnectLPM
//
this->labelMainConnectLPM->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
this->labelMainConnectLPM->ImageKey = L"warning.ico";
this->labelMainConnectLPM->ImageList = this->Mixed_Icons;
this->labelMainConnectLPM->Location = System::Drawing::Point(217, 280);
this->labelMainConnectLPM->Name = L"labelMainConnectLPM";
this->labelMainConnectLPM->Size = System::Drawing::Size(198, 49);
this->labelMainConnectLPM->TabIndex = 3;
this->labelMainConnectLPM->Text = L"Please connect LPM to your PC\r\nand press the \"Connect\" button";
this->labelMainConnectLPM->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
//
// Mixed_Icons
//
this->Mixed_Icons->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^ >(resources->GetObject(L"Mixed_Icons.ImageStream")));
this->Mixed_Icons->TransparentColor = System::Drawing::Color::Transparent;
this->Mixed_Icons->Images->SetKeyName(0, L"warning.ico");
//
// Toolbar_Icons_24
//
this->Toolbar_Icons_24->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^ >(resources->GetObject(L"Toolbar_Icons_24.ImageStream")));
this->Toolbar_Icons_24->TransparentColor = System::Drawing::Color::Transparent;
this->Toolbar_Icons_24->Images->SetKeyName(0, L"Accept.png");
this->Toolbar_Icons_24->Images->SetKeyName(1, L"Add to basket.png");
this->Toolbar_Icons_24->Images->SetKeyName(2, L"Add.png");
this->Toolbar_Icons_24->Images->SetKeyName(3, L"Address book.png");
this->Toolbar_Icons_24->Images->SetKeyName(4, L"Alarm.png");
this->Toolbar_Icons_24->Images->SetKeyName(5, L"Anchor.png");
this->Toolbar_Icons_24->Images->SetKeyName(6, L"Application form.png");
this->Toolbar_Icons_24->Images->SetKeyName(7, L"Bar chart.png");
this->Toolbar_Icons_24->Images->SetKeyName(8, L"Basket.png");
this->Toolbar_Icons_24->Images->SetKeyName(9, L"Bell.png");
this->Toolbar_Icons_24->Images->SetKeyName(10, L"Best.png");
this->Toolbar_Icons_24->Images->SetKeyName(11, L"Billboard.png");
this->Toolbar_Icons_24->Images->SetKeyName(12, L"Bluetooth.png");
this->Toolbar_Icons_24->Images->SetKeyName(13, L"Bomb.png");
this->Toolbar_Icons_24->Images->SetKeyName(14, L"Book.png");
this->Toolbar_Icons_24->Images->SetKeyName(15, L"Bookmark.png");
this->Toolbar_Icons_24->Images->SetKeyName(16, L"Box.png");
this->Toolbar_Icons_24->Images->SetKeyName(17, L"Boy.png");
this->Toolbar_Icons_24->Images->SetKeyName(18, L"Brick house.png");
this->Toolbar_Icons_24->Images->SetKeyName(19, L"Bricks.png");
this->Toolbar_Icons_24->Images->SetKeyName(20, L"Brief case.png");
this->Toolbar_Icons_24->Images->SetKeyName(21, L"Brightness.png");
this->Toolbar_Icons_24->Images->SetKeyName(22, L"Bubble.png");
this->Toolbar_Icons_24->Images->SetKeyName(23, L"Buddy.png");
this->Toolbar_Icons_24->Images->SetKeyName(24, L"Cable.png");
this->Toolbar_Icons_24->Images->SetKeyName(25, L"Calculator.png");
this->Toolbar_Icons_24->Images->SetKeyName(26, L"Calendar.png");
this->Toolbar_Icons_24->Images->SetKeyName(27, L"Call.png");
this->Toolbar_Icons_24->Images->SetKeyName(28, L"Camera.png");
this->Toolbar_Icons_24->Images->SetKeyName(29, L"Card file.png");
this->Toolbar_Icons_24->Images->SetKeyName(30, L"Cash register.png");
this->Toolbar_Icons_24->Images->SetKeyName(31, L"Cat.png");
this->Toolbar_Icons_24->Images->SetKeyName(32, L"Certificate.png");
this->Toolbar_Icons_24->Images->SetKeyName(33, L"Clien list.png");
this->Toolbar_Icons_24->Images->SetKeyName(34, L"Clipboard.png");
this->Toolbar_Icons_24->Images->SetKeyName(35, L"Clock.png");
this->Toolbar_Icons_24->Images->SetKeyName(36, L"Closed door.png");
this->Toolbar_Icons_24->Images->SetKeyName(37, L"Closed folder.png");
this->Toolbar_Icons_24->Images->SetKeyName(38, L"Coin.png");
this->Toolbar_Icons_24->Images->SetKeyName(39, L"Coins.png");
this->Toolbar_Icons_24->Images->SetKeyName(40, L"Color wheel.png");
this->Toolbar_Icons_24->Images->SetKeyName(41, L"Comment.png");
this->Toolbar_Icons_24->Images->SetKeyName(42, L"Comments.png");
this->Toolbar_Icons_24->Images->SetKeyName(43, L"Company.png");
this->Toolbar_Icons_24->Images->SetKeyName(44, L"Computer.png");
this->Toolbar_Icons_24->Images->SetKeyName(45, L"Conference.png");
this->Toolbar_Icons_24->Images->SetKeyName(46, L"Connect.png");
this->Toolbar_Icons_24->Images->SetKeyName(47, L"Construction.png");
this->Toolbar_Icons_24->Images->SetKeyName(48, L"Contrast.png");
this->Toolbar_Icons_24->Images->SetKeyName(49, L"Control panel.png");
this->Toolbar_Icons_24->Images->SetKeyName(50, L"Create.png");
this->Toolbar_Icons_24->Images->SetKeyName(51, L"Database.png");
this->Toolbar_Icons_24->Images->SetKeyName(52, L"Date.png");
this->Toolbar_Icons_24->Images->SetKeyName(53, L"Delete.png");
this->Toolbar_Icons_24->Images->SetKeyName(54, L"Desktop.png");
this->Toolbar_Icons_24->Images->SetKeyName(55, L"Diagram.png");
this->Toolbar_Icons_24->Images->SetKeyName(56, L"Dice.png");
this->Toolbar_Icons_24->Images->SetKeyName(57, L"Disconnect.png");
this->Toolbar_Icons_24->Images->SetKeyName(58, L"Discussion.png");
this->Toolbar_Icons_24->Images->SetKeyName(59, L"Document.png");
this->Toolbar_Icons_24->Images->SetKeyName(60, L"Documents.png");
this->Toolbar_Icons_24->Images->SetKeyName(61, L"Dog.png");
this->Toolbar_Icons_24->Images->SetKeyName(62, L"Dollar.png");
this->Toolbar_Icons_24->Images->SetKeyName(63, L"Down.png");
this->Toolbar_Icons_24->Images->SetKeyName(64, L"Download.png");
this->Toolbar_Icons_24->Images->SetKeyName(65, L"Edit.png");
this->Toolbar_Icons_24->Images->SetKeyName(66, L"Euro.png");
this->Toolbar_Icons_24->Images->SetKeyName(67, L"Exit button.png");
this->Toolbar_Icons_24->Images->SetKeyName(68, L"Exit.png");
this->Toolbar_Icons_24->Images->SetKeyName(69, L"Favourites.png");
this->Toolbar_Icons_24->Images->SetKeyName(70, L"Fax.png");
this->Toolbar_Icons_24->Images->SetKeyName(71, L"Flash drive.png");
this->Toolbar_Icons_24->Images->SetKeyName(72, L"Flow block.png");
this->Toolbar_Icons_24->Images->SetKeyName(73, L"Free.png");
this->Toolbar_Icons_24->Images->SetKeyName(74, L"Friends.png");
this->Toolbar_Icons_24->Images->SetKeyName(75, L"Full basket.png");
this->Toolbar_Icons_24->Images->SetKeyName(76, L"Funny.png");
this->Toolbar_Icons_24->Images->SetKeyName(77, L"Game controller.png");
this->Toolbar_Icons_24->Images->SetKeyName(78, L"Gear.png");
this->Toolbar_Icons_24->Images->SetKeyName(79, L"Genealogy.png");
this->Toolbar_Icons_24->Images->SetKeyName(80, L"Gift.png");
this->Toolbar_Icons_24->Images->SetKeyName(81, L"Girl.png");
this->Toolbar_Icons_24->Images->SetKeyName(82, L"Globe.png");
this->Toolbar_Icons_24->Images->SetKeyName(83, L"Handshake.png");
this->Toolbar_Icons_24->Images->SetKeyName(84, L"Happy.png");
this->Toolbar_Icons_24->Images->SetKeyName(85, L"Hard disk.png");
this->Toolbar_Icons_24->Images->SetKeyName(86, L"Heart.png");
this->Toolbar_Icons_24->Images->SetKeyName(87, L"Help.png");
this->Toolbar_Icons_24->Images->SetKeyName(88, L"Hierarchy.png");
this->Toolbar_Icons_24->Images->SetKeyName(89, L"Home.png");
this->Toolbar_Icons_24->Images->SetKeyName(90, L"Hungup.png");
this->Toolbar_Icons_24->Images->SetKeyName(91, L"Industry.png");
this->Toolbar_Icons_24->Images->SetKeyName(92, L"Info.png");
this->Toolbar_Icons_24->Images->SetKeyName(93, L"Key.png");
this->Toolbar_Icons_24->Images->SetKeyName(94, L"Label.png");
this->Toolbar_Icons_24->Images->SetKeyName(95, L"Left.png");
this->Toolbar_Icons_24->Images->SetKeyName(96, L"Lego brick.png");
this->Toolbar_Icons_24->Images->SetKeyName(97, L"Letter.png");
this->Toolbar_Icons_24->Images->SetKeyName(98, L"List.png");
this->Toolbar_Icons_24->Images->SetKeyName(99, L"Lists.png");
this->Toolbar_Icons_24->Images->SetKeyName(100, L"Lock.png");
this->Toolbar_Icons_24->Images->SetKeyName(101, L"Log out.png");
this->Toolbar_Icons_24->Images->SetKeyName(102, L"Login.png");
this->Toolbar_Icons_24->Images->SetKeyName(103, L"Mail.png");
this->Toolbar_Icons_24->Images->SetKeyName(104, L"Microsoft.png");
this->Toolbar_Icons_24->Images->SetKeyName(105, L"Mobile phone.png");
this->Toolbar_Icons_24->Images->SetKeyName(106, L"Money.png");
this->Toolbar_Icons_24->Images->SetKeyName(107, L"Monitor.png");
this->Toolbar_Icons_24->Images->SetKeyName(108, L"Mouse.png");
this->Toolbar_Icons_24->Images->SetKeyName(109, L"Music.png");
this->Toolbar_Icons_24->Images->SetKeyName(110, L"No.png");
this->Toolbar_Icons_24->Images->SetKeyName(111, L"Notes.png");
this->Toolbar_Icons_24->Images->SetKeyName(112, L"Numbered list.png");
this->Toolbar_Icons_24->Images->SetKeyName(113, L"OK.png");
this->Toolbar_Icons_24->Images->SetKeyName(114, L"Online.png");
this->Toolbar_Icons_24->Images->SetKeyName(115, L"Open door.png");
this->Toolbar_Icons_24->Images->SetKeyName(116, L"Open file.png");
this->Toolbar_Icons_24->Images->SetKeyName(117, L"Open folder.png");
this->Toolbar_Icons_24->Images->SetKeyName(118, L"Open letter.png");
this->Toolbar_Icons_24->Images->SetKeyName(119, L"Open lock.png");
this->Toolbar_Icons_24->Images->SetKeyName(120, L"Payment.png");
this->Toolbar_Icons_24->Images->SetKeyName(121, L"Peace.png");
this->Toolbar_Icons_24->Images->SetKeyName(122, L"Pets.png");
this->Toolbar_Icons_24->Images->SetKeyName(123, L"Phone.png");
this->Toolbar_Icons_24->Images->SetKeyName(124, L"Piggy bank.png");
this->Toolbar_Icons_24->Images->SetKeyName(125, L"Piggy.png");
this->Toolbar_Icons_24->Images->SetKeyName(126, L"Pointer.png");
this->Toolbar_Icons_24->Images->SetKeyName(127, L"Pound.png");
this->Toolbar_Icons_24->Images->SetKeyName(128, L"Price list.png");
this->Toolbar_Icons_24->Images->SetKeyName(129, L"Print preview.png");
this->Toolbar_Icons_24->Images->SetKeyName(130, L"Print.png");
this->Toolbar_Icons_24->Images->SetKeyName(131, L"Printer.png");
this->Toolbar_Icons_24->Images->SetKeyName(132, L"Problem.png");
this->Toolbar_Icons_24->Images->SetKeyName(133, L"Properties.png");
this->Toolbar_Icons_24->Images->SetKeyName(134, L"Red star.png");
this->Toolbar_Icons_24->Images->SetKeyName(135, L"Refresh.png");
this->Toolbar_Icons_24->Images->SetKeyName(136, L"Remove from basket.png");
this->Toolbar_Icons_24->Images->SetKeyName(137, L"Report.png");
this->Toolbar_Icons_24->Images->SetKeyName(138, L"Right.png");
this->Toolbar_Icons_24->Images->SetKeyName(139, L"Rouble.png");
this->Toolbar_Icons_24->Images->SetKeyName(140, L"RSS.png");
this->Toolbar_Icons_24->Images->SetKeyName(141, L"Sad.png");
this->Toolbar_Icons_24->Images->SetKeyName(142, L"Safe.png");
this->Toolbar_Icons_24->Images->SetKeyName(143, L"Save as.png");
this->Toolbar_Icons_24->Images->SetKeyName(144, L"Save.png");
this->Toolbar_Icons_24->Images->SetKeyName(145, L"Scroll list.png");
this->Toolbar_Icons_24->Images->SetKeyName(146, L"Search.png");
this->Toolbar_Icons_24->Images->SetKeyName(147, L"Shield.png");
this->Toolbar_Icons_24->Images->SetKeyName(148, L"Smile.png");
this->Toolbar_Icons_24->Images->SetKeyName(149, L"Software.png");
this->Toolbar_Icons_24->Images->SetKeyName(150, L"Statistics.png");
this->Toolbar_Icons_24->Images->SetKeyName(151, L"Stop.png");
this->Toolbar_Icons_24->Images->SetKeyName(152, L"Task list.png");
this->Toolbar_Icons_24->Images->SetKeyName(153, L"Telephone.png");
this->Toolbar_Icons_24->Images->SetKeyName(154, L"Text.png");
this->Toolbar_Icons_24->Images->SetKeyName(155, L"Tick.png");
this->Toolbar_Icons_24->Images->SetKeyName(156, L"To do list.png");
this->Toolbar_Icons_24->Images->SetKeyName(157, L"Trash.png");
this->Toolbar_Icons_24->Images->SetKeyName(158, L"Unknown person.png");
this->Toolbar_Icons_24->Images->SetKeyName(159, L"Unlock.png");
this->Toolbar_Icons_24->Images->SetKeyName(160, L"Unordered list.png");
this->Toolbar_Icons_24->Images->SetKeyName(161, L"Up.png");
this->Toolbar_Icons_24->Images->SetKeyName(162, L"Upload.png");
this->Toolbar_Icons_24->Images->SetKeyName(163, L"User group.png");
this->Toolbar_Icons_24->Images->SetKeyName(164, L"User.png");
this->Toolbar_Icons_24->Images->SetKeyName(165, L"Users.png");
this->Toolbar_Icons_24->Images->SetKeyName(166, L"Wallet.png");
this->Toolbar_Icons_24->Images->SetKeyName(167, L"Warning.png");
this->Toolbar_Icons_24->Images->SetKeyName(168, L"Weather.png");
this->Toolbar_Icons_24->Images->SetKeyName(169, L"Wireless.png");
this->Toolbar_Icons_24->Images->SetKeyName(170, L"Wizard.png");
this->Toolbar_Icons_24->Images->SetKeyName(171, L"Yen.png");
this->Toolbar_Icons_24->Images->SetKeyName(172, L"Yin-Yang.png");
this->Toolbar_Icons_24->Images->SetKeyName(173, L"Zoom in.png");
this->Toolbar_Icons_24->Images->SetKeyName(174, L"Zoom out.png");
this->Toolbar_Icons_24->Images->SetKeyName(175, L"Zoom.png");
//
// MainWindow
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(624, 444);
this->Controls->Add(this->MainSplit);
this->Controls->Add(this->MainStatusbar);
this->Controls->Add(this->MainToolbar);
this->Controls->Add(this->MainMenuBar);
this->Controls->Add(this->labelMainConnectLPM);
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->MainMenuStrip = this->MainMenuBar;
this->MaximizeBox = false;
this->MinimumSize = System::Drawing::Size(640, 480);
this->Name = L"MainWindow";
this->Text = L"LPM Service Tool v4.0 dev.";
this->MainMenuBar->ResumeLayout(false);
this->MainMenuBar->PerformLayout();
this->MainToolbar->ResumeLayout(false);
this->MainToolbar->PerformLayout();
this->MainStatusbar->ResumeLayout(false);
this->MainStatusbar->PerformLayout();
this->MainSplit->Panel1->ResumeLayout(false);
this->MainSplit->ResumeLayout(false);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void quitToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e)
{
this->Close();
}
private: System::Void TBConnect_Click(System::Object^ sender, System::EventArgs^ e)
{
array<int>^ DDDMM = gcnew array<int>(5); // Parameter DIM/MAX (scope, laser, proc, phase, fixed_par)
GetDim_Max(FilterStringPound(ReadREFToString(this->TBComboCOM->Text)), DDDMM);
//Connect to LPM on COM Port specified by TBComboCOM
//For testing: read file, named x.ref (x specified by TBComboCOM)
}
private: array<int>^ state;
public: MainWindow(): state(gcnew array<int>(5)) {}
};
}