// SqliteNote.cs created with MonoDevelop
// User: calvin at 10:56 AM 2/12/2008
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//

namespace Tasque.Backends.Sqlite
{
	public class SqliteNote : TaskNote
	{
		private int id;
		private string text;

		public SqliteNote (int id, string text)
		{
			this.id = id;
			this.text = text;
		}

		public string Text {
			get { return this.text; }
			set { this.text = value; }
		}

		public int ID {
			get { return this.id; }
		}
	}
}

// SqliteNote.cs created with MonoDevelop
// User: calvin at 10:56 AM 2/12/2008
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//
using System;

namespace Tasque.Backends.Sqlite
{
	public class SqliteNote : TaskNote
	{
		public SqliteNote (int id, string text) : base (text)
		{
			Id = id;
		}

		public int Id { get; private set; }
		
		protected override void OnTextChanged ()
		{
			if (OnTextChangedAction != null)
				OnTextChangedAction ();
			base.OnTextChanged ();
		}
		
		internal Action OnTextChangedAction { get; set; }
	}
}

Adjust to new model. Provide change callback for task.
[SQLite] TaskNote: Adjust to new model. Provide change callback for task.

TaskNote receives change notification from base class. SQLiteNote is
entirely handled by owning task. Therefore the task reacts to changes in
the note. A callback "OnTextChangedAction" enables the task to do so.