Ignore:
Timestamp:
Aug 14, 2012, 10:28:11 AM (12 years ago)
Author:
chronos
Message:
  • Modified: TDallasProgrammer in ISPProgrammer package will use existed external serial port instead creating own.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ISPProgrammer/UISPProgrammer.pas

    r370 r406  
    2020  private
    2121    FActive: Boolean;
     22    FOnActivate: TNotifyEvent;
     23    FOnDeactivate: TNotifyEvent;
    2224    FOnLog: TLogEvent;
    2325    FCPUType: TCPUType;
     
    4547    property Active: Boolean read FActive write SetActive;
    4648    property CPUType: TCPUType read GetCPUType write SetCPUType;
     49    property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;
     50    property OnDeactivate: TNotifyEvent read FOnDeactivate write FOnDeactivate;
    4751  end;
    4852
     
    6872  if FActive = AValue then Exit;
    6973  FActive := AValue;
     74  if AValue then begin
     75    if Assigned(FOnActivate) then
     76      FOnActivate(Self);
     77  end else begin
     78    if Assigned(FOnDeactivate) then
     79      FOnDeactivate(Self);
     80  end;
    7081end;
    7182
Note: See TracChangeset for help on using the changeset viewer.