Advertisement
Guest User

Untitled

a guest
Mar 13th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. //---------------------------------------------------------------------------
  2.  
  3. #include <vcl.h>
  4. #pragma hdrstop
  5.  
  6. #include "Unit1.h"
  7. #include "Unit2.h"
  8. #include "Unit3.h"
  9.  
  10.  
  11. //---------------------------------------------------------------------------
  12. #pragma package(smart_init)
  13. #pragma resource "*.dfm"
  14. TForm1 *Form1;
  15. //---------------------------------------------------------------------------
  16.  
  17.  
  18.  
  19.  
  20. __fastcall TForm1::TForm1(TComponent* Owner)
  21. : TForm(Owner)
  22. {
  23.  
  24.  
  25. ListBox1->Items->LoadFromFile("baza danych gasnic/dane.txt");
  26.  
  27. }
  28. //---------------------------------------------------------------------------
  29.  
  30. int a = 0;
  31.  
  32.  
  33.  
  34.  
  35.  
  36. void __fastcall TForm1::proszkowa1Click(TObject *Sender)
  37. {
  38. Form3 -> Visible = true;
  39. a = 1;
  40.  
  41. }
  42. //---------------------------------------------------------------------------
  43.  
  44. void __fastcall TForm1::pianowa1Click(TObject *Sender)
  45. {
  46. Form3 -> Visible = true;
  47. a = 2;
  48. }
  49. //---------------------------------------------------------------------------
  50. void __fastcall TForm1::sniegowa1Click(TObject *Sender)
  51. {
  52. Form3 -> Visible = true;
  53. a = 3;
  54. }
  55. //---------------------------------------------------------------------------
  56. void __fastcall TForm1::gazowa1Click(TObject *Sender)
  57. {
  58. Form3 -> Visible = true;
  59. a = 4;
  60. }
  61. //---------------------------------------------------------------------------
  62. void __fastcall TForm1::usungasnice1Click(TObject *Sender)
  63. {
  64. Form2 -> Visible = true;
  65. }
  66. //---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement