This function obtains total units of the trial period. This is can be minutes, hours, days, weeks, months and they are depending from the dimension.
Syntax
Public Shared Function GetTrialUnitsCount(dimension As Dimension) As Integer
Parameters
enum Dimension - type of the timeframe.
Return value
Returns count of time units which are available in the trial period.
Requirements
File: ItpLibraryNetWrapper.vb
Namespace: ItpLibraryNetClient;
Example
Private
Sub
InitItpControls()
lTrialTimeUnitsTotal.Text =
String
.Format(
"{0} mins | {1} hours | {2} days | {3} weeks | {4} months"
, ItpLibraryNetWrapper.GetTrialUnitsCount(Dimension.Minutes), ItpLibraryNetWrapper.GetTrialUnitsCount(Dimension.Hours), ItpLibraryNetWrapper.GetTrialUnitsCount(Dimension.Days), ItpLibraryNetWrapper.GetTrialUnitsCount(Dimension.Weeks), ItpLibraryNetWrapper.GetTrialUnitsCount(Dimension.Months))
End
Sub