[longomatch] Fixate some Enum values, as they must match the hard-coded values in the UI.



commit ebb41e69b3b97ec68969a0b24db98397766a4761
Author: Xavi Artigas <xartigas fluendo com>
Date:   Tue Apr 14 18:22:51 2015 +0200

    Fixate some Enum values, as they must match the hard-coded values in the UI.

 LongoMatch.Core/Common/Enums.cs |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Enums.cs b/LongoMatch.Core/Common/Enums.cs
index eecd1a7..307df20 100644
--- a/LongoMatch.Core/Common/Enums.cs
+++ b/LongoMatch.Core/Common/Enums.cs
@@ -428,17 +428,21 @@ namespace LongoMatch.Core.Common
                Analysis,
        }
 
+       /* The values must be kept in sync with the combobox in
+        * LongoMatch.GUI/Gui/Component/LinkProperties.cs */
        public enum LinkAction
        {
-               Toggle,
-               Replicate,
+               Toggle = 0,
+               Replicate = 1,
        }
 
+       /* The values must be kept in sync with the combobox in
+        * LongoMatch.GUI/Gui/Component/LinkProperties.cs */
        public enum TeamLinkAction
        {
-               Clear,
-               Keep,
-               Invert
+               Clear = 0,
+               Keep = 1,
+               Invert = 2
        }
 
        public enum DashboardMode


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]