[longomatch/redesign3: 77/143] Make subcategories serializable to file
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign3: 77/143] Make subcategories serializable to file
- Date: Mon, 15 Aug 2011 22:51:40 +0000 (UTC)
commit e7fa24dd6cd129103f3554131ad72b3b3fd07d17
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]