From 8a13613a949b63657bf3345894bdfa76b6dae339 Mon Sep 17 00:00:00 2001 From: apobekiaris Date: Wed, 10 Apr 2019 20:22:40 +0300 Subject: [PATCH] XtraDashboard: DashoardName is not localized #363 --- .../Dashboard/Services/Extensions.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Xpand/Xpand.ExpressApp.Modules/Dashboard/Services/Extensions.cs b/Xpand/Xpand.ExpressApp.Modules/Dashboard/Services/Extensions.cs index f5f0665837..b450ee40c9 100644 --- a/Xpand/Xpand.ExpressApp.Modules/Dashboard/Services/Extensions.cs +++ b/Xpand/Xpand.ExpressApp.Modules/Dashboard/Services/Extensions.cs @@ -11,6 +11,7 @@ using DevExpress.ExpressApp; using DevExpress.ExpressApp.Editors; using DevExpress.ExpressApp.Model; +using DevExpress.ExpressApp.Utils; using DevExpress.ExpressApp.Xpo; using Xpand.ExpressApp.Dashboard.BusinessObjects; using Xpand.Persistent.Base.General; @@ -88,10 +89,11 @@ public static class Extensions{ var exists = dashboard.DataSources.OfType() .Any(source => Equals(source.DataSource, typeWrapper.Type)); if (!exists){ + var name = CaptionHelper.GetClassCaption(typeWrapper.Type.FullName); var dataSource = new DashboardObjectDataSource{ DataSourceType = typeWrapper.Type, - Name = typeWrapper.Type.Name, - ComponentName = typeWrapper.Type.Name + Name = name, + ComponentName = name }; dashboard.DataSources.Add(dataSource); }