IConnection.ChangeLocaleRequest Event

The ChangeLocaleRequest event is triggered when a language change occurs in the runtime system.

Namespace – ABSuite.AccessLayer.Connector.Core

Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)

Syntax

event EventHandler<ConnectionEventArgs> ChangeLocaleRequest

Using the IConnection Interface for the ChangeLocaleRequest Event

The following code is an example of using the ChangeLocaleRequest Event:

// Register for the Locale Change event, update the client language 
// to load up resources for the new language
this.Connection.ChangeLocaleRequest += (o, ee) =>
{
if (ee.Locale > 0)
       {
         this.Language = this.Languages.FirstOrDefault(l => l.Culture.LCID == ee.Locale);
       };
};