コード例 #1
0
 /// <summary>
 /// Notifies the data change.
 /// </summary>
 public void NotifyDataChange()
 {
     DataChanges.OnNext(new DataChange()
     {
         SizeChanged = false
     });
 }
コード例 #2
0
        /// <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);
        }