[chronojump/michrolab] Create jump type sets also the UniqueID



commit d3fb2bebf4b33c0f08dc840516d7929272ad6a61
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Aug 23 16:14:38 2022 +0200

    Create jump type sets also the UniqueID

 src/eventType.cs       | 3 ++-
 src/sqlite/jumpType.cs | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/eventType.cs b/src/eventType.cs
index 866658fba..1fb705043 100644
--- a/src/eventType.cs
+++ b/src/eventType.cs
@@ -15,7 +15,7 @@
  *  along with this program; if not, write to the Free Software
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- *  Copyright (C) 2004-2017   Xavier de Blas <xaviblas gmail com> 
+ *  Copyright (C) 2004-2022   Xavier de Blas <xaviblas gmail com>
  */
 
 using System;
@@ -66,6 +66,7 @@ public class EventType
        public int UniqueID
        {
                get { return uniqueID; }
+               set { uniqueID = value; }
        }
 
        /*
diff --git a/src/sqlite/jumpType.cs b/src/sqlite/jumpType.cs
index 899cf2b0b..802fef3a6 100644
--- a/src/sqlite/jumpType.cs
+++ b/src/sqlite/jumpType.cs
@@ -502,6 +502,7 @@ class SqliteJumpType : Sqlite
                JumpType myJumpType = new JumpType();
                
                while(reader.Read()) {
+                       myJumpType.UniqueID = Convert.ToInt32(reader[0].ToString());
                        myJumpType.Name = reader[1].ToString();
                        myJumpType.StartIn = Util.IntToBool(Convert.ToInt32(reader[2].ToString()));
                        myJumpType.HasWeight = Util.IntToBool(Convert.ToInt32(reader[3].ToString()));


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