|
GetTrialUnitsLeftCount |
Top Previous Next |
|
This function returns how many time units remain till registration. During this period the software is still in the trial mode.
public static int IntelliProtector.GetTrialUnitsLeftCount(int dimension);
Parameters
int dimensions - type of the timeframe, where: 0 - minutes 1 - hours 2 - weeks 3 - days 4 - months
You can use the predefined enum from the IntelliProtector class: enUnitDimension public enum enUnitDimension { eudMinutes, eudHours, eudDays, eudWeeks, eudMonths };
Return value
Returns the number of trial units left.
Requirements
file: IntelliProtector.cs namespace: IntelliProtectorService;
Example
public void ShowTrialDaysLeft() { int trialDaysLeftQty = IntelliProtector.GetTrialUnitsLeftCount(IntelliProtector.enUnitDimension.eudDays); String daysLeftMessage = String.Format("Trial will expire in {0} days", trialDaysLeftQty); MessageBox.Show(daysLeftMessage); }
|
| Copyright © 2011 intelliprotector.com |