Changeset 6 for trunk/FormMain.pas
- Timestamp:
- Sep 30, 2025, 1:13:00 PM (7 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FormMain.pas
r5 r6 26 26 procedure FormDestroy(Sender: TObject); 27 27 procedure FormShow(Sender: TObject); 28 procedure MemoSourceChange(Sender: TObject); 28 29 private 29 30 procedure Log(Text: string); 31 procedure UpdateSummary; 30 32 public 31 33 Summary: TSummary; … … 34 36 var 35 37 FormMain: TFormMain; 38 36 39 37 40 implementation … … 45 48 if FileExists(EditSource.Text) then 46 49 MemoSource.Lines.LoadFromFile(EditSource.Text); 47 Summary.OnLog := Log; 48 Summary.LoadFromStrings(MemoSource.Lines); 49 MemoSummary.Text := Summary.Print; 50 UpdateSummary; 50 51 //PageControlSummary.TabIndex := 1; 52 end; 53 54 procedure TFormMain.MemoSourceChange(Sender: TObject); 55 begin 56 UpdateSummary; 51 57 end; 52 58 … … 56 62 end; 57 63 64 procedure TFormMain.UpdateSummary; 65 begin 66 Summary.LoadFromStrings(MemoSource.Lines); 67 MemoSummary.Text := Summary.Print; 68 end; 69 58 70 procedure TFormMain.FormCreate(Sender: TObject); 59 71 begin 60 72 Summary := TSummary.Create; 73 Summary.OnLog := Log; 61 74 end; 62 75
Note:
See TracChangeset
for help on using the changeset viewer.