void HandleActiveTaskIdChanged(object sender, EntityIdEventArgs e)
 {
     if (e.Id != Guid.Empty)
         CreateTitleFromTask(e.Id);
     else
         CreateDefaultTitle();
 }
Beispiel #2
0
        void HandleTaskStarted(object sender, EntityIdEventArgs e)
        {
            if (DayStartTime == DateTime.MinValue)
                DayStartTime = DateTime.Now;

            // Execute right away to look responsive
            idleTimeSummer.Execute();
        }
Beispiel #3
0
 void HandleTaskDeleted(object sender, EntityIdEventArgs e)
 {
     ITaskListItemViewModel item = Items.FirstOrDefault(i => i.Id == e.Id);
     if (item != null)
         Items.Remove(item);
 }
Beispiel #4
0
 void HandleActiveTaskIdChanged(object sender, EntityIdEventArgs e)
 {
     foreach (var item in Items)
         item.IsActive = (item.Id == e.Id);
 }
Beispiel #5
0
 void HandleTaskStartedOrStopped(object sender, EntityIdEventArgs e)
 {
     OnCanExecuteChanged();
 }
Beispiel #6
0
 void HandleTaskStopped(object sender, EntityIdEventArgs e)
 {
     activeTimeBlock.End = Now;
     timeBlocksModel.Update(activeTimeBlock);
     activeTimeBlock = null;
 }
Beispiel #7
0
 void HandleTaskStarted(object sender, EntityIdEventArgs e)
 {
     activeTimeBlock = timeBlocksModel.Add(e.Id, Now);
 }
 void HandleEntityDeleted(object sender, EntityIdEventArgs e)
 {
     IGroupListItemViewModel groupListItemViewModel = GroupNames.First(i => i.Id == e.Id);
     GroupNames.Remove(groupListItemViewModel);
 }
Beispiel #9
0
 void HandleTaskStopped(object sender, EntityIdEventArgs e)
 {
     // Execute right away to look responsive
     idleTimeSummer.Execute();
 }