C# Class FiftyOne.Foundation.UI.Web.Detection

Display a user interface to enable the user to enter a Premium license key and upgrade Foundation to the premium product. If the fiftyOne/detection element does not exist in the configuration this element is added and the binaryFilePath set to "51Degrees-Premium.dat". The licence key will be written to a file called 51Degrees.mobi.lic in the bin folder. If the site is running in medium trust mode the operation will fail and a message will be displayed to the user. The control also contains a check box to enable / disable the sharing of usage information with 51Degrees.mobi.
Inheritance: BaseDataControl
ファイルを表示 Open project: 51Degrees/dotNET-Device-Detection

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

Load the controls which will form the user interface.

OnPreRender ( EventArgs e ) : void

Sets the visible status of the instruction messages.

Private Methods

Method Description
DisplayResults ( ActivityResult result ) : void

Displays the results returned from an activation or an upload activity.

_buttonActivate_Click ( object sender, EventArgs e ) : void

Fired when the user presses the Activate button.

_buttonRefresh_Click ( object sender, EventArgs e ) : void

Used to refresh the page after the activation has been successful.

_shareUsage_ShareUsageChanged ( object sender, string html ) : void

Displays the result of the share usage change.

_upload_UploadComplete ( object sender, ActivityResult e ) : void

Displays the results to the user.

Method Details

OnInit() protected method

Load the controls which will form the user interface.
protected OnInit ( EventArgs e ) : void
e System.EventArgs
return void

OnPreRender() protected method

Sets the visible status of the instruction messages.
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs
return void