Provides functionality for time limited trial application
The following tables list the members exposed by TimeBomb.
Public Constructors
Public Properties
| Name | Description | |
|---|---|---|
|
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 | |
|
Equals | Determines whether the specified |
|
GetHashCode | Serves as a hash function for a particular type. |
|
GetType | Gets the |
|
Reset | Removes all bomb records and resets State property to NonStarted |
|
Save | Saves bomb records |
|
ToString | Returns a |
|
Update | Reads, updates and saves bomb records |
Protected Methods
| Name | Description | |
|---|---|---|
|
Finalize | Allows an |
|
MemberwiseClone | Creates a shallow copy of the current |