Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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;
        }
Ejemplo n.º 5
0
        /// <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);
        }