Changeset 406 for ISPProgrammer/UISPProgrammer.pas
- Timestamp:
- Aug 14, 2012, 10:28:11 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ISPProgrammer/UISPProgrammer.pas
r370 r406 20 20 private 21 21 FActive: Boolean; 22 FOnActivate: TNotifyEvent; 23 FOnDeactivate: TNotifyEvent; 22 24 FOnLog: TLogEvent; 23 25 FCPUType: TCPUType; … … 45 47 property Active: Boolean read FActive write SetActive; 46 48 property CPUType: TCPUType read GetCPUType write SetCPUType; 49 property OnActivate: TNotifyEvent read FOnActivate write FOnActivate; 50 property OnDeactivate: TNotifyEvent read FOnDeactivate write FOnDeactivate; 47 51 end; 48 52 … … 68 72 if FActive = AValue then Exit; 69 73 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; 70 81 end; 71 82
Note:
See TracChangeset
for help on using the changeset viewer.