GetTrialUnitsCount
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 static int GetTrialUnitsCount(Dimension dimension)

Parameters
enum Dimension - type of the timeframe.

Return value
Returns count of time units which are available in the trial period.

Requirements
File: ItpLibraryNetWrapper.cs
Namespace: ItpLibraryNetClient;

Example
void InitControls()
{
    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));
}
Copyright 2006 - 2024 by IntelliProtector - Software Protection and Licensing Services