[longomatch/redesign: 81/82] Make subcategories serializable to file
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign: 81/82] Make subcategories serializable to file
- Date: Mon, 14 Mar 2011 00:23:38 +0000 (UTC)
commit ca75fe922f47afff72373be64300f4782d0ce474
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Mar 13 20:42:12 2011 +0100
Make subcategories serializable to file
LongoMatch/Store/SubCategory.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch/Store/SubCategory.cs b/LongoMatch/Store/SubCategory.cs
index b734594..ad6d2ba 100644
--- a/LongoMatch/Store/SubCategory.cs
+++ b/LongoMatch/Store/SubCategory.cs
@@ -74,6 +74,14 @@ namespace LongoMatch.Store
get;
set;
}
+
+ public void Save(string filePath) {
+ SerializableObject.Save(this, filePath);
+ }
+
+ public static SubCategory Load(string filePath) {
+ return SerializableObject.Load<SubCategory>(filePath);
+ }
}
public class TagSubCategory: SubCategory
@@ -128,5 +136,6 @@ namespace LongoMatch.Store
set;
}
}
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]