Esempio n. 1
0
        internal TaskBundle(RawList list, RawTaskSeries series, RawTask task, TaskSyncMode mode)
        {
            List = list;
            Series = series;
            Task = task;
            SyncMode = mode;

            Id = Task.Id;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 internal TaskList(RawList list)
 {
     Sync(list);
 }
Esempio n. 4
0
        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");
            }
        }