/// /// Initialisation pour une Winform /// /// public frmMain() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // WinLocalizerParams.CurrentLocalizer = WinSimpleLocalizer.newLocalizer ("MLWinControlsDEMO.res", new System.Globalization.CultureInfo ("fr")); if (!((WinSimpleLocalizer)WinLocalizerParams.CurrentLocalizer).RegisterFormAndToolTip (this, this.toolTip1)) MessageBox.Show ("Failed to register tooltip."); } /// /// Initialisation pour une WebForm (fichier Global.asax) /// /// protected void Session_Start(Object sender, EventArgs e) { Session[PSSoft.MLWeb.MLLocalizers.WebSimpleLocalizer.SIMPLELOCALIZER_SESSION_CULTURE] = System.Globalization.CultureInfo.CreateSpecificCulture("fr"); Session[PSSoft.MLWeb.MLLocalizers.WebSimpleLocalizer.SIMPLELOCALIZER_SESSION_RESMAN] = new System.Resources.ResourceManager ("MLWebControlsDEMO.res", typeof(WebForm1).Assembly); Session["sessionPSLocalizer"] = PSSoft.MLWeb.MLLocalizers.WebSimpleLocalizer.newLocalizer(); }