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); } }
public override INote CreateNote(string text) { EDSNote edsNote; edsNote = new EDSNote(text); notes.Add(edsNote); this.UpdateNotes(); return(edsNote); }
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); } }
public override INote CreateNote(string text) { EDSNote edsNote; edsNote = new EDSNote (text); notes.Add(edsNote); this.UpdateNotes (); return edsNote; }