dizballanze

Untitled

Nov 14th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 1.06 KB | None | 0 0
  1. unit Unit1;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  7.   Dialogs, StdCtrls, Unit2, Unit3, Unit4;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     ListBox1: TListBox;
  12.     ListBox2: TListBox;
  13.     Button1: TButton;
  14.     Label1: TLabel;
  15.     Label2: TLabel;
  16.     Label3: TLabel;
  17.     Label4: TLabel;
  18.     ListBox3: TListBox;
  19.     Label5: TLabel;
  20.     procedure Button1Click(Sender: TObject);
  21.   private
  22.     { Private declarations }
  23.   public
  24.     { Public declarations }
  25.     gen: Generator;
  26.     sum: Summator;
  27.     calc: Calculator;
  28.   end;
  29.  
  30. var
  31.   Form1: TForm1;
  32.  
  33. implementation
  34.  
  35. {$R *.dfm}
  36.  
  37. procedure TForm1.Button1Click(Sender: TObject);
  38. begin
  39.   gen := Generator.Create(true);
  40.   sum := Summator.Create(true);
  41.   calc:= Calculator.Create(true);
  42.  
  43.   gen.list := ListBox1;
  44.  
  45.   sum.listbox_input := ListBox1;
  46.   sum.listbox_output := ListBox2;
  47.  
  48.   calc.listbox_input := ListBox2;
  49.   calc.listbox_output := ListBox3;
  50.   calc.result := Label2;
  51.   calc.start := Time;
  52.  
  53.   sum.Resume;
  54.   gen.Resume;
  55.   calc.Resume;
  56. end;
  57.  
  58. end.
  59.  
  60.  
Advertisement
Add Comment
Please, Sign In to add comment