Beispiel #1
0
        public EDSTask(CalComponent task, EDSCategory category)
        {
            this.name = task.Summary;
            Logger.Debug("Creating New Task Object : {0}", this.name);
            this.id             = task.Uid;
            this.category       = category;
            this.completionDate = task.Dtend;
            this.taskComp       = task;

            if (task.Status == CalStatus.Completed)
            {
                this.state = TaskState.Completed;
            }
            else
            {
                this.state = TaskState.Active;
            }

            //Descriptions
            notes = new List <INote>();

            foreach (string description in task.Descriptions)
            {
                EDSNote edsNote = new EDSNote(description);
                Logger.Debug("Note :" + description);
                notes.Add(edsNote);
            }
        }
Beispiel #2
0
        public override INote CreateNote(string text)
        {
            EDSNote edsNote;

            edsNote = new EDSNote(text);
            notes.Add(edsNote);
            this.UpdateNotes();

            return(edsNote);
        }
Beispiel #3
0
        public EDSTask(CalComponent task, EDSCategory category)
        {
            this.name = task.Summary;
                       Logger.Debug ("Creating New Task Object : {0}",this.name);
                       this.id = task.Uid;
                       this.category = category;
                       this.completionDate = task.Dtend;
                       this.taskComp = task;

               if (task.Status == CalStatus.Completed)
                   this.state = TaskState.Completed;
               else
                   this.state = TaskState.Active;

               //Descriptions
               notes = new List<INote>();

               foreach(string description in task.Descriptions) {
                   EDSNote edsNote = new EDSNote (description);
                   Logger.Debug ("Note :" + description);
                   notes.Add(edsNote);
               }
        }
Beispiel #4
0
        public override INote CreateNote(string text)
        {
            EDSNote edsNote;

               edsNote = new EDSNote (text);
               notes.Add(edsNote);
               this.UpdateNotes ();

               return edsNote;
        }