Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit Unit1;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, Unit2, Unit3, Unit4;
- type
- TForm1 = class(TForm)
- ListBox1: TListBox;
- ListBox2: TListBox;
- Button1: TButton;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- ListBox3: TListBox;
- Label5: TLabel;
- procedure Button1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- gen: Generator;
- sum: Summator;
- calc: Calculator;
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.dfm}
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- gen := Generator.Create(true);
- sum := Summator.Create(true);
- calc:= Calculator.Create(true);
- gen.list := ListBox1;
- sum.listbox_input := ListBox1;
- sum.listbox_output := ListBox2;
- calc.listbox_input := ListBox2;
- calc.listbox_output := ListBox3;
- calc.result := Label2;
- calc.start := Time;
- sum.Resume;
- gen.Resume;
- calc.Resume;
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment