Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- namespace SymulatorWydobycia {
- using namespace System;
- using namespace System::ComponentModel;
- using namespace System::Collections;
- using namespace System::Windows::Forms;
- using namespace System::Data;
- using namespace System::Drawing;
- // flagi sterowania
- int flaga1; // tasma zwalowarki
- int flaga2; // tasma elektrowni
- int flaga3; // koparka
- int flaga4;
- int flaga5;
- int flaga6;
- Void sterowanie_zwalowarka();
- Void sterowanie_elektrownia();
- Void sterowanie_koparka();
- /// <summary>
- /// Podsumowanie informacji o okno
- /// </summary>
- public ref class okno : public System::Windows::Forms::Form
- {
- public:
- okno(void)
- {
- InitializeComponent();
- //
- //TODO: W tym miejscu dodaj kod konstruktora
- //
- }
- protected:
- /// <summary>
- /// Wyczyść wszystkie używane zasoby.
- /// </summary>
- ~okno()
- {
- if (components)
- {
- delete components;
- }
- }
- private: System::Windows::Forms::Button^ button1;
- private: System::Windows::Forms::Button^ startZW;
- private: System::Windows::Forms::Button^ stopZW;
- private: System::Windows::Forms::Button^ stopPZ;
- private: System::Windows::Forms::Button^ startPZ;
- private: System::Windows::Forms::Button^ stopPE;
- private: System::Windows::Forms::Button^ startPE;
- private: System::Windows::Forms::Button^ stopPR;
- private: System::Windows::Forms::Button^ startPR;
- private: System::Windows::Forms::Button^ stopK;
- private: System::Windows::Forms::Button^ startK;
- private: System::Windows::Forms::Button^ button12;
- private: System::Windows::Forms::Button^ button13;
- private: System::Windows::Forms::Label^ label1;
- private: System::Windows::Forms::Label^ label2;
- private: System::Windows::Forms::Label^ label3;
- private: System::Windows::Forms::Label^ label4;
- private: System::Windows::Forms::Label^ label5;
- private: System::Windows::Forms::Label^ label6;
- private: System::Windows::Forms::Label^ label7;
- private: System::Windows::Forms::Label^ label8;
- private: System::Windows::Forms::Label^ label9;
- private: System::Windows::Forms::Label^ label10;
- private: System::Windows::Forms::Label^ label11;
- private: System::Windows::Forms::Label^ label12;
- private: System::Windows::Forms::Label^ label13;
- private: System::Windows::Forms::Label^ label14;
- private: System::Windows::Forms::Label^ label15;
- private: System::Windows::Forms::Label^ label16;
- private: System::Windows::Forms::Label^ label17;
- private: System::Windows::Forms::Label^ label18;
- private: System::Windows::Forms::Label^ label19;
- private: System::Windows::Forms::ImageList^ koparka_imglist;
- private: System::Windows::Forms::PictureBox^ koparka;
- private: System::Windows::Forms::ImageList^ tasma1;
- private: System::Windows::Forms::PictureBox^ tasma_koparka;
- private: System::Windows::Forms::ImageList^ stacja;
- private: System::Windows::Forms::PictureBox^ pictureBox3;
- private: System::Windows::Forms::PictureBox^ tasma_zwalowarka;
- private: System::Windows::Forms::ImageList^ zwalowarka_imglist;
- private: System::Windows::Forms::PictureBox^ pictureBox5;
- private: System::Windows::Forms::ImageList^ tasma2;
- private: System::Windows::Forms::PictureBox^ tasma_elekt;
- private: System::Windows::Forms::ImageList^ elektrownia;
- private: System::Windows::Forms::PictureBox^ elektrownia_gif;
- private: System::ComponentModel::IContainer^ components;
- protected:
- private:
- /// <summary>
- /// Wymagana zmienna projektanta.
- /// </summary>
- #pragma region Windows Form Designer generated code
- /// <summary>
- /// Metoda wymagana do obsługi projektanta — nie należy modyfikować
- /// jej zawartości w edytorze kodu.
- /// </summary>
- void InitializeComponent(void)
- {
- this->components = (gcnew System::ComponentModel::Container());
- System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(okno::typeid));
- this->button1 = (gcnew System::Windows::Forms::Button());
- this->startZW = (gcnew System::Windows::Forms::Button());
- this->stopZW = (gcnew System::Windows::Forms::Button());
- this->stopPZ = (gcnew System::Windows::Forms::Button());
- this->startPZ = (gcnew System::Windows::Forms::Button());
- this->stopPE = (gcnew System::Windows::Forms::Button());
- this->startPE = (gcnew System::Windows::Forms::Button());
- this->stopPR = (gcnew System::Windows::Forms::Button());
- this->startPR = (gcnew System::Windows::Forms::Button());
- this->stopK = (gcnew System::Windows::Forms::Button());
- this->startK = (gcnew System::Windows::Forms::Button());
- this->button12 = (gcnew System::Windows::Forms::Button());
- this->button13 = (gcnew System::Windows::Forms::Button());
- this->label1 = (gcnew System::Windows::Forms::Label());
- this->label2 = (gcnew System::Windows::Forms::Label());
- this->label3 = (gcnew System::Windows::Forms::Label());
- this->label4 = (gcnew System::Windows::Forms::Label());
- this->label5 = (gcnew System::Windows::Forms::Label());
- this->label6 = (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->label10 = (gcnew System::Windows::Forms::Label());
- this->label11 = (gcnew System::Windows::Forms::Label());
- this->label12 = (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->label16 = (gcnew System::Windows::Forms::Label());
- this->label17 = (gcnew System::Windows::Forms::Label());
- this->label18 = (gcnew System::Windows::Forms::Label());
- this->label19 = (gcnew System::Windows::Forms::Label());
- this->koparka_imglist = (gcnew System::Windows::Forms::ImageList(this->components));
- this->koparka = (gcnew System::Windows::Forms::PictureBox());
- this->tasma1 = (gcnew System::Windows::Forms::ImageList(this->components));
- this->tasma_koparka = (gcnew System::Windows::Forms::PictureBox());
- this->stacja = (gcnew System::Windows::Forms::ImageList(this->components));
- this->pictureBox3 = (gcnew System::Windows::Forms::PictureBox());
- this->tasma_zwalowarka = (gcnew System::Windows::Forms::PictureBox());
- this->zwalowarka_imglist = (gcnew System::Windows::Forms::ImageList(this->components));
- this->pictureBox5 = (gcnew System::Windows::Forms::PictureBox());
- this->tasma2 = (gcnew System::Windows::Forms::ImageList(this->components));
- this->tasma_elekt = (gcnew System::Windows::Forms::PictureBox());
- this->elektrownia = (gcnew System::Windows::Forms::ImageList(this->components));
- this->elektrownia_gif = (gcnew System::Windows::Forms::PictureBox());
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->koparka))->BeginInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_koparka))->BeginInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox3))->BeginInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_zwalowarka))->BeginInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox5))->BeginInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_elekt))->BeginInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->elektrownia_gif))->BeginInit();
- this->SuspendLayout();
- //
- // button1
- //
- this->button1->Enabled = false;
- this->button1->Location = System::Drawing::Point(0, 549);
- this->button1->Name = L"button1";
- this->button1->Size = System::Drawing::Size(883, 10);
- this->button1->TabIndex = 0;
- this->button1->Text = L"button1";
- this->button1->UseVisualStyleBackColor = true;
- //
- // startZW
- //
- this->startZW->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startZW.BackgroundImage")));
- this->startZW->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->startZW->Location = System::Drawing::Point(344, 655);
- this->startZW->Name = L"startZW";
- this->startZW->Size = System::Drawing::Size(43, 39);
- this->startZW->TabIndex = 2;
- this->startZW->UseVisualStyleBackColor = true;
- this->startZW->Click += gcnew System::EventHandler(this, &okno::startZW_Click);
- //
- // stopZW
- //
- this->stopZW->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopZW.BackgroundImage")));
- this->stopZW->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->stopZW->Location = System::Drawing::Point(446, 655);
- this->stopZW->Name = L"stopZW";
- this->stopZW->Size = System::Drawing::Size(43, 39);
- this->stopZW->TabIndex = 3;
- this->stopZW->UseVisualStyleBackColor = true;
- this->stopZW->Click += gcnew System::EventHandler(this, &okno::stopZW_Click);
- //
- // stopPZ
- //
- this->stopPZ->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopPZ.BackgroundImage")));
- this->stopPZ->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->stopPZ->Location = System::Drawing::Point(446, 712);
- this->stopPZ->Name = L"stopPZ";
- this->stopPZ->Size = System::Drawing::Size(43, 39);
- this->stopPZ->TabIndex = 5;
- this->stopPZ->UseVisualStyleBackColor = true;
- this->stopPZ->Click += gcnew System::EventHandler(this, &okno::button4_Click);
- //
- // startPZ
- //
- this->startPZ->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startPZ.BackgroundImage")));
- this->startPZ->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->startPZ->Location = System::Drawing::Point(344, 712);
- this->startPZ->Name = L"startPZ";
- this->startPZ->Size = System::Drawing::Size(43, 39);
- this->startPZ->TabIndex = 4;
- this->startPZ->UseVisualStyleBackColor = true;
- //
- // stopPE
- //
- this->stopPE->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopPE.BackgroundImage")));
- this->stopPE->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->stopPE->Location = System::Drawing::Point(446, 766);
- this->stopPE->Name = L"stopPE";
- this->stopPE->Size = System::Drawing::Size(43, 39);
- this->stopPE->TabIndex = 7;
- this->stopPE->UseVisualStyleBackColor = true;
- this->stopPE->Click += gcnew System::EventHandler(this, &okno::button6_Click);
- //
- // startPE
- //
- this->startPE->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startPE.BackgroundImage")));
- this->startPE->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->startPE->Location = System::Drawing::Point(344, 766);
- this->startPE->Name = L"startPE";
- this->startPE->Size = System::Drawing::Size(43, 39);
- this->startPE->TabIndex = 6;
- this->startPE->UseVisualStyleBackColor = true;
- this->startPE->Click += gcnew System::EventHandler(this, &okno::startPE_Click);
- //
- // stopPR
- //
- this->stopPR->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopPR.BackgroundImage")));
- this->stopPR->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->stopPR->Location = System::Drawing::Point(446, 822);
- this->stopPR->Name = L"stopPR";
- this->stopPR->Size = System::Drawing::Size(43, 39);
- this->stopPR->TabIndex = 9;
- this->stopPR->UseVisualStyleBackColor = true;
- //
- // startPR
- //
- this->startPR->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startPR.BackgroundImage")));
- this->startPR->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->startPR->Location = System::Drawing::Point(344, 822);
- this->startPR->Name = L"startPR";
- this->startPR->Size = System::Drawing::Size(43, 39);
- this->startPR->TabIndex = 8;
- this->startPR->UseVisualStyleBackColor = true;
- //
- // stopK
- //
- this->stopK->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopK.BackgroundImage")));
- this->stopK->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->stopK->Location = System::Drawing::Point(446, 935);
- this->stopK->Name = L"stopK";
- this->stopK->Size = System::Drawing::Size(43, 39);
- this->stopK->TabIndex = 11;
- this->stopK->UseVisualStyleBackColor = true;
- this->stopK->Click += gcnew System::EventHandler(this, &okno::button10_Click);
- //
- // startK
- //
- this->startK->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startK.BackgroundImage")));
- this->startK->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->startK->Location = System::Drawing::Point(344, 935);
- this->startK->Name = L"startK";
- this->startK->Size = System::Drawing::Size(43, 39);
- this->startK->TabIndex = 10;
- this->startK->UseVisualStyleBackColor = true;
- this->startK->Click += gcnew System::EventHandler(this, &okno::button11_Click);
- //
- // button12
- //
- this->button12->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"button12.BackgroundImage")));
- this->button12->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->button12->Location = System::Drawing::Point(47, 621);
- this->button12->Name = L"button12";
- this->button12->Size = System::Drawing::Size(129, 46);
- this->button12->TabIndex = 12;
- this->button12->UseVisualStyleBackColor = true;
- //
- // button13
- //
- this->button13->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"button13.BackgroundImage")));
- this->button13->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
- this->button13->Location = System::Drawing::Point(347, 867);
- this->button13->Name = L"button13";
- this->button13->Size = System::Drawing::Size(129, 46);
- this->button13->TabIndex = 13;
- this->button13->UseVisualStyleBackColor = true;
- //
- // label1
- //
- this->label1->AutoSize = true;
- this->label1->Location = System::Drawing::Point(344, 638);
- this->label1->Name = L"label1";
- this->label1->Size = System::Drawing::Size(43, 13);
- this->label1->TabIndex = 14;
- this->label1->Text = L"START";
- //
- // label2
- //
- this->label2->AutoSize = true;
- this->label2->Location = System::Drawing::Point(344, 697);
- this->label2->Name = L"label2";
- this->label2->Size = System::Drawing::Size(43, 13);
- this->label2->TabIndex = 15;
- this->label2->Text = L"START";
- //
- // label3
- //
- this->label3->AutoSize = true;
- this->label3->Location = System::Drawing::Point(344, 753);
- this->label3->Name = L"label3";
- this->label3->Size = System::Drawing::Size(43, 13);
- this->label3->TabIndex = 16;
- this->label3->Text = L"START";
- //
- // label4
- //
- this->label4->AutoSize = true;
- this->label4->Location = System::Drawing::Point(344, 808);
- this->label4->Name = L"label4";
- this->label4->Size = System::Drawing::Size(43, 13);
- this->label4->TabIndex = 17;
- this->label4->Text = L"START";
- this->label4->Click += gcnew System::EventHandler(this, &okno::label4_Click);
- //
- // label5
- //
- this->label5->AutoSize = true;
- this->label5->Location = System::Drawing::Point(344, 921);
- this->label5->Name = L"label5";
- this->label5->Size = System::Drawing::Size(43, 13);
- this->label5->TabIndex = 18;
- this->label5->Text = L"START";
- //
- // label6
- //
- this->label6->AutoSize = true;
- this->label6->Location = System::Drawing::Point(450, 638);
- this->label6->Name = L"label6";
- this->label6->Size = System::Drawing::Size(36, 13);
- this->label6->TabIndex = 19;
- this->label6->Text = L"STOP";
- //
- // label7
- //
- this->label7->AutoSize = true;
- this->label7->Location = System::Drawing::Point(450, 696);
- this->label7->Name = L"label7";
- this->label7->Size = System::Drawing::Size(36, 13);
- this->label7->TabIndex = 20;
- this->label7->Text = L"STOP";
- //
- // label8
- //
- this->label8->AutoSize = true;
- this->label8->Location = System::Drawing::Point(450, 753);
- this->label8->Name = L"label8";
- this->label8->Size = System::Drawing::Size(36, 13);
- this->label8->TabIndex = 21;
- this->label8->Text = L"STOP";
- //
- // label9
- //
- this->label9->AutoSize = true;
- this->label9->Location = System::Drawing::Point(450, 806);
- this->label9->Name = L"label9";
- this->label9->Size = System::Drawing::Size(36, 13);
- this->label9->TabIndex = 22;
- this->label9->Text = L"STOP";
- //
- // label10
- //
- this->label10->AutoSize = true;
- this->label10->Location = System::Drawing::Point(450, 921);
- this->label10->Name = L"label10";
- this->label10->Size = System::Drawing::Size(36, 13);
- this->label10->TabIndex = 23;
- this->label10->Text = L"STOP";
- //
- // label11
- //
- this->label11->AutoSize = true;
- this->label11->Location = System::Drawing::Point(271, 668);
- this->label11->Name = L"label11";
- this->label11->Size = System::Drawing::Size(67, 13);
- this->label11->TabIndex = 24;
- this->label11->Text = L"Zwałowarka";
- //
- // label12
- //
- this->label12->AutoSize = true;
- this->label12->Location = System::Drawing::Point(222, 725);
- this->label12->Name = L"label12";
- this->label12->Size = System::Drawing::Size(116, 13);
- this->label12->TabIndex = 25;
- this->label12->Text = L"Przenośnik zwałowarki";
- //
- // label13
- //
- this->label13->AutoSize = true;
- this->label13->Location = System::Drawing::Point(227, 779);
- this->label13->Name = L"label13";
- this->label13->Size = System::Drawing::Size(110, 13);
- this->label13->TabIndex = 26;
- this->label13->Text = L"Przenośnik elektrowni";
- //
- // label14
- //
- this->label14->AutoSize = true;
- this->label14->Location = System::Drawing::Point(218, 835);
- this->label14->Name = L"label14";
- this->label14->Size = System::Drawing::Size(120, 13);
- this->label14->TabIndex = 27;
- this->label14->Text = L"Przenośnik rozdzelający";
- //
- // label15
- //
- this->label15->AutoSize = true;
- this->label15->Location = System::Drawing::Point(291, 948);
- this->label15->Name = L"label15";
- this->label15->Size = System::Drawing::Size(47, 13);
- this->label15->TabIndex = 28;
- this->label15->Text = L"Koparka";
- //
- // label16
- //
- this->label16->AutoSize = true;
- this->label16->Location = System::Drawing::Point(249, 884);
- this->label16->Name = L"label16";
- this->label16->Size = System::Drawing::Size(88, 13);
- this->label16->TabIndex = 29;
- this->label16->Text = L"Zrzut elektrownia";
- //
- // label17
- //
- this->label17->AutoSize = true;
- this->label17->Location = System::Drawing::Point(482, 884);
- this->label17->Name = L"label17";
- this->label17->Size = System::Drawing::Size(92, 13);
- this->label17->TabIndex = 30;
- this->label17->Text = L"Zrzut zwałowarka";
- this->label17->Click += gcnew System::EventHandler(this, &okno::label17_Click);
- //
- // label18
- //
- this->label18->AutoSize = true;
- this->label18->Location = System::Drawing::Point(67, 605);
- this->label18->Name = L"label18";
- this->label18->Size = System::Drawing::Size(92, 13);
- this->label18->TabIndex = 31;
- this->label18->Text = L"Wybór sterowania";
- //
- // label19
- //
- this->label19->AutoSize = true;
- this->label19->Location = System::Drawing::Point(44, 670);
- this->label19->Name = L"label19";
- this->label19->Size = System::Drawing::Size(110, 13);
- this->label19->TabIndex = 32;
- this->label19->Text = L" AUTO/RĘCZNE";
- //
- // koparka_imglist
- //
- this->koparka_imglist->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"koparka_imglist.ImageStream")));
- this->koparka_imglist->TransparentColor = System::Drawing::Color::Transparent;
- this->koparka_imglist->Images->SetKeyName(0, L"koparka.png");
- this->koparka_imglist->Images->SetKeyName(1, L"koparka.gif");
- //
- // koparka
- //
- this->koparka->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"koparka.Image")));
- this->koparka->Location = System::Drawing::Point(21, 398);
- this->koparka->Name = L"koparka";
- this->koparka->Size = System::Drawing::Size(235, 150);
- this->koparka->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
- this->koparka->TabIndex = 33;
- this->koparka->TabStop = false;
- //
- // tasma1
- //
- this->tasma1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"tasma1.ImageStream")));
- this->tasma1->TransparentColor = System::Drawing::Color::Transparent;
- this->tasma1->Images->SetKeyName(0, L"tasma.png");
- this->tasma1->Images->SetKeyName(1, L"tasma_coal_end.gif");
- this->tasma1->Images->SetKeyName(2, L"tasma_coal_start.gif");
- this->tasma1->Images->SetKeyName(3, L"tasma_coal_work.gif");
- this->tasma1->Images->SetKeyName(4, L"tasma_sand_end.gif");
- this->tasma1->Images->SetKeyName(5, L"tasma_sand_start.gif");
- this->tasma1->Images->SetKeyName(6, L"tasma_sand_work.gif");
- this->tasma1->Images->SetKeyName(7, L"tasma_work.gif");
- //
- // tasma_koparka
- //
- this->tasma_koparka->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"tasma_koparka.Image")));
- this->tasma_koparka->Location = System::Drawing::Point(127, 311);
- this->tasma_koparka->Name = L"tasma_koparka";
- this->tasma_koparka->Size = System::Drawing::Size(149, 119);
- this->tasma_koparka->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
- this->tasma_koparka->TabIndex = 34;
- this->tasma_koparka->TabStop = false;
- //
- // stacja
- //
- this->stacja->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"stacja.ImageStream")));
- this->stacja->TransparentColor = System::Drawing::Color::Transparent;
- this->stacja->Images->SetKeyName(0, L"stacja_coal_end.gif");
- this->stacja->Images->SetKeyName(1, L"stacja_coal_start.gif");
- this->stacja->Images->SetKeyName(2, L"stacja_coal_work.gif");
- this->stacja->Images->SetKeyName(3, L"stacja_el_na_zw.gif");
- this->stacja->Images->SetKeyName(4, L"stacja_empty_el.gif");
- this->stacja->Images->SetKeyName(5, L"stacja_empty_zw.gif");
- this->stacja->Images->SetKeyName(6, L"stacja_na_zw.png");
- this->stacja->Images->SetKeyName(7, L"stacja_sand_end.gif");
- this->stacja->Images->SetKeyName(8, L"stacja_sand_start.gif");
- this->stacja->Images->SetKeyName(9, L"stacja_sand_work.gif");
- this->stacja->Images->SetKeyName(10, L"stacja_zw_na_el.gif");
- this->stacja->Images->SetKeyName(11, L"stacja_zw_na_el.png");
- //
- // pictureBox3
- //
- this->pictureBox3->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"pictureBox3.Image")));
- this->pictureBox3->Location = System::Drawing::Point(271, 186);
- this->pictureBox3->Name = L"pictureBox3";
- this->pictureBox3->Size = System::Drawing::Size(190, 159);
- this->pictureBox3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
- this->pictureBox3->TabIndex = 35;
- this->pictureBox3->TabStop = false;
- //
- // tasma_zwalowarka
- //
- this->tasma_zwalowarka->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"tasma_zwalowarka.Image")));
- this->tasma_zwalowarka->Location = System::Drawing::Point(455, 101);
- this->tasma_zwalowarka->Name = L"tasma_zwalowarka";
- this->tasma_zwalowarka->Size = System::Drawing::Size(149, 119);
- this->tasma_zwalowarka->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
- this->tasma_zwalowarka->TabIndex = 36;
- this->tasma_zwalowarka->TabStop = false;
- //
- // zwalowarka_imglist
- //
- this->zwalowarka_imglist->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"zwalowarka_imglist.ImageStream")));
- this->zwalowarka_imglist->TransparentColor = System::Drawing::Color::Transparent;
- this->zwalowarka_imglist->Images->SetKeyName(0, L"zwalowarka.png");
- this->zwalowarka_imglist->Images->SetKeyName(1, L"zwalowarka_praca.gif");
- //
- // pictureBox5
- //
- this->pictureBox5->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"pictureBox5.Image")));
- this->pictureBox5->Location = System::Drawing::Point(544, 83);
- this->pictureBox5->Name = L"pictureBox5";
- this->pictureBox5->Size = System::Drawing::Size(256, 179);
- this->pictureBox5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
- this->pictureBox5->TabIndex = 37;
- this->pictureBox5->TabStop = false;
- //
- // tasma2
- //
- this->tasma2->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"tasma2.ImageStream")));
- this->tasma2->TransparentColor = System::Drawing::Color::Transparent;
- this->tasma2->Images->SetKeyName(0, L"tasma_pusta_el.png");
- this->tasma2->Images->SetKeyName(1, L"tasma_pusta_el.gif");
- this->tasma2->Images->SetKeyName(2, L"tasma_we_end.gif");
- this->tasma2->Images->SetKeyName(3, L"tasma_we_praca.gif");
- this->tasma2->Images->SetKeyName(4, L"tasma_we_start.gif");
- //
- // tasma_elekt
- //
- this->tasma_elekt->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"tasma_elekt.Image")));
- this->tasma_elekt->Location = System::Drawing::Point(441, 236);
- this->tasma_elekt->Name = L"tasma_elekt";
- this->tasma_elekt->Size = System::Drawing::Size(163, 163);
- this->tasma_elekt->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
- this->tasma_elekt->TabIndex = 38;
- this->tasma_elekt->TabStop = false;
- //
- // elektrownia
- //
- this->elektrownia->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"elektrownia.ImageStream")));
- this->elektrownia->TransparentColor = System::Drawing::Color::Transparent;
- this->elektrownia->Images->SetKeyName(0, L"elektrownia.png");
- this->elektrownia->Images->SetKeyName(1, L"elektrownia.gif");
- //
- // elektrownia_gif
- //
- this->elektrownia_gif->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"elektrownia_gif.Image")));
- this->elektrownia_gif->Location = System::Drawing::Point(593, 292);
- this->elektrownia_gif->Name = L"elektrownia_gif";
- this->elektrownia_gif->Size = System::Drawing::Size(150, 190);
- this->elektrownia_gif->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
- this->elektrownia_gif->TabIndex = 39;
- this->elektrownia_gif->TabStop = false;
- //
- // okno
- //
- this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
- this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
- this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"$this.BackgroundImage")));
- this->ClientSize = System::Drawing::Size(884, 986);
- this->Controls->Add(this->tasma_zwalowarka);
- this->Controls->Add(this->tasma_elekt);
- this->Controls->Add(this->pictureBox3);
- this->Controls->Add(this->tasma_koparka);
- this->Controls->Add(this->koparka);
- this->Controls->Add(this->label19);
- this->Controls->Add(this->label18);
- this->Controls->Add(this->label17);
- this->Controls->Add(this->label16);
- this->Controls->Add(this->label15);
- this->Controls->Add(this->label14);
- this->Controls->Add(this->label13);
- this->Controls->Add(this->label12);
- this->Controls->Add(this->label11);
- this->Controls->Add(this->label10);
- this->Controls->Add(this->label9);
- this->Controls->Add(this->label8);
- this->Controls->Add(this->label7);
- this->Controls->Add(this->label6);
- this->Controls->Add(this->label5);
- this->Controls->Add(this->label4);
- this->Controls->Add(this->label3);
- this->Controls->Add(this->label2);
- this->Controls->Add(this->label1);
- this->Controls->Add(this->button13);
- this->Controls->Add(this->button12);
- this->Controls->Add(this->stopK);
- this->Controls->Add(this->startK);
- this->Controls->Add(this->stopPR);
- this->Controls->Add(this->startPR);
- this->Controls->Add(this->stopPE);
- this->Controls->Add(this->startPE);
- this->Controls->Add(this->stopPZ);
- this->Controls->Add(this->startPZ);
- this->Controls->Add(this->stopZW);
- this->Controls->Add(this->startZW);
- this->Controls->Add(this->button1);
- this->Controls->Add(this->pictureBox5);
- this->Controls->Add(this->elektrownia_gif);
- this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
- this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
- this->MaximizeBox = false;
- this->Name = L"okno";
- this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
- this->Text = L"Mateusz Wojewoda ";
- this->Load += gcnew System::EventHandler(this, &okno::okno_Load);
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->koparka))->EndInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_koparka))->EndInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox3))->EndInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_zwalowarka))->EndInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox5))->EndInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_elekt))->EndInit();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->elektrownia_gif))->EndInit();
- this->ResumeLayout(false);
- this->PerformLayout();
- }
- #pragma endregion
- private: System::Void okno_Load(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void button11_Click(System::Object^ sender, System::EventArgs^ e) {
- flaga3 = 1;
- sterowanie_koparka();
- }
- private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e) {
- flaga3 = 0;
- sterowanie_koparka();
- }
- private: System::Void label4_Click(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void label17_Click(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
- }
- private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {
- flaga2 = 0;
- sterowanie_elektrownia();
- }
- private: System::Void startPE_Click(System::Object^ sender, System::EventArgs^ e) {
- flaga2 = 1;
- sterowanie_elektrownia();
- }
- private: System::Void startZW_Click(System::Object^ sender, System::EventArgs^ e) {
- flaga1 = 1;
- sterowanie_zwalowarka();
- }
- private: System::Void stopZW_Click(System::Object^ sender, System::EventArgs^ e) {
- flaga1 = 0;
- sterowanie_zwalowarka();
- }
- private: Void sterowanie_zwalowarka() {
- flaga1;
- tasma_zwalowarka;
- if (flaga1 == 1){
- tasma_zwalowarka->Image = tasma1->Images[7];
- }
- if (flaga1 == 0){
- tasma_zwalowarka->Image = tasma1->Images[0];
- }
- }
- private: Void sterowanie_elektrownia() {
- flaga2;
- tasma_elekt;
- elektrownia_gif;
- if (flaga1 == 1) {
- tasma_elekt->Image = tasma2->Images[1];
- elektrownia_gif->Image = elektrownia->Images[1];
- }
- if (flaga1 == 0) {
- tasma_elekt->Image = tasma2->Images[0];
- elektrownia_gif->Image = elektrownia->Images[0];
- }
- }
- private: Void sterowanie_koparka() {
- flaga3;
- koparka;
- koparka_imglist;
- if (flaga3 == 1) {
- koparka->Image = koparka_imglist->Images[1];
- }
- if (flaga3 == 0) {
- koparka->Image = koparka_imglist->Images[0];
- }
- }
- }
- ; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement