Changeset 62 for trunk/UProject.pas


Ignore:
Timestamp:
Dec 4, 2014, 11:46:40 AM (10 years ago)
Author:
chronos
Message:
  • Modified: Project openned state as property instead of checking FileName.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UProject.pas

    r61 r62  
    99
    1010type
     11
     12  { TProject }
     13
    1114  TProject = class
     15  private
     16    FOpenned: Boolean;
     17    procedure SetOpenned(AValue: Boolean);
     18  public
    1219    Modified: Boolean;
    1320    FileName: string;
     21    property Openned: Boolean read FOpenned write SetOpenned;
    1422  end;
    1523
    1624implementation
    1725
     26{ TProject }
     27
     28
     29procedure TProject.SetOpenned(AValue: Boolean);
     30begin
     31  if FOpenned = AValue then Exit;
     32  FOpenned := AValue;
     33  if AValue then begin
     34    Modified := False;
     35  end else begin
     36    FileName := '';
     37  end;
     38end;
     39
    1840end.
    1941
Note: See TracChangeset for help on using the changeset viewer.