明子 通过本文主要向大家介绍了马桶c的个人空间,c语言,欲情 c max,维生素c,奔驰c200等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
本文实例讲述了C#实现DevExpress本地化的方法。分享给大家供大家参考。具体实现方法如下:
using System; using System.Collections.Generic; using System.Text; using DevExpress.XtraGrid.Localization; using DevExpress.XtraBars.Localization; using DevExpress.XtraCharts.Localization; using DevExpress.XtraEditors.Controls; using DevExpress.XtraLayout.Localization; using DevExpress.XtraNavBar; using DevExpress.XtraPivotGrid.Localization; using DevExpress.XtraPrinting.Localization; using DevExpress.XtraReports.Localization; using DevExpress.XtraScheduler.Localization; using DevExpress.XtraTreeList.Localization; using DevExpress.XtraVerticalGrid.Localization; using DevExpress.XtraBars.Customization; namespace Dxperience.LocalizationCHS { public class DevExpressXtraBarsCustomizationLocalizationCHS : CustomizationControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.Container components = null; /// <summary> /// /// </summary> public DevExpressXtraBarsCustomizationLocalizationCHS() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitForm call } /// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); } #region Component Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.tpOptions.SuspendLayout(); this.tpCommands.SuspendLayout(); this.tpToolbars.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.toolBarsList)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lbCommands)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lbCategories)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptionsShowFullMenus.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_showFullMenusAfterDelay.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_showTips.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_ShowShortcutInTips.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tabControl)).BeginInit(); this.tabControl.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbNBDlgName.Properties)).BeginInit(); this.pnlNBDlg.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_largeIcons.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_MenuAnimation.Properties)).BeginInit(); this.SuspendLayout(); // // btClose // this.btClose.Text = "关闭"; // // tpOptions // this.tpOptions.Size = new System.Drawing.Size(354, 246); this.tpOptions.Text = "选项(&O)"; // // tpCommands // this.tpCommands.Text = "命令(&C)"; // // tpToolbars // this.tpToolbars.Text = "工具栏(&B)"; // // btNewBar // this.btNewBar.Text = "新建(&N)"; // // btDeleteBar // this.btDeleteBar.Text = "删除(&D)"; // // lbCommands // this.lbCommands.Appearance.BackColor = System.Drawing.SystemColors.Window; this.lbCommands.Appearance.Options.UseBackColor = true; // // cbOptionsShowFullMenus // this.cbOptionsShowFullMenus.Properties.Caption = "总是显示所有菜单"; // // cbOptions_showFullMenusAfterDelay // this.cbOptions_showFullMenusAfterDelay.Properties.Caption = "鼠标指针短暂停留后显示全部菜单"; // // btOptions_Reset // this.btOptions_Reset.Text = "重置惯用数据(&R)"; // // cbOptions_showTips // this.cbOptions_showTips.Properties.Caption = "显示工具栏屏幕提示(&T)"; // // cbOptions_ShowShortcutInTips // this.cbOptions_ShowShortcutInTips.Properties.Caption = "在屏幕提示中显示快捷键(&H)"; // // lbDescCaption // this.lbDescCaption.Text = "详细说明"; // // lbOptions_Other // this.lbOptions_Other.Text = "其它"; // // lbOptions_PCaption // this.lbOptions_PCaption.Text = "个性化菜单和工具栏"; // // lbCategoriesCaption // this.lbCategoriesCaption.Text = "类别:"; // // lbCommandsCaption // this.lbCommandsCaption.Text = "命令:"; // // lbToolbarCaption // this.lbToolbarCaption.Text = "工具栏:"; // // btResetBar // this.btResetBar.Text = "重置(&R)"; // // tbNBDlgName // // // btRenameBar // this.btRenameBar.Text = "重命名(&E)"; // // cbOptions_largeIcons // this.cbOptions_largeIcons.Properties.Caption = "大图标(&L)"; // // lbOptions_MenuAnimation // this.lbOptions_MenuAnimation.Text = "菜单动画设置(&M):"; // // cbOptions_MenuAnimation // // // DevExpressXtraBarsCustomizationLocalizationCHT // this.Name = "DevExpressXtraBarsCustomizationLocalizationCHT"; this.tpOptions.ResumeLayout(false); this.tpCommands.ResumeLayout(false); this.tpToolbars.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.toolBarsList)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lbCommands)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lbCategories)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptionsShowFullMenus.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_showFullMenusAfterDelay.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_showTips.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_ShowShortcutInTips.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tabControl)).EndInit(); this.tabControl.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.tbNBDlgName.Properties)).EndInit(); this.pnlNBDlg.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_largeIcons.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbOptions_MenuAnimation.Properties)).EndInit(); this.ResumeLayout(false); } #endregion } public class DxperienceXtraGridLocalizationCHS : GridLocalizer { public override string GetLocalizedString(GridStringId id) { switch (id) { case GridStringId.FileIsNotFoundError: return "文件{0}没有找到"; case GridStringId.ColumnViewExceptionMessage: return "是否确定修改?"; case GridStringId.CustomizationCaption: return "自定义显示字段"; case GridStringId.CustomizationColumns: return "列"; case GridStringId.CustomizationBands: return "分区"; case GridStringId.PopupFilterAll: return "(所有)"; case GridStringId.PopupFilterCustom: return "(自定义)"; case GridStringId.PopupFilterBlanks: return "(空值)"; case GridStringId.PopupFilterNonBlanks: return "(非空值)"; case GridStringId.CustomFilterDialogFormCaption: return "自定义筛选条件"; case GridStringId.CustomFilterDialogCaption: return "条件为:"; case GridStringId.CustomFilterDialogRadioAnd: return "并且"; case GridStringId.CustomFilterDialogRadioOr: retu