示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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;
        }
示例#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);
        }