Ignore:
Timestamp:
Sep 10, 2022, 8:03:08 PM (2 years ago)
Author:
chronos
Message:
  • Removed: TemplateGenerics as required package. Used Generics.Collections instead.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        77heaptrclog.trc
        88MyData.exe
         9MyData.dbg
         10
  • trunk/Forms/UFormTables.pas

    r24 r26  
    11unit UFormTables;
    2 
    3 {$mode delphi}{$H+}
    42
    53interface
     
    75uses
    86  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls,
    9   ActnList, Menus, UDatabase, SpecializedDictionary;
     7  ActnList, Menus, UDatabase;
    108
    119type
     
    3836    procedure AShowFieldsExecute(Sender: TObject);
    3937    procedure AShowRecordsExecute(Sender: TObject);
    40     procedure FormActivate(Sender: TObject);
    41     procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    4238    procedure FormCreate(Sender: TObject);
    4339    procedure FormDestroy(Sender: TObject);
     
    6056  FormTables: TFormTables;
    6157
     58
    6259implementation
    6360
     
    7168  SRemoveTableConfirm = 'Do you want to really remove table ''%s'' ?';
    7269  SNewTable = 'New table';
    73 
    7470
    7571{ TFormTables }
     
    202198end;
    203199
    204 procedure TFormTables.FormActivate(Sender: TObject);
    205 begin
    206 end;
    207 
    208 procedure TFormTables.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    209 begin
    210 end;
    211 
    212200procedure TFormTables.FormCreate(Sender: TObject);
    213201begin
     
    217205procedure TFormTables.FormDestroy(Sender: TObject);
    218206begin
    219   FTables.Free;
     207  FreeAndNil(FTables);
    220208end;
    221209
     
    241229    DbClient.Query('SELECT * FROM Model', DbRows);
    242230    for I := 0 to DbRows.Count - 1 do begin
    243       NewTable := Tables.AddNew(TDictionaryStringString(DbRows[I]).Values['Name']);
    244       NewTable.Caption := TDictionaryStringString(DbRows[I]).Values['Caption'];
     231      NewTable := Tables.AddNew(DbRows[I].Items['Name']);
     232      NewTable.Caption := DbRows[I].Items['Caption'];
    245233    end;
    246234    DbRows.Free;
Note: See TracChangeset for help on using the changeset viewer.