Provides functionality for time limited trial application
The following tables list the members exposed by TimeBomb.
Public Constructors
Public Properties
Name | Description | |
---|---|---|
![]() |
BackTimeTolerance | Sets and gets the maximum time interval (in seconds) that the bomb can tolerate when calculating IsHacked property. The default and recomended value is 3601 (1 hour + 1 second), to prevent IsHacked misfires when the time switches back from DST. |
![]() |
DaysLeft | Gets the number of days left until the bomb expires |
![]() |
EndDate | Gets the date of last trial day |
![]() |
IsExpired | Gets and sets a value indicating whether the trial is expired or not |
![]() |
IsHacked | Returns 'true' when users attempts to hack the bomb by reverting system time. If IsHacked is true then IsExpired is also true. |
![]() |
IsStarted | Gets a value indicating whether the bomb is started or not. The bomb starts after first Update() call and can become non-started after Reset() call |
![]() |
IsTrialActive | Returns true if the current date is within limits of trial. |
![]() |
LastRun | Returns the date of previous Update() call (usualy the same as last application run) |
![]() |
StartDate | Gets and sets first run date |
![]() |
State | Gets bomb's current state |
![]() |
TrialLength | Gets trial length in days |
Public Methods
Name | Description | |
---|---|---|
![]() |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() |
Equals | (inherited from Object) |
![]() |
GetHashCode | (inherited from Object) |
![]() |
GetType | (inherited from Object) |
![]() |
Reset | Removes all bomb records and resets State property to NonStarted. |
![]() |
Save | Saves bomb records |
![]() |
ToString | (inherited from Object) |
![]() |
Update | Reads, updates and saves bomb records |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (inherited from Object) |
![]() |
MemberwiseClone | (inherited from Object) |