From 9899e01051ae7be0cdd0c57dfd414f76926a4f18 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 25 Jul 2019 16:48:04 +0300 Subject: Order Index PPC catalogs rendering. --- .../PPC/Tango.PPC.Common/Controls/TwineCatalogRenderer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Controls') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Controls/TwineCatalogRenderer.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Controls/TwineCatalogRenderer.cs index eafef2847..a3b65d17a 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Controls/TwineCatalogRenderer.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Controls/TwineCatalogRenderer.cs @@ -232,7 +232,7 @@ namespace Tango.PPC.Common.Controls if (Groups != null) { - foreach (var group in Groups) + foreach (var group in Groups.OrderBy(x => x.GroupIndex)) { position_x = 0; @@ -240,7 +240,7 @@ namespace Tango.PPC.Common.Controls position_y += ellipseMargin; - foreach (var item in group.ColorCatalogsItems) + foreach (var item in group.ColorCatalogsItems.OrderBy(x => x.ItemIndex)) { double x = position_x + ellipseMargin; -- cgit v1.3.1