[tasque/viewmodel: 58/78] Make TaskNote a concrete class
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/viewmodel: 58/78] Make TaskNote a concrete class
- Date: Wed, 29 Aug 2012 18:39:32 +0000 (UTC)
commit c6884f6729ebc2a9ff3ac44dae5819dde1bb7eba
Author: Antonius Riha <antoniusriha gmail com>
Date: Wed Aug 8 18:22:46 2012 +0200
Make TaskNote a concrete class
src/libtasque/TaskNote.cs | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/src/libtasque/TaskNote.cs b/src/libtasque/TaskNote.cs
index a20b55c..955c5ee 100644
--- a/src/libtasque/TaskNote.cs
+++ b/src/libtasque/TaskNote.cs
@@ -1,8 +1,3 @@
-// ICategory.cs created with MonoDevelop
-// User: boyd at 9:04 AMÂ2/11/2008
-//
-// To change standard headers go to Edit->Preferences->Coding->Standard Headers
-//
//
// TaskNote.cs
//
@@ -31,8 +26,20 @@
namespace Tasque
{
- public abstract class TaskNote
+ public class TaskNote
{
- public abstract string Text { get; set; }
+ public TaskNote ()
+ {
+ Text = string.Empty;
+ }
+
+ public TaskNote (string text)
+ {
+ if (text == null)
+ throw new System.ArgumentNullException ("text");
+ Text = text;
+ }
+
+ public string Text { get; set; }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]