private void RemoveFromInactive(TimeEntry entry) { var itemToRemove = InactiveTasks.FirstOrDefault(vm => vm.TimeEntry.Guid == entry.Guid); if (itemToRemove != null) { InactiveTasks.Remove(itemToRemove); _applicationStateService.RemoveOpenTimeEntry(itemToRemove.TimeEntry); } }