예제 #1
0
파일: HmTask.cs 프로젝트: teotikalki/tasque
        /// <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
파일: HmTask.cs 프로젝트: teotikalki/tasque
        /// <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);
        }