[longomatch] Use a List for Drawings to fix serialization issues



commit a1772fd62cf62751a150139f221e1c99262de411
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Aug 24 21:43:19 2011 +0200

    Use a List for Drawings to fix serialization issues

 LongoMatch/LongoMatch.mdp        |    1 -
 LongoMatch/Makefile.am           |    1 -
 LongoMatch/Services/DataBase.cs  |    1 -
 LongoMatch/Store/DrawingsList.cs |   92 --------------------------------------
 LongoMatch/Store/Play.cs         |    6 +-
 LongoMatch/Store/PlayListPlay.cs |    2 +-
 po/POTFILES.in                   |    1 -
 7 files changed, 4 insertions(+), 100 deletions(-)
---
diff --git a/LongoMatch/LongoMatch.mdp b/LongoMatch/LongoMatch.mdp
index b1ee43e..72d5161 100644
--- a/LongoMatch/LongoMatch.mdp
+++ b/LongoMatch/LongoMatch.mdp
@@ -152,7 +152,6 @@
     <File subtype="Code" buildaction="Compile" name="Store/ProjectDescription.cs" />
     <File subtype="Code" buildaction="Compile" name="Store/Category.cs" />
     <File subtype="Code" buildaction="Compile" name="Store/Drawing.cs" />
-    <File subtype="Code" buildaction="Compile" name="Store/DrawingsList.cs" />
     <File subtype="Code" buildaction="Compile" name="Store/HotKey.cs" />
     <File subtype="Code" buildaction="Compile" name="Store/PixbufTimeNode.cs" />
     <File subtype="Code" buildaction="Compile" name="Store/Play.cs" />
diff --git a/LongoMatch/Makefile.am b/LongoMatch/Makefile.am
index e38b961..ac6832f 100644
--- a/LongoMatch/Makefile.am
+++ b/LongoMatch/Makefile.am
@@ -127,7 +127,6 @@ SOURCES = \
 	Services/TemplatesService.cs \
 	Store/Category.cs \
 	Store/Drawing.cs \
-	Store/DrawingsList.cs \
 	Store/HotKey.cs \
 	Store/PixbufTimeNode.cs \
 	Store/Play.cs \
diff --git a/LongoMatch/Services/DataBase.cs b/LongoMatch/Services/DataBase.cs
index dab5bfd..a922b81 100644
--- a/LongoMatch/Services/DataBase.cs
+++ b/LongoMatch/Services/DataBase.cs
@@ -392,7 +392,6 @@ namespace LongoMatch.DB
 			types.Add(typeof(PlayersTagStore));
 			types.Add(typeof(TeamsTagStore));
 			types.Add(typeof(StringTagStore));
-			types.Add(typeof(DrawingsList));
 
 			return types;
 		}
diff --git a/LongoMatch/Store/Play.cs b/LongoMatch/Store/Play.cs
index 50d7262..baf9713 100644
--- a/LongoMatch/Store/Play.cs
+++ b/LongoMatch/Store/Play.cs
@@ -38,7 +38,7 @@ namespace LongoMatch.Store
 
 		#region Constructors
 		public Play() {
-			Drawings = new DrawingsList();
+			Drawings = new List<Drawing>();
 			Tags = new StringTagStore();
 			Players = new PlayersTagStore(); 
 			Teams = new TeamsTagStore();
@@ -119,7 +119,7 @@ namespace LongoMatch.Store
 		/// <summary>
 		/// List of drawings for this play
 		/// </summary>
-		public DrawingsList Drawings {
+		public List<Drawing> Drawings {
 			get;
 			set;
 		}
@@ -128,7 +128,7 @@ namespace LongoMatch.Store
 		public Drawing KeyFrameDrawing {
 			get {
 				if(Drawings.Count > 0)
-					return Drawings.ElementAt(0).Value;
+					return Drawings.First();
 				else
 					return null;
 			}
diff --git a/LongoMatch/Store/PlayListPlay.cs b/LongoMatch/Store/PlayListPlay.cs
index eb00b9c..2e5d665 100644
--- a/LongoMatch/Store/PlayListPlay.cs
+++ b/LongoMatch/Store/PlayListPlay.cs
@@ -66,7 +66,7 @@ namespace LongoMatch.Store
 		/// <summary>
 		/// List of drawings to be displayed
 		/// </summary>
-		public DrawingsList Drawings {
+		public List<Drawing> Drawings {
 			get;
 			set;
 		}
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 02cb46f..7d150cd 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,7 +3,6 @@ LongoMatch/longomatch.desktop.in.in
 LongoMatch/Playlist/IPlayList.cs
 LongoMatch/Playlist/PlayList.cs
 LongoMatch/Store/PlayListPlay.cs
-LongoMatch/Store/DrawingsList.cs
 LongoMatch/Store/Time.cs
 LongoMatch/Store/Player.cs
 LongoMatch/Store/Project.cs



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