Changeset 574 for Generics/TemplateGenerics/Demo/FormMain.pas
- Timestamp:
- Jun 25, 2024, 11:10:44 AM (4 months ago)
- Location:
- Generics/TemplateGenerics/Demo
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Demo
- Property svn:ignore
-
old new 3 3 heaptrclog.trc 4 4 Demo 5 backup
-
- Property svn:ignore
-
Generics/TemplateGenerics/Demo/FormMain.pas
r573 r574 1 unit UMainForm; 2 3 {$mode delphi}{$H+} 1 unit FormMain; 4 2 5 3 interface … … 12 10 type 13 11 14 { T MainForm}15 16 T MainForm= class(TForm)12 { TFormMain } 13 14 TFormMain = class(TForm) 17 15 ButtonStreamByte: TButton; 18 16 ButtonBenchmarkDictionary: TButton; … … 50 48 51 49 var 52 MainForm: TMainForm; 50 FormMain: TFormMain; 51 53 52 54 53 implementation … … 56 55 {$R *.lfm} 57 56 58 { T MainForm}59 60 procedure T MainForm.FormCreate(Sender: TObject);57 { TFormMain } 58 59 procedure TFormMain.FormCreate(Sender: TObject); 61 60 begin 62 61 MeasureDuration := 100 * OneMillisecond; 63 62 end; 64 63 65 procedure T MainForm.ButtonIntegerListClick(Sender: TObject);64 procedure TFormMain.ButtonIntegerListClick(Sender: TObject); 66 65 var 67 66 List: TListInteger; … … 105 104 end; 106 105 107 procedure T MainForm.ButtonMatrixIntegerClick(Sender: TObject);106 procedure TFormMain.ButtonMatrixIntegerClick(Sender: TObject); 108 107 var 109 108 Matrix: TMatrixInteger; … … 129 128 end; 130 129 131 procedure T MainForm.ButtonStreamByteClick(Sender: TObject);130 procedure TFormMain.ButtonStreamByteClick(Sender: TObject); 132 131 var 133 132 Stream: TMemoryStreamByte; … … 171 170 end; 172 171 173 procedure T MainForm.ButtonListObjectClick(Sender: TObject);172 procedure TFormMain.ButtonListObjectClick(Sender: TObject); 174 173 var 175 174 List: TListObject; … … 196 195 end; 197 196 198 procedure T MainForm.ButtonQueueIntegerClick(Sender: TObject);197 procedure TFormMain.ButtonQueueIntegerClick(Sender: TObject); 199 198 var 200 199 Queue: TQueueInteger; … … 223 222 end; 224 223 225 procedure T MainForm.ButtonDictionaryStringClick(Sender: TObject);224 procedure TFormMain.ButtonDictionaryStringClick(Sender: TObject); 226 225 var 227 226 Dictionary: TDictionaryStringString; … … 251 250 end; 252 251 253 procedure T MainForm.ButtonCharListClick(Sender: TObject);252 procedure TFormMain.ButtonCharListClick(Sender: TObject); 254 253 var 255 254 List: TListChar; … … 283 282 end; 284 283 285 procedure T MainForm.ButtonBenchmarkListStringClick(Sender: TObject);284 procedure TFormMain.ButtonBenchmarkListStringClick(Sender: TObject); 286 285 var 287 286 List: TListString; … … 431 430 end; 432 431 433 procedure T MainForm.ButtonBenchmarkDictionaryClick(Sender: TObject);432 procedure TFormMain.ButtonBenchmarkDictionaryClick(Sender: TObject); 434 433 var 435 434 Dictionary: TDictionaryStringString; … … 526 525 end; 527 526 528 procedure T MainForm.ButtonBenchmarkListPointerClick(Sender: TObject);527 procedure TFormMain.ButtonBenchmarkListPointerClick(Sender: TObject); 529 528 var 530 529 List: TListPointer; … … 726 725 end; 727 726 728 procedure T MainForm.ButtonStringListClick(Sender: TObject);727 procedure TFormMain.ButtonStringListClick(Sender: TObject); 729 728 var 730 729 List: TListString; … … 753 752 end; 754 753 755 procedure T MainForm.FormDestroy(Sender: TObject);756 begin 757 end; 758 759 procedure T MainForm.UpdateButtonState(Enabled: Boolean);754 procedure TFormMain.FormDestroy(Sender: TObject); 755 begin 756 end; 757 758 procedure TFormMain.UpdateButtonState(Enabled: Boolean); 760 759 begin 761 760 ButtonBenchmarkDictionary.Enabled := Enabled; … … 770 769 end; 771 770 772 procedure T MainForm.WriteOutput(Text1: string = ''; Text2: string = '');771 procedure TFormMain.WriteOutput(Text1: string = ''; Text2: string = ''); 773 772 var 774 773 NewItem: TListItem;
Note:
See TracChangeset
for help on using the changeset viewer.