public void Delete(IDbRecord record, bool autoSync = true) { record.DeleteRecord(); if (autoSync) { Store.Sync(); } }
private void RefreshData() { if (_dataStore.HasLinkedAccount) { Items.Clear(); var results = Table.Query(); if (results != null) { foreach (var result in results) { Item item = new Item(); result.Populate <Item>(ref item); Items.Add(new ItemViewModel(item, this, _dataStore)); } } _dataStore.Sync(); } }