/// <summary> /// <see cref="ToolsDialog.DoLocalization"/> /// </summary> /// <param name="localization">localized values</param> protected internal override void DoLocalization(DialogLocalization localization) { Text = localization["Title", Text]; labelAssemblyInfo.Text = localization["labelAssemblyInfo", labelAssemblyInfo.Text]; buttonClipboardCopy.Text = localization["buttonClipboardCopy", buttonClipboardCopy.Text]; buttonClose.Text = localization["buttonClose", buttonClose.Text]; colType.HeaderText = localization["Type", colType.HeaderText]; colValue.HeaderText = localization["Value", colValue.HeaderText]; }
/// <summary> /// <see cref="ToolsDialog.DoLocalization"/> /// </summary> /// <param name="localization">localized values</param> protected internal override void DoLocalization(DialogLocalization localization) { Text = String.Format("{0} {1}", localization["Title", Text], _headerCaption); labelLicenceHeader.Text = localization["LicenceHeader", labelLicenceHeader.Text]; buttonClose.Text = localization["buttonClose", buttonClose.Text]; }
/// <summary> /// Do localization in form instance /// </summary> /// <param name="localization">localized values</param> protected internal virtual void DoLocalization(DialogLocalization localization) { }
/// <summary> /// <see cref="ToolsDialog.DoLocalization"/> /// </summary> /// <param name="localization">localized values</param> protected internal override void DoLocalization(DialogLocalization localization) { Text = localization["Title", Text]; labelErrorHeader.Text = localization["ErrorHeader", labelErrorHeader.Text]; if (labelErrorMessage.Text.Equals(_errorMessageTemplate, StringComparison.InvariantCultureIgnoreCase)) labelErrorMessage.Text = localization["ErrorMessage", ""]; colMessage.HeaderText = localization["Message", colMessage.HeaderText]; colType.HeaderText = localization["Type", colType.HeaderText]; colSource.HeaderText = localization["Source", colSource.HeaderText]; buttonShowDetails.Text = localization["buttonShowDetails", buttonShowDetails.Text]; buttonClose.Text = localization["buttonClose", buttonClose.Text]; buttonClipboardCopy.Text = localization["buttonClipboardCopy", buttonClipboardCopy.Text]; }