internal TaskBundle(RawList list, RawTaskSeries series, RawTask task, TaskSyncMode mode) { List = list; Series = series; Task = task; SyncMode = mode; Id = Task.Id; }
internal TaskBundle(RawList list, int seriesIndex, int taskIndex, TaskSyncMode mode) { List = list; Series = list.TaskSeries[seriesIndex]; Task = Series.Tasks[taskIndex]; SyncMode = mode; Id = Task.Id; }
internal TaskList(RawList list) { Sync(list); }
internal void InternalSync(RawList rawList) { lock (this) { if (mTasks == null) { TaskListTaskCollection tmp = new TaskListTaskCollection(this); tmp.InternalSync(new RawList[] { rawList }); System.Threading.Interlocked.Exchange(ref mTasks, tmp); } else { mTasks.InternalSync(new RawList[] { rawList }); } mTasks.Sort(); OnPropertyChanged("Tasks"); OnPropertyChanged("Count"); } }