Provides functionality for time limited trial application


The following tables list the members exposed by TimeBomb.

Public Constructors

  Name Description
Public method TimeBomb Constructor
Top

Public Properties

  Name Description
Public property DaysLeft Gets the number of days left until the bomb expires
Public property EndDate Gets the date of last trial day
Public property IsExpired Gets and sets a value indicating whether the trial is expired or not
Public property IsHacked Returns 'true' when users attempts to hack the bomb by reverting system time. If IsHacked is true then IsExpired is also true.
Public property 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
Public property IsTrialActive Returns true if the current date is within limits of trial.
Public property LastRun Returns the date of previous Update() call (usualy the same as last application run)
Public property StartDate Gets and sets first run date
Public property State Gets bomb's current state
Public property TrialLength Gets trial length in days
Top

Public Methods

  Name Description
Public method Dispose  
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method Reset Removes all bomb records and resets State property to NonStarted
Public method Save Saves bomb records
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Public method Update Reads, updates and saves bomb records
Top

Protected Methods

  Name Description
Family method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object)
Top

See Also