/// <summary> /// Notifies the data change. /// </summary> public void NotifyDataChange() { DataChanges.OnNext(new DataChange() { SizeChanged = false }); }
/// <summary> /// Updates the files. /// </summary> /// <returns>The files.</returns> private void UpdateFiles() { _context.Post(async(obj) => { Cells.Clear(); var files = await _storage.GetTable <FileStorable>(); foreach (var file in files) { var fileModel = _fileFactory(); fileModel.Apply(file); Cells.Add(fileModel); } AnyFiles = Cells.Any(); DataChanges.OnNext(new DataChange() { SizeChanged = true }); }, null); }