Changeset 365 for trunk/Packages/Common/Forms/FormTest.pas
- Timestamp:
- Jan 2, 2025, 2:29:10 PM (10 months ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/Packages/Common/Forms/FormTest.pas (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/Packages/Common/Forms/FormTest.pasr315 r365 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, FormEx; 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, FormEx, 7 TestCase; 7 8 8 9 type … … 11 12 12 13 TFormTest = class(TFormEx) 14 ButtonRun: TButton; 15 ButtonClose: TButton; 13 16 MemoLog: TMemo; 17 procedure FormShow(Sender: TObject); 18 procedure ButtonRunClick(Sender: TObject); 19 private 20 FTestCase: TTestCase; 21 procedure SetTestCase(AValue: TTestCase); 22 public 23 property TestCase: TTestCase read FTestCase write SetTestCase; 14 24 end; 15 25 … … 19 29 {$R *.lfm} 20 30 31 { TFormTest } 32 33 procedure TFormTest.FormShow(Sender: TObject); 34 begin 35 if Assigned(FTestCase) then MemoLog.Text := FTestCase.Log; 36 end; 37 38 procedure TFormTest.SetTestCase(AValue: TTestCase); 39 begin 40 if FTestCase = AValue then Exit; 41 FTestCase := AValue; 42 end; 43 44 procedure TFormTest.ButtonRunClick(Sender: TObject); 45 begin 46 if Assigned(FTestCase) then begin 47 FTestCase.Run; 48 MemoLog.Text := FTestCase.Log; 49 end; 50 end; 51 21 52 end. 22 53 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
