Inheritance: IBackend
コード例 #1
0
ファイル: IceTask.cs プロジェクト: nolith/tasque
        public IceTask(IceBackend iceBackend,
                       IceCategory iceCategory,
                       TaskEntry taskEntry)
        {
            this.backend  = iceBackend;
            this.category = iceCategory;
            this.entry    = taskEntry;
            if (entry.Status == TaskStatus.Completed)
            {
                this.state = TaskState.Completed;
            }
            else if (entry.Status == TaskStatus.Cancelled)
            {
                this.state = TaskState.Inactive;                 // TODO: Is this the right thing to do?
            }
            else
            {
                this.state = TaskState.Active;
            }

            // Construct a unique id in the format of
            // <team-id>-<team-folder-id>-<task-entry-id>
            id = string.Format("{0}-{1}-{2}",
                               iceCategory.Team.ID,
                               iceCategory.Folder.ID,
                               taskEntry.ID);
        }
コード例 #2
0
ファイル: IceTask.cs プロジェクト: nolith/tasque
        public IceTask(IceBackend iceBackend,
						IceCategory iceCategory,
						TaskEntry taskEntry)
        {
            this.backend = iceBackend;
            this.category = iceCategory;
            this.entry = taskEntry;
            if (entry.Status == TaskStatus.Completed)
                this.state = TaskState.Completed;
            else if (entry.Status == TaskStatus.Cancelled)
                this.state = TaskState.Inactive; // TODO: Is this the right thing to do?
            else
                this.state = TaskState.Active;

            // Construct a unique id in the format of
            // <team-id>-<team-folder-id>-<task-entry-id>
            id = string.Format ("{0}-{1}-{2}",
                                iceCategory.Team.ID,
                                iceCategory.Folder.ID,
                                taskEntry.ID);
        }
コード例 #3
0
ファイル: IceNote.cs プロジェクト: nolith/tasque
 public IceNote(IceBackend iceBackend,
                IceTask iceTask)
 {
     backend = iceBackend;
     task    = iceTask;
 }
コード例 #4
0
ファイル: IceNote.cs プロジェクト: nolith/tasque
        public IceNote(IceBackend iceBackend,
						IceTask iceTask)
        {
            backend = iceBackend;
            task = iceTask;
        }