623 lines
49 KiB
C++
623 lines
49 KiB
C++
#pragma once
|
||
|
||
namespace DroneClientCpp {
|
||
|
||
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>
|
||
/// Сводка для FormMain
|
||
/// </summary>
|
||
public ref class FormMain : public System::Windows::Forms::Form
|
||
{
|
||
public:
|
||
FormMain(void)
|
||
{
|
||
InitializeComponent();
|
||
//
|
||
//TODO: добавьте код конструктора
|
||
//
|
||
}
|
||
|
||
protected:
|
||
/// <summary>
|
||
/// Освободить все используемые ресурсы.
|
||
/// </summary>
|
||
~FormMain()
|
||
{
|
||
if (components)
|
||
{
|
||
delete components;
|
||
}
|
||
}
|
||
private: System::Windows::Forms::GroupBox^ groupBox1;
|
||
private: System::Windows::Forms::Label^ Port;
|
||
private: System::Windows::Forms::Button^ button_Connect;
|
||
private: System::Windows::Forms::NumericUpDown^ numericUpDown_Server_Port;
|
||
private: System::Windows::Forms::TextBox^ textBox_Server_Addr;
|
||
|
||
|
||
|
||
|
||
|
||
private: System::Windows::Forms::GroupBox^ groupBox2;
|
||
|
||
|
||
private: System::Windows::Forms::Label^ Addr;
|
||
private: System::Windows::Forms::Label^ label1;
|
||
private: System::Windows::Forms::Label^ label_Acc_Z;
|
||
|
||
|
||
|
||
|
||
private: System::Windows::Forms::Label^ label_Acc_Y;
|
||
|
||
private: System::Windows::Forms::Label^ label_Acc_X;
|
||
private: System::Windows::Forms::Label^ label3;
|
||
private: System::Windows::Forms::Label^ label2;
|
||
private: System::ComponentModel::BackgroundWorker^ backgroundWorker1;
|
||
private: System::Windows::Forms::GroupBox^ groupBox3;
|
||
private: System::Windows::Forms::Label^ label_Gyr_Z;
|
||
private: System::Windows::Forms::Label^ label_Gyr_Y;
|
||
private: System::Windows::Forms::Label^ label_Gyr_X;
|
||
private: System::Windows::Forms::Label^ label7;
|
||
private: System::Windows::Forms::Label^ label8;
|
||
private: System::Windows::Forms::Label^ label9;
|
||
private: System::Windows::Forms::GroupBox^ groupBox4;
|
||
private: System::Windows::Forms::Label^ label_Pos_L;
|
||
private: System::Windows::Forms::Label^ label_Pos_Y;
|
||
private: System::Windows::Forms::Label^ label_Pos_X;
|
||
private: System::Windows::Forms::Label^ label13;
|
||
private: System::Windows::Forms::Label^ label14;
|
||
private: System::Windows::Forms::Label^ label15;
|
||
private: System::Windows::Forms::GroupBox^ groupBox5;
|
||
private: System::Windows::Forms::Button^ button_RR;
|
||
private: System::Windows::Forms::Button^ button_LL;
|
||
|
||
|
||
private: System::Windows::Forms::Button^ button_MR;
|
||
|
||
private: System::Windows::Forms::Button^ button_ML;
|
||
private: System::Windows::Forms::Button^ button_DD;
|
||
|
||
|
||
private: System::Windows::Forms::Button^ button_UU;
|
||
|
||
private: System::Windows::Forms::TrackBar^ trackBar_Power;
|
||
private: System::Windows::Forms::Label^ label_Pow;
|
||
protected:
|
||
|
||
private:
|
||
/// <summary>
|
||
/// Обязательная переменная конструктора.
|
||
/// </summary>
|
||
System::ComponentModel::Container ^components;
|
||
|
||
#pragma region Windows Form Designer generated code
|
||
/// <summary>
|
||
/// Требуемый метод для поддержки конструктора — не изменяйте
|
||
/// содержимое этого метода с помощью редактора кода.
|
||
/// </summary>
|
||
void InitializeComponent(void)
|
||
{
|
||
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
|
||
this->Addr = (gcnew System::Windows::Forms::Label());
|
||
this->button_Connect = (gcnew System::Windows::Forms::Button());
|
||
this->numericUpDown_Server_Port = (gcnew System::Windows::Forms::NumericUpDown());
|
||
this->textBox_Server_Addr = (gcnew System::Windows::Forms::TextBox());
|
||
this->Port = (gcnew System::Windows::Forms::Label());
|
||
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
|
||
this->label_Acc_Z = (gcnew System::Windows::Forms::Label());
|
||
this->label_Acc_Y = (gcnew System::Windows::Forms::Label());
|
||
this->label_Acc_X = (gcnew System::Windows::Forms::Label());
|
||
this->label3 = (gcnew System::Windows::Forms::Label());
|
||
this->label2 = (gcnew System::Windows::Forms::Label());
|
||
this->label1 = (gcnew System::Windows::Forms::Label());
|
||
this->backgroundWorker1 = (gcnew System::ComponentModel::BackgroundWorker());
|
||
this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
|
||
this->label_Gyr_Z = (gcnew System::Windows::Forms::Label());
|
||
this->label_Gyr_Y = (gcnew System::Windows::Forms::Label());
|
||
this->label_Gyr_X = (gcnew System::Windows::Forms::Label());
|
||
this->label7 = (gcnew System::Windows::Forms::Label());
|
||
this->label8 = (gcnew System::Windows::Forms::Label());
|
||
this->label9 = (gcnew System::Windows::Forms::Label());
|
||
this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
|
||
this->label_Pos_L = (gcnew System::Windows::Forms::Label());
|
||
this->label_Pos_Y = (gcnew System::Windows::Forms::Label());
|
||
this->label_Pos_X = (gcnew System::Windows::Forms::Label());
|
||
this->label13 = (gcnew System::Windows::Forms::Label());
|
||
this->label14 = (gcnew System::Windows::Forms::Label());
|
||
this->label15 = (gcnew System::Windows::Forms::Label());
|
||
this->groupBox5 = (gcnew System::Windows::Forms::GroupBox());
|
||
this->label_Pow = (gcnew System::Windows::Forms::Label());
|
||
this->button_RR = (gcnew System::Windows::Forms::Button());
|
||
this->button_LL = (gcnew System::Windows::Forms::Button());
|
||
this->button_MR = (gcnew System::Windows::Forms::Button());
|
||
this->button_ML = (gcnew System::Windows::Forms::Button());
|
||
this->button_DD = (gcnew System::Windows::Forms::Button());
|
||
this->button_UU = (gcnew System::Windows::Forms::Button());
|
||
this->trackBar_Power = (gcnew System::Windows::Forms::TrackBar());
|
||
this->groupBox1->SuspendLayout();
|
||
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->numericUpDown_Server_Port))->BeginInit();
|
||
this->groupBox2->SuspendLayout();
|
||
this->groupBox3->SuspendLayout();
|
||
this->groupBox4->SuspendLayout();
|
||
this->groupBox5->SuspendLayout();
|
||
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->trackBar_Power))->BeginInit();
|
||
this->SuspendLayout();
|
||
//
|
||
// groupBox1
|
||
//
|
||
this->groupBox1->Controls->Add(this->Addr);
|
||
this->groupBox1->Controls->Add(this->button_Connect);
|
||
this->groupBox1->Controls->Add(this->numericUpDown_Server_Port);
|
||
this->groupBox1->Controls->Add(this->textBox_Server_Addr);
|
||
this->groupBox1->Controls->Add(this->Port);
|
||
this->groupBox1->Dock = System::Windows::Forms::DockStyle::Top;
|
||
this->groupBox1->Location = System::Drawing::Point(0, 0);
|
||
this->groupBox1->Name = L"groupBox1";
|
||
this->groupBox1->Size = System::Drawing::Size(256, 89);
|
||
this->groupBox1->TabIndex = 0;
|
||
this->groupBox1->TabStop = false;
|
||
this->groupBox1->Text = L"Server";
|
||
//
|
||
// Addr
|
||
//
|
||
this->Addr->AutoSize = true;
|
||
this->Addr->Location = System::Drawing::Point(4, 21);
|
||
this->Addr->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->Addr->Name = L"Addr";
|
||
this->Addr->Size = System::Drawing::Size(32, 13);
|
||
this->Addr->TabIndex = 5;
|
||
this->Addr->Text = L"Addr:";
|
||
//
|
||
// button_Connect
|
||
//
|
||
this->button_Connect->Location = System::Drawing::Point(115, 54);
|
||
this->button_Connect->Margin = System::Windows::Forms::Padding(2);
|
||
this->button_Connect->Name = L"button_Connect";
|
||
this->button_Connect->Size = System::Drawing::Size(87, 16);
|
||
this->button_Connect->TabIndex = 4;
|
||
this->button_Connect->Text = L"Connect";
|
||
this->button_Connect->UseVisualStyleBackColor = true;
|
||
//
|
||
// numericUpDown_Server_Port
|
||
//
|
||
this->numericUpDown_Server_Port->Location = System::Drawing::Point(42, 54);
|
||
this->numericUpDown_Server_Port->Margin = System::Windows::Forms::Padding(2);
|
||
this->numericUpDown_Server_Port->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 65000, 0, 0, 0 });
|
||
this->numericUpDown_Server_Port->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1, 0, 0, 0 });
|
||
this->numericUpDown_Server_Port->Name = L"numericUpDown_Server_Port";
|
||
this->numericUpDown_Server_Port->Size = System::Drawing::Size(70, 20);
|
||
this->numericUpDown_Server_Port->TabIndex = 3;
|
||
this->numericUpDown_Server_Port->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) { 1001, 0, 0, 0 });
|
||
//
|
||
// textBox_Server_Addr
|
||
//
|
||
this->textBox_Server_Addr->Location = System::Drawing::Point(42, 19);
|
||
this->textBox_Server_Addr->Margin = System::Windows::Forms::Padding(2);
|
||
this->textBox_Server_Addr->Name = L"textBox_Server_Addr";
|
||
this->textBox_Server_Addr->Size = System::Drawing::Size(162, 20);
|
||
this->textBox_Server_Addr->TabIndex = 2;
|
||
this->textBox_Server_Addr->Text = L"127.0.0.1";
|
||
//
|
||
// Port
|
||
//
|
||
this->Port->AutoSize = true;
|
||
this->Port->Location = System::Drawing::Point(4, 57);
|
||
this->Port->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->Port->Name = L"Port";
|
||
this->Port->Size = System::Drawing::Size(29, 13);
|
||
this->Port->TabIndex = 1;
|
||
this->Port->Text = L"Port:";
|
||
//
|
||
// groupBox2
|
||
//
|
||
this->groupBox2->Controls->Add(this->label_Acc_Z);
|
||
this->groupBox2->Controls->Add(this->label_Acc_Y);
|
||
this->groupBox2->Controls->Add(this->label_Acc_X);
|
||
this->groupBox2->Controls->Add(this->label3);
|
||
this->groupBox2->Controls->Add(this->label2);
|
||
this->groupBox2->Controls->Add(this->label1);
|
||
this->groupBox2->Location = System::Drawing::Point(6, 94);
|
||
this->groupBox2->Margin = System::Windows::Forms::Padding(2);
|
||
this->groupBox2->Name = L"groupBox2";
|
||
this->groupBox2->Padding = System::Windows::Forms::Padding(2);
|
||
this->groupBox2->Size = System::Drawing::Size(76, 111);
|
||
this->groupBox2->TabIndex = 1;
|
||
this->groupBox2->TabStop = false;
|
||
this->groupBox2->Text = L"Acc";
|
||
//
|
||
// label_Acc_Z
|
||
//
|
||
this->label_Acc_Z->AutoSize = true;
|
||
this->label_Acc_Z->Location = System::Drawing::Point(17, 79);
|
||
this->label_Acc_Z->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Acc_Z->Name = L"label_Acc_Z";
|
||
this->label_Acc_Z->Size = System::Drawing::Size(13, 13);
|
||
this->label_Acc_Z->TabIndex = 5;
|
||
this->label_Acc_Z->Text = L"0";
|
||
//
|
||
// label_Acc_Y
|
||
//
|
||
this->label_Acc_Y->AutoSize = true;
|
||
this->label_Acc_Y->Location = System::Drawing::Point(17, 49);
|
||
this->label_Acc_Y->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Acc_Y->Name = L"label_Acc_Y";
|
||
this->label_Acc_Y->Size = System::Drawing::Size(13, 13);
|
||
this->label_Acc_Y->TabIndex = 4;
|
||
this->label_Acc_Y->Text = L"0";
|
||
//
|
||
// label_Acc_X
|
||
//
|
||
this->label_Acc_X->AutoSize = true;
|
||
this->label_Acc_X->Location = System::Drawing::Point(17, 16);
|
||
this->label_Acc_X->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Acc_X->Name = L"label_Acc_X";
|
||
this->label_Acc_X->Size = System::Drawing::Size(13, 13);
|
||
this->label_Acc_X->TabIndex = 3;
|
||
this->label_Acc_X->Text = L"0";
|
||
//
|
||
// label3
|
||
//
|
||
this->label3->AutoSize = true;
|
||
this->label3->Location = System::Drawing::Point(4, 79);
|
||
this->label3->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label3->Name = L"label3";
|
||
this->label3->Size = System::Drawing::Size(20, 13);
|
||
this->label3->TabIndex = 2;
|
||
this->label3->Text = L"Z: ";
|
||
//
|
||
// label2
|
||
//
|
||
this->label2->AutoSize = true;
|
||
this->label2->Location = System::Drawing::Point(3, 49);
|
||
this->label2->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label2->Name = L"label2";
|
||
this->label2->Size = System::Drawing::Size(20, 13);
|
||
this->label2->TabIndex = 1;
|
||
this->label2->Text = L"Y: ";
|
||
//
|
||
// label1
|
||
//
|
||
this->label1->AutoSize = true;
|
||
this->label1->Location = System::Drawing::Point(4, 16);
|
||
this->label1->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label1->Name = L"label1";
|
||
this->label1->Size = System::Drawing::Size(20, 13);
|
||
this->label1->TabIndex = 0;
|
||
this->label1->Text = L"X: ";
|
||
//
|
||
// groupBox3
|
||
//
|
||
this->groupBox3->Controls->Add(this->label_Gyr_Z);
|
||
this->groupBox3->Controls->Add(this->label_Gyr_Y);
|
||
this->groupBox3->Controls->Add(this->label_Gyr_X);
|
||
this->groupBox3->Controls->Add(this->label7);
|
||
this->groupBox3->Controls->Add(this->label8);
|
||
this->groupBox3->Controls->Add(this->label9);
|
||
this->groupBox3->Location = System::Drawing::Point(92, 94);
|
||
this->groupBox3->Margin = System::Windows::Forms::Padding(2);
|
||
this->groupBox3->Name = L"groupBox3";
|
||
this->groupBox3->Padding = System::Windows::Forms::Padding(2);
|
||
this->groupBox3->Size = System::Drawing::Size(72, 111);
|
||
this->groupBox3->TabIndex = 6;
|
||
this->groupBox3->TabStop = false;
|
||
this->groupBox3->Text = L"Gyr";
|
||
//
|
||
// label_Gyr_Z
|
||
//
|
||
this->label_Gyr_Z->AutoSize = true;
|
||
this->label_Gyr_Z->Location = System::Drawing::Point(17, 79);
|
||
this->label_Gyr_Z->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Gyr_Z->Name = L"label_Gyr_Z";
|
||
this->label_Gyr_Z->Size = System::Drawing::Size(13, 13);
|
||
this->label_Gyr_Z->TabIndex = 5;
|
||
this->label_Gyr_Z->Text = L"0";
|
||
//
|
||
// label_Gyr_Y
|
||
//
|
||
this->label_Gyr_Y->AutoSize = true;
|
||
this->label_Gyr_Y->Location = System::Drawing::Point(17, 49);
|
||
this->label_Gyr_Y->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Gyr_Y->Name = L"label_Gyr_Y";
|
||
this->label_Gyr_Y->Size = System::Drawing::Size(13, 13);
|
||
this->label_Gyr_Y->TabIndex = 4;
|
||
this->label_Gyr_Y->Text = L"0";
|
||
//
|
||
// label_Gyr_X
|
||
//
|
||
this->label_Gyr_X->AutoSize = true;
|
||
this->label_Gyr_X->Location = System::Drawing::Point(17, 16);
|
||
this->label_Gyr_X->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Gyr_X->Name = L"label_Gyr_X";
|
||
this->label_Gyr_X->Size = System::Drawing::Size(13, 13);
|
||
this->label_Gyr_X->TabIndex = 3;
|
||
this->label_Gyr_X->Text = L"0";
|
||
//
|
||
// label7
|
||
//
|
||
this->label7->AutoSize = true;
|
||
this->label7->Location = System::Drawing::Point(4, 79);
|
||
this->label7->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label7->Name = L"label7";
|
||
this->label7->Size = System::Drawing::Size(20, 13);
|
||
this->label7->TabIndex = 2;
|
||
this->label7->Text = L"Z: ";
|
||
//
|
||
// label8
|
||
//
|
||
this->label8->AutoSize = true;
|
||
this->label8->Location = System::Drawing::Point(3, 49);
|
||
this->label8->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label8->Name = L"label8";
|
||
this->label8->Size = System::Drawing::Size(20, 13);
|
||
this->label8->TabIndex = 1;
|
||
this->label8->Text = L"Y: ";
|
||
//
|
||
// label9
|
||
//
|
||
this->label9->AutoSize = true;
|
||
this->label9->Location = System::Drawing::Point(4, 16);
|
||
this->label9->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label9->Name = L"label9";
|
||
this->label9->Size = System::Drawing::Size(20, 13);
|
||
this->label9->TabIndex = 0;
|
||
this->label9->Text = L"X: ";
|
||
//
|
||
// groupBox4
|
||
//
|
||
this->groupBox4->Controls->Add(this->label_Pos_L);
|
||
this->groupBox4->Controls->Add(this->label_Pos_Y);
|
||
this->groupBox4->Controls->Add(this->label_Pos_X);
|
||
this->groupBox4->Controls->Add(this->label13);
|
||
this->groupBox4->Controls->Add(this->label14);
|
||
this->groupBox4->Controls->Add(this->label15);
|
||
this->groupBox4->Location = System::Drawing::Point(177, 94);
|
||
this->groupBox4->Margin = System::Windows::Forms::Padding(2);
|
||
this->groupBox4->Name = L"groupBox4";
|
||
this->groupBox4->Padding = System::Windows::Forms::Padding(2);
|
||
this->groupBox4->Size = System::Drawing::Size(72, 111);
|
||
this->groupBox4->TabIndex = 7;
|
||
this->groupBox4->TabStop = false;
|
||
this->groupBox4->Text = L"Pos";
|
||
//
|
||
// label_Pos_L
|
||
//
|
||
this->label_Pos_L->AutoSize = true;
|
||
this->label_Pos_L->Location = System::Drawing::Point(17, 79);
|
||
this->label_Pos_L->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Pos_L->Name = L"label_Pos_L";
|
||
this->label_Pos_L->Size = System::Drawing::Size(13, 13);
|
||
this->label_Pos_L->TabIndex = 5;
|
||
this->label_Pos_L->Text = L"0";
|
||
//
|
||
// label_Pos_Y
|
||
//
|
||
this->label_Pos_Y->AutoSize = true;
|
||
this->label_Pos_Y->Location = System::Drawing::Point(17, 49);
|
||
this->label_Pos_Y->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Pos_Y->Name = L"label_Pos_Y";
|
||
this->label_Pos_Y->Size = System::Drawing::Size(13, 13);
|
||
this->label_Pos_Y->TabIndex = 4;
|
||
this->label_Pos_Y->Text = L"0";
|
||
//
|
||
// label_Pos_X
|
||
//
|
||
this->label_Pos_X->AutoSize = true;
|
||
this->label_Pos_X->Location = System::Drawing::Point(17, 16);
|
||
this->label_Pos_X->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label_Pos_X->Name = L"label_Pos_X";
|
||
this->label_Pos_X->Size = System::Drawing::Size(13, 13);
|
||
this->label_Pos_X->TabIndex = 3;
|
||
this->label_Pos_X->Text = L"0";
|
||
//
|
||
// label13
|
||
//
|
||
this->label13->AutoSize = true;
|
||
this->label13->Location = System::Drawing::Point(4, 79);
|
||
this->label13->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label13->Name = L"label13";
|
||
this->label13->Size = System::Drawing::Size(16, 13);
|
||
this->label13->TabIndex = 2;
|
||
this->label13->Text = L"L:";
|
||
//
|
||
// label14
|
||
//
|
||
this->label14->AutoSize = true;
|
||
this->label14->Location = System::Drawing::Point(3, 49);
|
||
this->label14->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label14->Name = L"label14";
|
||
this->label14->Size = System::Drawing::Size(20, 13);
|
||
this->label14->TabIndex = 1;
|
||
this->label14->Text = L"Y: ";
|
||
//
|
||
// label15
|
||
//
|
||
this->label15->AutoSize = true;
|
||
this->label15->Location = System::Drawing::Point(4, 16);
|
||
this->label15->Margin = System::Windows::Forms::Padding(2, 0, 2, 0);
|
||
this->label15->Name = L"label15";
|
||
this->label15->Size = System::Drawing::Size(20, 13);
|
||
this->label15->TabIndex = 0;
|
||
this->label15->Text = L"X: ";
|
||
//
|
||
// groupBox5
|
||
//
|
||
this->groupBox5->Controls->Add(this->label_Pow);
|
||
this->groupBox5->Controls->Add(this->button_RR);
|
||
this->groupBox5->Controls->Add(this->button_LL);
|
||
this->groupBox5->Controls->Add(this->button_MR);
|
||
this->groupBox5->Controls->Add(this->button_ML);
|
||
this->groupBox5->Controls->Add(this->button_DD);
|
||
this->groupBox5->Controls->Add(this->button_UU);
|
||
this->groupBox5->Controls->Add(this->trackBar_Power);
|
||
this->groupBox5->Location = System::Drawing::Point(6, 207);
|
||
this->groupBox5->Margin = System::Windows::Forms::Padding(2);
|
||
this->groupBox5->Name = L"groupBox5";
|
||
this->groupBox5->Padding = System::Windows::Forms::Padding(2);
|
||
this->groupBox5->Size = System::Drawing::Size(244, 282);
|
||
this->groupBox5->TabIndex = 8;
|
||
this->groupBox5->TabStop = false;
|
||
//
|
||
// label_Pow
|
||
//
|
||
this->label_Pow->AutoSize = true;
|
||
this->label_Pow->Location = System::Drawing::Point(103, 208);
|
||
this->label_Pow->Name = L"label_Pow";
|
||
this->label_Pow->Size = System::Drawing::Size(13, 13);
|
||
this->label_Pow->TabIndex = 10;
|
||
this->label_Pow->Text = L"0";
|
||
//
|
||
// button_RR
|
||
//
|
||
this->button_RR->Location = System::Drawing::Point(171, 134);
|
||
this->button_RR->Margin = System::Windows::Forms::Padding(2);
|
||
this->button_RR->Name = L"button_RR";
|
||
this->button_RR->Size = System::Drawing::Size(58, 20);
|
||
this->button_RR->TabIndex = 9;
|
||
this->button_RR->Text = L"RR";
|
||
this->button_RR->UseVisualStyleBackColor = true;
|
||
this->button_RR->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &FormMain::button_RR_MouseDown);
|
||
//
|
||
// button_LL
|
||
//
|
||
this->button_LL->Location = System::Drawing::Point(6, 134);
|
||
this->button_LL->Margin = System::Windows::Forms::Padding(2);
|
||
this->button_LL->Name = L"button_LL";
|
||
this->button_LL->Size = System::Drawing::Size(58, 20);
|
||
this->button_LL->TabIndex = 8;
|
||
this->button_LL->Text = L"LL";
|
||
this->button_LL->UseVisualStyleBackColor = true;
|
||
this->button_LL->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &FormMain::button_LL_MouseDown);
|
||
//
|
||
// button_MR
|
||
//
|
||
this->button_MR->Location = System::Drawing::Point(171, 30);
|
||
this->button_MR->Margin = System::Windows::Forms::Padding(2);
|
||
this->button_MR->Name = L"button_MR";
|
||
this->button_MR->Size = System::Drawing::Size(58, 20);
|
||
this->button_MR->TabIndex = 7;
|
||
this->button_MR->Text = L"->";
|
||
this->button_MR->UseVisualStyleBackColor = true;
|
||
this->button_MR->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &FormMain::button_MR_MouseDown);
|
||
//
|
||
// button_ML
|
||
//
|
||
this->button_ML->Location = System::Drawing::Point(6, 30);
|
||
this->button_ML->Margin = System::Windows::Forms::Padding(2);
|
||
this->button_ML->Name = L"button_ML";
|
||
this->button_ML->Size = System::Drawing::Size(58, 20);
|
||
this->button_ML->TabIndex = 6;
|
||
this->button_ML->Text = L"<-";
|
||
this->button_ML->UseVisualStyleBackColor = true;
|
||
this->button_ML->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &FormMain::button_ML_MouseDown);
|
||
//
|
||
// button_DD
|
||
//
|
||
this->button_DD->Location = System::Drawing::Point(80, 250);
|
||
this->button_DD->Margin = System::Windows::Forms::Padding(2);
|
||
this->button_DD->Name = L"button_DD";
|
||
this->button_DD->Size = System::Drawing::Size(58, 20);
|
||
this->button_DD->TabIndex = 5;
|
||
this->button_DD->Text = L"DD";
|
||
this->button_DD->UseVisualStyleBackColor = true;
|
||
this->button_DD->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &FormMain::button_DD_MouseDown);
|
||
//
|
||
// button_UU
|
||
//
|
||
this->button_UU->Location = System::Drawing::Point(86, 30);
|
||
this->button_UU->Margin = System::Windows::Forms::Padding(2);
|
||
this->button_UU->Name = L"button_UU";
|
||
this->button_UU->Size = System::Drawing::Size(58, 20);
|
||
this->button_UU->TabIndex = 4;
|
||
this->button_UU->Text = L"UU";
|
||
this->button_UU->UseVisualStyleBackColor = true;
|
||
this->button_UU->MouseDown += gcnew System::Windows::Forms::MouseEventHandler(this, &FormMain::button_UU_MouseDown);
|
||
//
|
||
// trackBar_Power
|
||
//
|
||
this->trackBar_Power->Location = System::Drawing::Point(93, 69);
|
||
this->trackBar_Power->Margin = System::Windows::Forms::Padding(2);
|
||
this->trackBar_Power->Maximum = 100;
|
||
this->trackBar_Power->Name = L"trackBar_Power";
|
||
this->trackBar_Power->Orientation = System::Windows::Forms::Orientation::Vertical;
|
||
this->trackBar_Power->RightToLeft = System::Windows::Forms::RightToLeft::No;
|
||
this->trackBar_Power->Size = System::Drawing::Size(45, 137);
|
||
this->trackBar_Power->TabIndex = 0;
|
||
this->trackBar_Power->Scroll += gcnew System::EventHandler(this, &FormMain::trackBar_Power_Scroll);
|
||
//
|
||
// FormMain
|
||
//
|
||
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
|
||
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
|
||
this->ClientSize = System::Drawing::Size(256, 496);
|
||
this->Controls->Add(this->groupBox5);
|
||
this->Controls->Add(this->groupBox4);
|
||
this->Controls->Add(this->groupBox3);
|
||
this->Controls->Add(this->groupBox2);
|
||
this->Controls->Add(this->groupBox1);
|
||
this->Margin = System::Windows::Forms::Padding(2);
|
||
this->Name = L"FormMain";
|
||
this->Text = L"FormMain";
|
||
this->groupBox1->ResumeLayout(false);
|
||
this->groupBox1->PerformLayout();
|
||
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->numericUpDown_Server_Port))->EndInit();
|
||
this->groupBox2->ResumeLayout(false);
|
||
this->groupBox2->PerformLayout();
|
||
this->groupBox3->ResumeLayout(false);
|
||
this->groupBox3->PerformLayout();
|
||
this->groupBox4->ResumeLayout(false);
|
||
this->groupBox4->PerformLayout();
|
||
this->groupBox5->ResumeLayout(false);
|
||
this->groupBox5->PerformLayout();
|
||
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->trackBar_Power))->EndInit();
|
||
this->ResumeLayout(false);
|
||
|
||
}
|
||
#pragma endregion
|
||
|
||
|
||
private: System::Void trackBar_Power_Scroll(System::Object^ sender, System::EventArgs^ e)
|
||
{
|
||
float pow = (float)trackBar_Power->Value / 100;
|
||
|
||
label_Pow->Text = pow.ToString();
|
||
}
|
||
|
||
|
||
|
||
|
||
|
||
|
||
private: System::Void button_RR_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
|
||
{
|
||
|
||
}
|
||
private: System::Void button_DD_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
|
||
{
|
||
|
||
}
|
||
private: System::Void button_LL_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
|
||
{
|
||
|
||
}
|
||
private: System::Void button_ML_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
|
||
{
|
||
|
||
}
|
||
private: System::Void button_UU_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
|
||
{
|
||
|
||
}
|
||
private: System::Void button_MR_MouseDown(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e)
|
||
{
|
||
|
||
}
|
||
};
|
||
}
|