Advertisement
vudi

Untitled

Oct 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.82 KB | None | 0 0
  1. #pragma once
  2.  
  3. namespace SymulatorWydobycia {
  4.  
  5. using namespace System;
  6. using namespace System::ComponentModel;
  7. using namespace System::Collections;
  8. using namespace System::Windows::Forms;
  9. using namespace System::Data;
  10. using namespace System::Drawing;
  11.  
  12. // flagi sterowania
  13. int flaga1; // tasma zwalowarki
  14. int flaga2; // tasma elektrowni
  15. int flaga3; // koparka
  16. int flaga4;
  17. int flaga5;
  18. int flaga6;
  19.  
  20. Void sterowanie_zwalowarka();
  21. Void sterowanie_elektrownia();
  22. Void sterowanie_koparka();
  23.  
  24. /// <summary>
  25. /// Podsumowanie informacji o okno
  26. /// </summary>
  27. public ref class okno : public System::Windows::Forms::Form
  28. {
  29.  
  30.  
  31. public:
  32. okno(void)
  33. {
  34. InitializeComponent();
  35. //
  36. //TODO: W tym miejscu dodaj kod konstruktora
  37. //
  38. }
  39.  
  40. protected:
  41. /// <summary>
  42. /// Wyczyść wszystkie używane zasoby.
  43. /// </summary>
  44. ~okno()
  45. {
  46. if (components)
  47. {
  48. delete components;
  49. }
  50. }
  51. private: System::Windows::Forms::Button^ button1;
  52. private: System::Windows::Forms::Button^ startZW;
  53. private: System::Windows::Forms::Button^ stopZW;
  54. private: System::Windows::Forms::Button^ stopPZ;
  55. private: System::Windows::Forms::Button^ startPZ;
  56. private: System::Windows::Forms::Button^ stopPE;
  57. private: System::Windows::Forms::Button^ startPE;
  58. private: System::Windows::Forms::Button^ stopPR;
  59. private: System::Windows::Forms::Button^ startPR;
  60. private: System::Windows::Forms::Button^ stopK;
  61. private: System::Windows::Forms::Button^ startK;
  62. private: System::Windows::Forms::Button^ button12;
  63. private: System::Windows::Forms::Button^ button13;
  64. private: System::Windows::Forms::Label^ label1;
  65. private: System::Windows::Forms::Label^ label2;
  66. private: System::Windows::Forms::Label^ label3;
  67. private: System::Windows::Forms::Label^ label4;
  68. private: System::Windows::Forms::Label^ label5;
  69. private: System::Windows::Forms::Label^ label6;
  70. private: System::Windows::Forms::Label^ label7;
  71. private: System::Windows::Forms::Label^ label8;
  72. private: System::Windows::Forms::Label^ label9;
  73. private: System::Windows::Forms::Label^ label10;
  74. private: System::Windows::Forms::Label^ label11;
  75. private: System::Windows::Forms::Label^ label12;
  76. private: System::Windows::Forms::Label^ label13;
  77. private: System::Windows::Forms::Label^ label14;
  78. private: System::Windows::Forms::Label^ label15;
  79. private: System::Windows::Forms::Label^ label16;
  80. private: System::Windows::Forms::Label^ label17;
  81. private: System::Windows::Forms::Label^ label18;
  82. private: System::Windows::Forms::Label^ label19;
  83. private: System::Windows::Forms::ImageList^ koparka_imglist;
  84. private: System::Windows::Forms::PictureBox^ koparka;
  85.  
  86. private: System::Windows::Forms::ImageList^ tasma1;
  87. private: System::Windows::Forms::PictureBox^ tasma_koparka;
  88. private: System::Windows::Forms::ImageList^ stacja;
  89. private: System::Windows::Forms::PictureBox^ pictureBox3;
  90. private: System::Windows::Forms::PictureBox^ tasma_zwalowarka;
  91. private: System::Windows::Forms::ImageList^ zwalowarka_imglist;
  92. private: System::Windows::Forms::PictureBox^ pictureBox5;
  93. private: System::Windows::Forms::ImageList^ tasma2;
  94. private: System::Windows::Forms::PictureBox^ tasma_elekt;
  95. private: System::Windows::Forms::ImageList^ elektrownia;
  96. private: System::Windows::Forms::PictureBox^ elektrownia_gif;
  97. private: System::ComponentModel::IContainer^ components;
  98.  
  99. protected:
  100.  
  101. private:
  102. /// <summary>
  103. /// Wymagana zmienna projektanta.
  104. /// </summary>
  105.  
  106.  
  107. #pragma region Windows Form Designer generated code
  108. /// <summary>
  109. /// Metoda wymagana do obsługi projektanta — nie należy modyfikować
  110. /// jej zawartości w edytorze kodu.
  111. /// </summary>
  112. void InitializeComponent(void)
  113. {
  114. this->components = (gcnew System::ComponentModel::Container());
  115. System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(okno::typeid));
  116. this->button1 = (gcnew System::Windows::Forms::Button());
  117. this->startZW = (gcnew System::Windows::Forms::Button());
  118. this->stopZW = (gcnew System::Windows::Forms::Button());
  119. this->stopPZ = (gcnew System::Windows::Forms::Button());
  120. this->startPZ = (gcnew System::Windows::Forms::Button());
  121. this->stopPE = (gcnew System::Windows::Forms::Button());
  122. this->startPE = (gcnew System::Windows::Forms::Button());
  123. this->stopPR = (gcnew System::Windows::Forms::Button());
  124. this->startPR = (gcnew System::Windows::Forms::Button());
  125. this->stopK = (gcnew System::Windows::Forms::Button());
  126. this->startK = (gcnew System::Windows::Forms::Button());
  127. this->button12 = (gcnew System::Windows::Forms::Button());
  128. this->button13 = (gcnew System::Windows::Forms::Button());
  129. this->label1 = (gcnew System::Windows::Forms::Label());
  130. this->label2 = (gcnew System::Windows::Forms::Label());
  131. this->label3 = (gcnew System::Windows::Forms::Label());
  132. this->label4 = (gcnew System::Windows::Forms::Label());
  133. this->label5 = (gcnew System::Windows::Forms::Label());
  134. this->label6 = (gcnew System::Windows::Forms::Label());
  135. this->label7 = (gcnew System::Windows::Forms::Label());
  136. this->label8 = (gcnew System::Windows::Forms::Label());
  137. this->label9 = (gcnew System::Windows::Forms::Label());
  138. this->label10 = (gcnew System::Windows::Forms::Label());
  139. this->label11 = (gcnew System::Windows::Forms::Label());
  140. this->label12 = (gcnew System::Windows::Forms::Label());
  141. this->label13 = (gcnew System::Windows::Forms::Label());
  142. this->label14 = (gcnew System::Windows::Forms::Label());
  143. this->label15 = (gcnew System::Windows::Forms::Label());
  144. this->label16 = (gcnew System::Windows::Forms::Label());
  145. this->label17 = (gcnew System::Windows::Forms::Label());
  146. this->label18 = (gcnew System::Windows::Forms::Label());
  147. this->label19 = (gcnew System::Windows::Forms::Label());
  148. this->koparka_imglist = (gcnew System::Windows::Forms::ImageList(this->components));
  149. this->koparka = (gcnew System::Windows::Forms::PictureBox());
  150. this->tasma1 = (gcnew System::Windows::Forms::ImageList(this->components));
  151. this->tasma_koparka = (gcnew System::Windows::Forms::PictureBox());
  152. this->stacja = (gcnew System::Windows::Forms::ImageList(this->components));
  153. this->pictureBox3 = (gcnew System::Windows::Forms::PictureBox());
  154. this->tasma_zwalowarka = (gcnew System::Windows::Forms::PictureBox());
  155. this->zwalowarka_imglist = (gcnew System::Windows::Forms::ImageList(this->components));
  156. this->pictureBox5 = (gcnew System::Windows::Forms::PictureBox());
  157. this->tasma2 = (gcnew System::Windows::Forms::ImageList(this->components));
  158. this->tasma_elekt = (gcnew System::Windows::Forms::PictureBox());
  159. this->elektrownia = (gcnew System::Windows::Forms::ImageList(this->components));
  160. this->elektrownia_gif = (gcnew System::Windows::Forms::PictureBox());
  161. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->koparka))->BeginInit();
  162. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_koparka))->BeginInit();
  163. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox3))->BeginInit();
  164. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_zwalowarka))->BeginInit();
  165. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox5))->BeginInit();
  166. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_elekt))->BeginInit();
  167. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->elektrownia_gif))->BeginInit();
  168. this->SuspendLayout();
  169. //
  170. // button1
  171. //
  172. this->button1->Enabled = false;
  173. this->button1->Location = System::Drawing::Point(0, 549);
  174. this->button1->Name = L"button1";
  175. this->button1->Size = System::Drawing::Size(883, 10);
  176. this->button1->TabIndex = 0;
  177. this->button1->Text = L"button1";
  178. this->button1->UseVisualStyleBackColor = true;
  179. //
  180. // startZW
  181. //
  182. this->startZW->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startZW.BackgroundImage")));
  183. this->startZW->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  184. this->startZW->Location = System::Drawing::Point(344, 655);
  185. this->startZW->Name = L"startZW";
  186. this->startZW->Size = System::Drawing::Size(43, 39);
  187. this->startZW->TabIndex = 2;
  188. this->startZW->UseVisualStyleBackColor = true;
  189. this->startZW->Click += gcnew System::EventHandler(this, &okno::startZW_Click);
  190. //
  191. // stopZW
  192. //
  193. this->stopZW->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopZW.BackgroundImage")));
  194. this->stopZW->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  195. this->stopZW->Location = System::Drawing::Point(446, 655);
  196. this->stopZW->Name = L"stopZW";
  197. this->stopZW->Size = System::Drawing::Size(43, 39);
  198. this->stopZW->TabIndex = 3;
  199. this->stopZW->UseVisualStyleBackColor = true;
  200. this->stopZW->Click += gcnew System::EventHandler(this, &okno::stopZW_Click);
  201. //
  202. // stopPZ
  203. //
  204. this->stopPZ->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopPZ.BackgroundImage")));
  205. this->stopPZ->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  206. this->stopPZ->Location = System::Drawing::Point(446, 712);
  207. this->stopPZ->Name = L"stopPZ";
  208. this->stopPZ->Size = System::Drawing::Size(43, 39);
  209. this->stopPZ->TabIndex = 5;
  210. this->stopPZ->UseVisualStyleBackColor = true;
  211. this->stopPZ->Click += gcnew System::EventHandler(this, &okno::button4_Click);
  212. //
  213. // startPZ
  214. //
  215. this->startPZ->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startPZ.BackgroundImage")));
  216. this->startPZ->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  217. this->startPZ->Location = System::Drawing::Point(344, 712);
  218. this->startPZ->Name = L"startPZ";
  219. this->startPZ->Size = System::Drawing::Size(43, 39);
  220. this->startPZ->TabIndex = 4;
  221. this->startPZ->UseVisualStyleBackColor = true;
  222. //
  223. // stopPE
  224. //
  225. this->stopPE->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopPE.BackgroundImage")));
  226. this->stopPE->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  227. this->stopPE->Location = System::Drawing::Point(446, 766);
  228. this->stopPE->Name = L"stopPE";
  229. this->stopPE->Size = System::Drawing::Size(43, 39);
  230. this->stopPE->TabIndex = 7;
  231. this->stopPE->UseVisualStyleBackColor = true;
  232. this->stopPE->Click += gcnew System::EventHandler(this, &okno::button6_Click);
  233. //
  234. // startPE
  235. //
  236. this->startPE->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startPE.BackgroundImage")));
  237. this->startPE->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  238. this->startPE->Location = System::Drawing::Point(344, 766);
  239. this->startPE->Name = L"startPE";
  240. this->startPE->Size = System::Drawing::Size(43, 39);
  241. this->startPE->TabIndex = 6;
  242. this->startPE->UseVisualStyleBackColor = true;
  243. this->startPE->Click += gcnew System::EventHandler(this, &okno::startPE_Click);
  244. //
  245. // stopPR
  246. //
  247. this->stopPR->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopPR.BackgroundImage")));
  248. this->stopPR->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  249. this->stopPR->Location = System::Drawing::Point(446, 822);
  250. this->stopPR->Name = L"stopPR";
  251. this->stopPR->Size = System::Drawing::Size(43, 39);
  252. this->stopPR->TabIndex = 9;
  253. this->stopPR->UseVisualStyleBackColor = true;
  254. //
  255. // startPR
  256. //
  257. this->startPR->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startPR.BackgroundImage")));
  258. this->startPR->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  259. this->startPR->Location = System::Drawing::Point(344, 822);
  260. this->startPR->Name = L"startPR";
  261. this->startPR->Size = System::Drawing::Size(43, 39);
  262. this->startPR->TabIndex = 8;
  263. this->startPR->UseVisualStyleBackColor = true;
  264. //
  265. // stopK
  266. //
  267. this->stopK->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"stopK.BackgroundImage")));
  268. this->stopK->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  269. this->stopK->Location = System::Drawing::Point(446, 935);
  270. this->stopK->Name = L"stopK";
  271. this->stopK->Size = System::Drawing::Size(43, 39);
  272. this->stopK->TabIndex = 11;
  273. this->stopK->UseVisualStyleBackColor = true;
  274. this->stopK->Click += gcnew System::EventHandler(this, &okno::button10_Click);
  275. //
  276. // startK
  277. //
  278. this->startK->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"startK.BackgroundImage")));
  279. this->startK->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  280. this->startK->Location = System::Drawing::Point(344, 935);
  281. this->startK->Name = L"startK";
  282. this->startK->Size = System::Drawing::Size(43, 39);
  283. this->startK->TabIndex = 10;
  284. this->startK->UseVisualStyleBackColor = true;
  285. this->startK->Click += gcnew System::EventHandler(this, &okno::button11_Click);
  286. //
  287. // button12
  288. //
  289. this->button12->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"button12.BackgroundImage")));
  290. this->button12->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  291. this->button12->Location = System::Drawing::Point(47, 621);
  292. this->button12->Name = L"button12";
  293. this->button12->Size = System::Drawing::Size(129, 46);
  294. this->button12->TabIndex = 12;
  295. this->button12->UseVisualStyleBackColor = true;
  296. //
  297. // button13
  298. //
  299. this->button13->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"button13.BackgroundImage")));
  300. this->button13->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
  301. this->button13->Location = System::Drawing::Point(347, 867);
  302. this->button13->Name = L"button13";
  303. this->button13->Size = System::Drawing::Size(129, 46);
  304. this->button13->TabIndex = 13;
  305. this->button13->UseVisualStyleBackColor = true;
  306. //
  307. // label1
  308. //
  309. this->label1->AutoSize = true;
  310. this->label1->Location = System::Drawing::Point(344, 638);
  311. this->label1->Name = L"label1";
  312. this->label1->Size = System::Drawing::Size(43, 13);
  313. this->label1->TabIndex = 14;
  314. this->label1->Text = L"START";
  315. //
  316. // label2
  317. //
  318. this->label2->AutoSize = true;
  319. this->label2->Location = System::Drawing::Point(344, 697);
  320. this->label2->Name = L"label2";
  321. this->label2->Size = System::Drawing::Size(43, 13);
  322. this->label2->TabIndex = 15;
  323. this->label2->Text = L"START";
  324. //
  325. // label3
  326. //
  327. this->label3->AutoSize = true;
  328. this->label3->Location = System::Drawing::Point(344, 753);
  329. this->label3->Name = L"label3";
  330. this->label3->Size = System::Drawing::Size(43, 13);
  331. this->label3->TabIndex = 16;
  332. this->label3->Text = L"START";
  333. //
  334. // label4
  335. //
  336. this->label4->AutoSize = true;
  337. this->label4->Location = System::Drawing::Point(344, 808);
  338. this->label4->Name = L"label4";
  339. this->label4->Size = System::Drawing::Size(43, 13);
  340. this->label4->TabIndex = 17;
  341. this->label4->Text = L"START";
  342. this->label4->Click += gcnew System::EventHandler(this, &okno::label4_Click);
  343. //
  344. // label5
  345. //
  346. this->label5->AutoSize = true;
  347. this->label5->Location = System::Drawing::Point(344, 921);
  348. this->label5->Name = L"label5";
  349. this->label5->Size = System::Drawing::Size(43, 13);
  350. this->label5->TabIndex = 18;
  351. this->label5->Text = L"START";
  352. //
  353. // label6
  354. //
  355. this->label6->AutoSize = true;
  356. this->label6->Location = System::Drawing::Point(450, 638);
  357. this->label6->Name = L"label6";
  358. this->label6->Size = System::Drawing::Size(36, 13);
  359. this->label6->TabIndex = 19;
  360. this->label6->Text = L"STOP";
  361. //
  362. // label7
  363. //
  364. this->label7->AutoSize = true;
  365. this->label7->Location = System::Drawing::Point(450, 696);
  366. this->label7->Name = L"label7";
  367. this->label7->Size = System::Drawing::Size(36, 13);
  368. this->label7->TabIndex = 20;
  369. this->label7->Text = L"STOP";
  370. //
  371. // label8
  372. //
  373. this->label8->AutoSize = true;
  374. this->label8->Location = System::Drawing::Point(450, 753);
  375. this->label8->Name = L"label8";
  376. this->label8->Size = System::Drawing::Size(36, 13);
  377. this->label8->TabIndex = 21;
  378. this->label8->Text = L"STOP";
  379. //
  380. // label9
  381. //
  382. this->label9->AutoSize = true;
  383. this->label9->Location = System::Drawing::Point(450, 806);
  384. this->label9->Name = L"label9";
  385. this->label9->Size = System::Drawing::Size(36, 13);
  386. this->label9->TabIndex = 22;
  387. this->label9->Text = L"STOP";
  388. //
  389. // label10
  390. //
  391. this->label10->AutoSize = true;
  392. this->label10->Location = System::Drawing::Point(450, 921);
  393. this->label10->Name = L"label10";
  394. this->label10->Size = System::Drawing::Size(36, 13);
  395. this->label10->TabIndex = 23;
  396. this->label10->Text = L"STOP";
  397. //
  398. // label11
  399. //
  400. this->label11->AutoSize = true;
  401. this->label11->Location = System::Drawing::Point(271, 668);
  402. this->label11->Name = L"label11";
  403. this->label11->Size = System::Drawing::Size(67, 13);
  404. this->label11->TabIndex = 24;
  405. this->label11->Text = L"Zwałowarka";
  406. //
  407. // label12
  408. //
  409. this->label12->AutoSize = true;
  410. this->label12->Location = System::Drawing::Point(222, 725);
  411. this->label12->Name = L"label12";
  412. this->label12->Size = System::Drawing::Size(116, 13);
  413. this->label12->TabIndex = 25;
  414. this->label12->Text = L"Przenośnik zwałowarki";
  415. //
  416. // label13
  417. //
  418. this->label13->AutoSize = true;
  419. this->label13->Location = System::Drawing::Point(227, 779);
  420. this->label13->Name = L"label13";
  421. this->label13->Size = System::Drawing::Size(110, 13);
  422. this->label13->TabIndex = 26;
  423. this->label13->Text = L"Przenośnik elektrowni";
  424. //
  425. // label14
  426. //
  427. this->label14->AutoSize = true;
  428. this->label14->Location = System::Drawing::Point(218, 835);
  429. this->label14->Name = L"label14";
  430. this->label14->Size = System::Drawing::Size(120, 13);
  431. this->label14->TabIndex = 27;
  432. this->label14->Text = L"Przenośnik rozdzelający";
  433. //
  434. // label15
  435. //
  436. this->label15->AutoSize = true;
  437. this->label15->Location = System::Drawing::Point(291, 948);
  438. this->label15->Name = L"label15";
  439. this->label15->Size = System::Drawing::Size(47, 13);
  440. this->label15->TabIndex = 28;
  441. this->label15->Text = L"Koparka";
  442. //
  443. // label16
  444. //
  445. this->label16->AutoSize = true;
  446. this->label16->Location = System::Drawing::Point(249, 884);
  447. this->label16->Name = L"label16";
  448. this->label16->Size = System::Drawing::Size(88, 13);
  449. this->label16->TabIndex = 29;
  450. this->label16->Text = L"Zrzut elektrownia";
  451. //
  452. // label17
  453. //
  454. this->label17->AutoSize = true;
  455. this->label17->Location = System::Drawing::Point(482, 884);
  456. this->label17->Name = L"label17";
  457. this->label17->Size = System::Drawing::Size(92, 13);
  458. this->label17->TabIndex = 30;
  459. this->label17->Text = L"Zrzut zwałowarka";
  460. this->label17->Click += gcnew System::EventHandler(this, &okno::label17_Click);
  461. //
  462. // label18
  463. //
  464. this->label18->AutoSize = true;
  465. this->label18->Location = System::Drawing::Point(67, 605);
  466. this->label18->Name = L"label18";
  467. this->label18->Size = System::Drawing::Size(92, 13);
  468. this->label18->TabIndex = 31;
  469. this->label18->Text = L"Wybór sterowania";
  470. //
  471. // label19
  472. //
  473. this->label19->AutoSize = true;
  474. this->label19->Location = System::Drawing::Point(44, 670);
  475. this->label19->Name = L"label19";
  476. this->label19->Size = System::Drawing::Size(110, 13);
  477. this->label19->TabIndex = 32;
  478. this->label19->Text = L" AUTO/RĘCZNE";
  479. //
  480. // koparka_imglist
  481. //
  482. this->koparka_imglist->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"koparka_imglist.ImageStream")));
  483. this->koparka_imglist->TransparentColor = System::Drawing::Color::Transparent;
  484. this->koparka_imglist->Images->SetKeyName(0, L"koparka.png");
  485. this->koparka_imglist->Images->SetKeyName(1, L"koparka.gif");
  486. //
  487. // koparka
  488. //
  489. this->koparka->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"koparka.Image")));
  490. this->koparka->Location = System::Drawing::Point(21, 398);
  491. this->koparka->Name = L"koparka";
  492. this->koparka->Size = System::Drawing::Size(235, 150);
  493. this->koparka->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
  494. this->koparka->TabIndex = 33;
  495. this->koparka->TabStop = false;
  496. //
  497. // tasma1
  498. //
  499. this->tasma1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"tasma1.ImageStream")));
  500. this->tasma1->TransparentColor = System::Drawing::Color::Transparent;
  501. this->tasma1->Images->SetKeyName(0, L"tasma.png");
  502. this->tasma1->Images->SetKeyName(1, L"tasma_coal_end.gif");
  503. this->tasma1->Images->SetKeyName(2, L"tasma_coal_start.gif");
  504. this->tasma1->Images->SetKeyName(3, L"tasma_coal_work.gif");
  505. this->tasma1->Images->SetKeyName(4, L"tasma_sand_end.gif");
  506. this->tasma1->Images->SetKeyName(5, L"tasma_sand_start.gif");
  507. this->tasma1->Images->SetKeyName(6, L"tasma_sand_work.gif");
  508. this->tasma1->Images->SetKeyName(7, L"tasma_work.gif");
  509. //
  510. // tasma_koparka
  511. //
  512. this->tasma_koparka->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"tasma_koparka.Image")));
  513. this->tasma_koparka->Location = System::Drawing::Point(127, 311);
  514. this->tasma_koparka->Name = L"tasma_koparka";
  515. this->tasma_koparka->Size = System::Drawing::Size(149, 119);
  516. this->tasma_koparka->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
  517. this->tasma_koparka->TabIndex = 34;
  518. this->tasma_koparka->TabStop = false;
  519. //
  520. // stacja
  521. //
  522. this->stacja->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"stacja.ImageStream")));
  523. this->stacja->TransparentColor = System::Drawing::Color::Transparent;
  524. this->stacja->Images->SetKeyName(0, L"stacja_coal_end.gif");
  525. this->stacja->Images->SetKeyName(1, L"stacja_coal_start.gif");
  526. this->stacja->Images->SetKeyName(2, L"stacja_coal_work.gif");
  527. this->stacja->Images->SetKeyName(3, L"stacja_el_na_zw.gif");
  528. this->stacja->Images->SetKeyName(4, L"stacja_empty_el.gif");
  529. this->stacja->Images->SetKeyName(5, L"stacja_empty_zw.gif");
  530. this->stacja->Images->SetKeyName(6, L"stacja_na_zw.png");
  531. this->stacja->Images->SetKeyName(7, L"stacja_sand_end.gif");
  532. this->stacja->Images->SetKeyName(8, L"stacja_sand_start.gif");
  533. this->stacja->Images->SetKeyName(9, L"stacja_sand_work.gif");
  534. this->stacja->Images->SetKeyName(10, L"stacja_zw_na_el.gif");
  535. this->stacja->Images->SetKeyName(11, L"stacja_zw_na_el.png");
  536. //
  537. // pictureBox3
  538. //
  539. this->pictureBox3->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"pictureBox3.Image")));
  540. this->pictureBox3->Location = System::Drawing::Point(271, 186);
  541. this->pictureBox3->Name = L"pictureBox3";
  542. this->pictureBox3->Size = System::Drawing::Size(190, 159);
  543. this->pictureBox3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
  544. this->pictureBox3->TabIndex = 35;
  545. this->pictureBox3->TabStop = false;
  546. //
  547. // tasma_zwalowarka
  548. //
  549. this->tasma_zwalowarka->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"tasma_zwalowarka.Image")));
  550. this->tasma_zwalowarka->Location = System::Drawing::Point(455, 101);
  551. this->tasma_zwalowarka->Name = L"tasma_zwalowarka";
  552. this->tasma_zwalowarka->Size = System::Drawing::Size(149, 119);
  553. this->tasma_zwalowarka->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
  554. this->tasma_zwalowarka->TabIndex = 36;
  555. this->tasma_zwalowarka->TabStop = false;
  556. //
  557. // zwalowarka_imglist
  558. //
  559. this->zwalowarka_imglist->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"zwalowarka_imglist.ImageStream")));
  560. this->zwalowarka_imglist->TransparentColor = System::Drawing::Color::Transparent;
  561. this->zwalowarka_imglist->Images->SetKeyName(0, L"zwalowarka.png");
  562. this->zwalowarka_imglist->Images->SetKeyName(1, L"zwalowarka_praca.gif");
  563. //
  564. // pictureBox5
  565. //
  566. this->pictureBox5->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"pictureBox5.Image")));
  567. this->pictureBox5->Location = System::Drawing::Point(544, 83);
  568. this->pictureBox5->Name = L"pictureBox5";
  569. this->pictureBox5->Size = System::Drawing::Size(256, 179);
  570. this->pictureBox5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
  571. this->pictureBox5->TabIndex = 37;
  572. this->pictureBox5->TabStop = false;
  573. //
  574. // tasma2
  575. //
  576. this->tasma2->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"tasma2.ImageStream")));
  577. this->tasma2->TransparentColor = System::Drawing::Color::Transparent;
  578. this->tasma2->Images->SetKeyName(0, L"tasma_pusta_el.png");
  579. this->tasma2->Images->SetKeyName(1, L"tasma_pusta_el.gif");
  580. this->tasma2->Images->SetKeyName(2, L"tasma_we_end.gif");
  581. this->tasma2->Images->SetKeyName(3, L"tasma_we_praca.gif");
  582. this->tasma2->Images->SetKeyName(4, L"tasma_we_start.gif");
  583. //
  584. // tasma_elekt
  585. //
  586. this->tasma_elekt->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"tasma_elekt.Image")));
  587. this->tasma_elekt->Location = System::Drawing::Point(441, 236);
  588. this->tasma_elekt->Name = L"tasma_elekt";
  589. this->tasma_elekt->Size = System::Drawing::Size(163, 163);
  590. this->tasma_elekt->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
  591. this->tasma_elekt->TabIndex = 38;
  592. this->tasma_elekt->TabStop = false;
  593. //
  594. // elektrownia
  595. //
  596. this->elektrownia->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"elektrownia.ImageStream")));
  597. this->elektrownia->TransparentColor = System::Drawing::Color::Transparent;
  598. this->elektrownia->Images->SetKeyName(0, L"elektrownia.png");
  599. this->elektrownia->Images->SetKeyName(1, L"elektrownia.gif");
  600. //
  601. // elektrownia_gif
  602. //
  603. this->elektrownia_gif->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"elektrownia_gif.Image")));
  604. this->elektrownia_gif->Location = System::Drawing::Point(593, 292);
  605. this->elektrownia_gif->Name = L"elektrownia_gif";
  606. this->elektrownia_gif->Size = System::Drawing::Size(150, 190);
  607. this->elektrownia_gif->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
  608. this->elektrownia_gif->TabIndex = 39;
  609. this->elektrownia_gif->TabStop = false;
  610. //
  611. // okno
  612. //
  613. this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  614. this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  615. this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"$this.BackgroundImage")));
  616. this->ClientSize = System::Drawing::Size(884, 986);
  617. this->Controls->Add(this->tasma_zwalowarka);
  618. this->Controls->Add(this->tasma_elekt);
  619. this->Controls->Add(this->pictureBox3);
  620. this->Controls->Add(this->tasma_koparka);
  621. this->Controls->Add(this->koparka);
  622. this->Controls->Add(this->label19);
  623. this->Controls->Add(this->label18);
  624. this->Controls->Add(this->label17);
  625. this->Controls->Add(this->label16);
  626. this->Controls->Add(this->label15);
  627. this->Controls->Add(this->label14);
  628. this->Controls->Add(this->label13);
  629. this->Controls->Add(this->label12);
  630. this->Controls->Add(this->label11);
  631. this->Controls->Add(this->label10);
  632. this->Controls->Add(this->label9);
  633. this->Controls->Add(this->label8);
  634. this->Controls->Add(this->label7);
  635. this->Controls->Add(this->label6);
  636. this->Controls->Add(this->label5);
  637. this->Controls->Add(this->label4);
  638. this->Controls->Add(this->label3);
  639. this->Controls->Add(this->label2);
  640. this->Controls->Add(this->label1);
  641. this->Controls->Add(this->button13);
  642. this->Controls->Add(this->button12);
  643. this->Controls->Add(this->stopK);
  644. this->Controls->Add(this->startK);
  645. this->Controls->Add(this->stopPR);
  646. this->Controls->Add(this->startPR);
  647. this->Controls->Add(this->stopPE);
  648. this->Controls->Add(this->startPE);
  649. this->Controls->Add(this->stopPZ);
  650. this->Controls->Add(this->startPZ);
  651. this->Controls->Add(this->stopZW);
  652. this->Controls->Add(this->startZW);
  653. this->Controls->Add(this->button1);
  654. this->Controls->Add(this->pictureBox5);
  655. this->Controls->Add(this->elektrownia_gif);
  656. this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
  657. this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
  658. this->MaximizeBox = false;
  659. this->Name = L"okno";
  660. this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
  661. this->Text = L"Mateusz Wojewoda ";
  662. this->Load += gcnew System::EventHandler(this, &okno::okno_Load);
  663. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->koparka))->EndInit();
  664. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_koparka))->EndInit();
  665. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox3))->EndInit();
  666. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_zwalowarka))->EndInit();
  667. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->pictureBox5))->EndInit();
  668. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->tasma_elekt))->EndInit();
  669. (cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->elektrownia_gif))->EndInit();
  670. this->ResumeLayout(false);
  671. this->PerformLayout();
  672.  
  673. }
  674. #pragma endregion
  675. private: System::Void okno_Load(System::Object^ sender, System::EventArgs^ e) {
  676. }
  677. private: System::Void button11_Click(System::Object^ sender, System::EventArgs^ e) {
  678. flaga3 = 1;
  679. sterowanie_koparka();
  680. }
  681. private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e) {
  682. flaga3 = 0;
  683. sterowanie_koparka();
  684. }
  685. private: System::Void label4_Click(System::Object^ sender, System::EventArgs^ e) {
  686. }
  687. private: System::Void label17_Click(System::Object^ sender, System::EventArgs^ e) {
  688. }
  689.  
  690. private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
  691. }
  692. private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {
  693. flaga2 = 0;
  694. sterowanie_elektrownia();
  695. }
  696. private: System::Void startPE_Click(System::Object^ sender, System::EventArgs^ e) {
  697. flaga2 = 1;
  698. sterowanie_elektrownia();
  699. }
  700. private: System::Void startZW_Click(System::Object^ sender, System::EventArgs^ e) {
  701.  
  702. flaga1 = 1;
  703. sterowanie_zwalowarka();
  704.  
  705. }
  706. private: System::Void stopZW_Click(System::Object^ sender, System::EventArgs^ e) {
  707.  
  708. flaga1 = 0;
  709. sterowanie_zwalowarka();
  710. }
  711.  
  712. private: Void sterowanie_zwalowarka() {
  713. flaga1;
  714. tasma_zwalowarka;
  715. if (flaga1 == 1){
  716. tasma_zwalowarka->Image = tasma1->Images[7];
  717. }
  718. if (flaga1 == 0){
  719.  
  720. tasma_zwalowarka->Image = tasma1->Images[0];
  721. }
  722. }
  723.  
  724.  
  725. private: Void sterowanie_elektrownia() {
  726. flaga2;
  727. tasma_elekt;
  728. elektrownia_gif;
  729. if (flaga1 == 1) {
  730. tasma_elekt->Image = tasma2->Images[1];
  731. elektrownia_gif->Image = elektrownia->Images[1];
  732. }
  733. if (flaga1 == 0) {
  734. tasma_elekt->Image = tasma2->Images[0];
  735. elektrownia_gif->Image = elektrownia->Images[0];
  736. }
  737. }
  738. private: Void sterowanie_koparka() {
  739. flaga3;
  740. koparka;
  741. koparka_imglist;
  742. if (flaga3 == 1) {
  743. koparka->Image = koparka_imglist->Images[1];
  744. }
  745. if (flaga3 == 0) {
  746. koparka->Image = koparka_imglist->Images[0];
  747. }
  748. }
  749. }
  750. ; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement