Changeset 14 for trunk/UCore.pas


Ignore:
Timestamp:
Jun 10, 2011, 2:16:52 PM (13 years ago)
Author:
george
Message:
  • Added: Classes for base data types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r12 r14  
    66
    77uses
    8   Classes, SysUtils, FileUtil, UCoolTranslator;
     8  Classes, SysUtils, FileUtil, UCoolTranslator, USystem, USqlDatabase;
    99
    1010type
     
    1414  TCore = class(TDataModule)
    1515    CoolTranslator1: TCoolTranslator;
     16    procedure DataModuleCreate(Sender: TObject);
     17    procedure DataModuleDestroy(Sender: TObject);
    1618  private
    1719    { private declarations }
    1820  public
    19     { public declarations }
    20   end; 
     21    System: TChronisBase;
     22  end;
    2123
    2224var
     
    2729{$R *.lfm}
    2830
     31{ TCore }
     32
     33procedure TCore.DataModuleCreate(Sender: TObject);
     34begin
     35  System := TChronisBase.Create;
     36  System.Database := TSqlDatabase.Create;
     37end;
     38
     39procedure TCore.DataModuleDestroy(Sender: TObject);
     40begin
     41  System.Free;
     42end;
     43
    2944end.
    3045
Note: See TracChangeset for help on using the changeset viewer.