|
@@ -1,4 +1,7 @@
|
|
|
-using DevExpress.XtraBars.Docking2010;
|
|
|
+using DevExpress.Map.Localization;
|
|
|
+using DevExpress.Utils.Filtering.Internal;
|
|
|
+using DevExpress.Utils.Localization;
|
|
|
+using DevExpress.XtraBars.Docking2010;
|
|
|
using DevExpress.XtraBars.Localization;
|
|
|
using DevExpress.XtraEditors;
|
|
|
using DevExpress.XtraEditors.Controls;
|
|
@@ -9,6 +12,7 @@ using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
+using System.Windows;
|
|
|
|
|
|
namespace XdCxRhDW
|
|
|
{
|
|
@@ -33,8 +37,51 @@ namespace XdCxRhDW
|
|
|
|
|
|
//Control
|
|
|
Localizer.Active = new ChsControlLocalizer();
|
|
|
+
|
|
|
+ XtraLocalizer.QueryLocalizedString += XtraLocalizer_QueryLocalizedString;
|
|
|
+ }
|
|
|
+
|
|
|
+ private static void XtraLocalizer_QueryLocalizedString(object sender, XtraLocalizer.QueryLocalizedStringEventArgs e)
|
|
|
+ {
|
|
|
+ if (e.StringIDType == typeof(StringId))
|
|
|
+ {
|
|
|
+ if ((StringId)e.StringID == StringId.FilterShowAll)
|
|
|
+ {
|
|
|
+ e.Value = "(全选)";
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ else if (e.StringIDType == typeof(GridStringId))
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ else if (e.StringIDType == typeof(BarString))
|
|
|
+ {
|
|
|
+ }
|
|
|
+ else if (e.StringIDType == typeof(DocumentManagerStringId))
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ else if (e.StringIDType == typeof(LayoutStringId))
|
|
|
+ {
|
|
|
+ }
|
|
|
+ else if (e.StringIDType == typeof(MapStringId))
|
|
|
+ {
|
|
|
+ }
|
|
|
+ else if (e.StringIDType == typeof(FilteringLocalizerStringId))
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ else if (e.StringIDType == typeof(FilterUIElementLocalizerStringId))
|
|
|
+ {
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
class ChsControlLocalizer : Localizer
|
|
|
{
|