Changeset 134 for trunk/UVCardFile.pas


Ignore:
Timestamp:
Apr 10, 2022, 1:54:34 PM (3 years ago)
Author:
chronos
Message:
  • Modified: UDataFile unit moved into Common package and TDataFile class made TComponent descendant.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UVCardFile.pas

    r129 r134  
    1919    procedure SaveToFile(FileName: string); override;
    2020    procedure LoadFromFile(FileName: string); override;
    21     procedure Assign(Source: TVCardFile);
    22     constructor Create; override;
     21    procedure Assign(Source: TPersistent); override;
     22    constructor Create(AOwner: TComponent); override;
    2323    destructor Destroy; override;
    2424  end;
     
    6464end;
    6565
    66 procedure TVCardFile.Assign(Source: TVCardFile);
     66procedure TVCardFile.Assign(Source: TPersistent);
    6767begin
    68   inherited Assign(Source);
    69   VCard.Assign(Source.VCard);
     68  inherited;
     69  if Source is TVCardFile then
     70    VCard.Assign(TVCardFile(Source).VCard);
    7071end;
    7172
    72 constructor TVCardFile.Create;
     73constructor TVCardFile.Create(AOwner: TComponent);
    7374begin
    7475  inherited;
Note: See TracChangeset for help on using the changeset viewer.