public void CheckSaveProgress() { if (!Synchronisator.IsSyncSuccessful) { ProgressSaver <HashSet <TaskModel> > .SaveCurrentSession(ItamsData); } }
public async Task GetItems() { _unfinishedAction = () => GetItems(); var itemTask = Synchronisator.GetTasksAsync(); if (!itemTask.IsCompleted) { Synchronisator.LoadingStartedInvoke(); ItamsData = await itemTask; } else { ItamsData = itemTask.Result; } if (!Synchronisator.IsSyncSuccessful) { ItamsData = ProgressSaver <HashSet <TaskModel> > .TryGetSessions().Last(); GotItems(); } }