/// <summary> /// Saves a note in a task /// </summary> /// <param name="note"> /// A <see cref="INote"/> /// </param> public override void SaveNote(INote note) { Logger.Debug("SaveNote : " + note.Text); HmNote hmNote = new HmNote(this.task); hmNote.Text = note.Text; notes.Clear(); notes.Add(hmNote); this.backend.UpdateTask(this); }
/// <summary> /// Adds a note to a task /// </summary> /// <param name="note"> /// A <see cref="INote"/> /// </param> public override INote CreateNote(string text) { Logger.Debug("CreateNote : " + text); HmNote hmNote = new HmNote(this.task); hmNote.Text = text; notes.Clear(); notes.Add(hmNote); this.backend.UpdateTask(this); return(hmNote); }
/// <summary> /// Saves a note in a task /// </summary> /// <param name="note"> /// A <see cref="INote"/> /// </param> public override void SaveNote(TaskNote note) { Debug.WriteLine ("SaveNote : " + note.Text); HmNote hmNote = new HmNote (this.task); hmNote.Text = note.Text; notes.Clear (); notes.Add (hmNote); this.backend.UpdateTask (this); }
/// <summary> /// Adds a note to a task /// </summary> /// <param name="note"> /// A <see cref="INote"/> /// </param> public override TaskNote CreateNote(string text) { Debug.WriteLine ("CreateNote : " + text); HmNote hmNote = new HmNote (this.task); hmNote.Text = text; notes.Clear (); notes.Add (hmNote); this.backend.UpdateTask (this); return hmNote; }
/// <summary> /// Saves a note in a task /// </summary> /// <param name="note"> /// A <see cref="INote"/> /// </param> public override void SaveNote(INote note) { Logger.Debug ("SaveNote : " + note.Text); HmNote hmNote = new HmNote (this.task); hmNote.Text = note.Text; notes.Clear (); notes.Add (hmNote); this.backend.UpdateTask (this); }