gashink_t

для ильи

May 26th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. #pragma endregion
  2. private: System::Void menuStrip1_ItemClicked(System::Object^ sender, System::Windows::Forms::ToolStripItemClickedEventArgs^ e) {
  3. }
  4. private: System::Void sTOPToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
  5. timer1->Enabled = false;
  6. timer1->Interval = 1;
  7. sTARTToolStripMenuItem->Enabled = true;
  8. sTOPToolStripMenuItem->Enabled = false;
  9. }
  10. private: System::Void sTARTToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
  11. timer1->Enabled = true;
  12. timer1->Interval = 1;
  13. sTARTToolStripMenuItem->Enabled = false;
  14. sTOPToolStripMenuItem->Enabled = true;
  15. }
  16. private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e) {
  17. t++;
  18. if ((t > 50) && (t < 60)) {
  19. zastavka->Visible = false;
  20. }
  21.  
  22. if ((t > 50) && (t < 250)) {
  23. marineR->Left = marineR->Left + 5;
  24. }
  25. if ((t > 50) && (t < 1000)) {
  26. k1->Left = k1->Left - 3;
  27. k2->Left = k2->Left - 3;
  28. k3->Left = k3->Left - 3;
  29. }
  30. if ((t > 240) && (t < 400)) {
  31. marineL->Visible = true;
  32. marineL->Left = marineL->Left - 5;
  33. }
  34. if ((t > 380) && (t < 500)) {
  35. ending->Visible = true;
  36. }
  37.  
  38. }
  39. };
  40. }
Add Comment
Please, Sign In to add comment