Changeset 52 for trunk/UAcronym.pas


Ignore:
Timestamp:
Jul 25, 2016, 5:37:39 PM (8 years ago)
Author:
chronos
Message:
  • Added: Remember last import date for import sources.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UAcronym.pas

    r50 r52  
    181181    Sources: TImportSources;
    182182    ItemCount: Integer;
     183    LastImportTime: TDateTime;
    183184    Categories: TAcronymCategories;
    184185    UserName: string;
     
    543544    else raise Exception.Create(SUnsupportedImportFormat);
    544545  end;
     546  LastImportTime := Now;
    545547end;
    546548
     
    761763  UserName := Source.UserName;
    762764  Password := Source.Password;
     765  LastImportTime := Source.LastImportTime;
    763766end;
    764767
     
    773776  WriteBoolean(Node, 'Enabled', Enabled);
    774777  WriteInteger(Node, 'ItemCount', ItemCount);
     778  WriteDateTime(Node, 'LastImportTime', LastImportTime);
    775779  WriteString(Node, 'UserName', UserName);
    776780
     
    790794  ItemCount := ReadInteger(Node, 'ItemCount', 0);
    791795  UserName := ReadString(Node, 'UserName', '');
     796  LastImportTime := ReadDateTime(Node, 'LastImportTime', 0);
    792797
    793798  Categories.Db := Sources.AcronymDb;
Note: See TracChangeset for help on using the changeset viewer.