Ignore:
Timestamp:
Jan 22, 2018, 10:36:38 AM (7 years ago)
Author:
chronos
Message:
  • Added: Description property in TApplicationInfo.
  • Modified: Initialize TRegistryContext using Create method instead of function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/UApplicationInfo.pas

    r468 r501  
    1414  TApplicationInfo = class(TComponent)
    1515  private
     16    FDescription: string;
    1617    FIdentification: Byte;
    1718    FLicense: string;
     
    3334    constructor Create(AOwner: TComponent); override;
    3435    property Version: string read GetVersion;
     36    function GetRegistryContext: TRegistryContext;
    3537  published
    3638    property Identification: Byte read FIdentification write FIdentification;
     
    4547    property EmailContact: string read FEmailContact write FEmailContact;
    4648    property AppName: string read FAppName write FAppName;
     49    property Description: string read FDescription write FDescription;
    4750    property ReleaseDate: TDateTime read FReleaseDate write FReleaseDate;
    4851    property RegistryKey: string read FRegistryKey write FRegistryKey;
     
    7982end;
    8083
     84function TApplicationInfo.GetRegistryContext: TRegistryContext;
     85begin
     86  Result := TRegistryContext.Create(RegistryRoot, RegistryKey);
     87end;
     88
    8189end.
Note: See TracChangeset for help on using the changeset viewer.