1、首先在窗体的构造函数中重新定义控件的活动属性(看不懂可以联系本人个人资料里有MSN和QQ玉石价值) 例如要修改GridControl列的右键菜单 GridLocalizer.Active = new XtraGridLocalizationCHS(); 然后在另外一个类里面定义如下 public class XtraGridLocalizationCHS : GridLocalizer { public override string GetLocalizedString(GridStringId id) { switch (id) { ca GridStringId.CardViewNewCard: return "新卡片"; ca GridStringId.CardViewQuickCustomizationButton: return "自定义格式"; ca GridStringId.CardViewQuickCustomizationButtonFilter: return "筛选"; ca GridStringId.CardViewQuickCustomizationButtonSort: return "排序:"; ca GridStringId.ColumnViewExceptionMessage: return "是否确定修改?"; ca GridStringId.CustomFilterDialog2FieldCheck: return "字段"; ca GridStringId.CustomFilterDialogCancelButton: return "取消(&C)"; ca GridStringId.CustomFilterDialogCaption: return "条件为:"; ca GridStringId.CustomFilterDialogClearFilter: return "清除筛选条件(&L)"; ca GridStringId.CustomFilterDialogConditionBlanks: return "空值"; ca GridStringId.CustomFilterDialogConditionEQU: return "等于="; ca GridStringId.CustomFilterDialogConditionGT: return "大于>"; ca GridStringId.CustomFilterDialogConditionGTE: return "大于或等于>="; ca GridStringId.CustomFilterDialogConditionLT: return "小于<"; ca GridStringId.CustomFilterDialogConditionLTE: return "小于或等于<="; 外墙涂料施工 ca GridStringId.CustomFilterDialogConditionLike: return "包含"; ca GridStringId.CustomFilterDialogConditionNEQ: return "不等于<>"; ca GridStringId.CustomFilterDialogConditionNonBlanks: return "非空值"; ca GridStringId.CustomFilterDialogConditionNotLike: return "不包含硬笔书法课"; ca GridStringId.CustomFilterDialogFormCaption: return "自定义筛选条件"; ca GridStringId.CustomFilterDialogOkButton: return "确定(&O)"; ca GridStringId.CustomFilterDialogRadioAnd: return "并且"; ca GridStringId.CustomFilterDialogRadioOr: return "或者"; ca GridStringId.CustomizationBands: return "分区"; ca GridStringId.CustomizationCaption: return "自定义显示字段"; ca GridStringId.CustomizationColumns: return "列"; ca GridStringId.FileIsNotFoundError: return "文件{0}没有找到"; ca GridStringId.FilterBuilderApplyButton: return "应用"; ca GridStringId.FilterBuilderCancelButton: return "取消"; ca GridStringId.FilterBuilderCaption: return "筛选编辑器"; ca GridStringId.FilterBuilderOkButton: return "确定"; ca GridStringId.FilterPanelCustomizeButton: return "自定义"; ca GridStringId.GridGroupPanelText: return ""; ca GridStringId.GridNewRowText: return "新增资料"; ca GridStringId.GridOutlookIntervals: return "一个月以上;上个月;三周前;两周前;上周;;;;;;;;昨天;今天;明天; ;;;;;;;下周;两周后;三周后;下个月;一个月之后;"; ca GridStringId.MenuColumnBestFit: return "最佳匹配"; ca GridStringId.MenuColumnBestFitAllColumns: return "最佳匹配所有字段"; ca GridStringId.MenuColumnClearFilter: return "清除筛选条件"; ca GridStringId.MenuColumnClearSorting: return "清除排序"; ca GridStringId.MenuColumnColumnCustomization: return "显示螃蟹炒年糕/隐藏字段"; ca GridStringId.MenuColumnRemoveColumn: return "删除此列"; ca GridStringId.MenuColumnFilter: return "筛选"; ca GridStringId.MenuColumnFilterEditor: return "筛选编辑器"; ca GridStringId.MenuColumnGroup: return "按此列分组"; ca GridStringId.MenuColumnGroupBox: return "显示/隐藏分组区"; ca GridStringId.MenuColumnSortAscending: return "升序排序"; ca GridStringId.MenuColumnSortDescending: return "降序排序"; ca GridStringId.MenuColumnUnGroup: return "取消分组"; ca GridStringId.MenuFooterAverage: return "平均"; ca GridStringId.MenuFooterAverageFormat: return "平均={0:#.##}"; ca GridStringId.MenuFooterCount: return "计数";酒后驾驶处罚新标准 ca GridStringId.MenuFooterCountFormat: return "{0}"; 文天祥爱国事迹 ca GridStringId.MenuFooterCountGroupFormat: return "骨头错位计数={0}"; ca GridStringId.MenuFooterCustomFormat: return "自定={0}"; ca GridStringId.MenuFooterMax: return "最大"; ca GridStringId.MenuFooterMaxFormat: return "最大={0}"; ca GridStringId.MenuFooterMin: return "最小"; ca GridStringId.MenuFooterMinFormat: return "最小={0}"; ca GridStringId.MenuFooterNone: return "空"; ca GridStringId.MenuFooterSum: return "合计"; ca GridStringId.MenuFooterSumFormat: return "合计={0:#.##}"; ca GridStringId.MenuGroupPanelClearGrouping: return "清除所有分组"; ca GridStringId.MenuGroupPanelFullCollap: return "收缩全部分组"; ca GridStringId.MenuGroupPanelFullExpand: return "展开全部分组"; ca GridStringId.PopupFilterAll: return "(所有)"; ca GridStringId.PopupFilterBlanks: return "(空值)"; ca GridStringId.PopupFilterCustom: return "(自定义)"; ca GridStringId.PopupFilterNonBlanks: return "(非空值)"; ca GridStringId.PrintDesignerBandHeader: return "区标题"; ca GridStringId.PrintDesignerBandedView: return "打印设置(区域模式)"; ca GridStringId.PrintDesignerCardView: return "打印设置(卡片模式)"; ca GridStringId.PrintDesignerDescription: return "为当前视图设置不同的打印选项."; ca GridStringId.PrintDesignerGridView: return "打印设置(表格模式)"; ca GridStringId.WindowErrorCaption: break; default: break; } return ba.GetLocalizedString(id); } public override string Language 诚邀 { get { return "简体中文"; } } } |
本文发布于:2023-07-26 12:07:13,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/fan/89/1097322.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |