public void ActivateDocument(DocumentReference document)
 {
     Store.Current.SelectCollection(document.Collection);
     Store.Current.SelectDocument(document);
 }
Example #2
0
 public virtual void UpdateItem(DocumentReference document)
 {
     LiteCollection.Update(document.LiteDocument);
 }
Example #3
0
 public virtual void RemoveItem(DocumentReference document)
 {
     LiteCollection.Delete(document.LiteDocument["_id"]);
     Items.Remove(document);
 }
Example #4
0
 private void SelectDocumentInView(DocumentReference document)
 {
     Store.Current.SelectDocument(document);
     CollectionListView.ScrollIntoSelectedItem();
 }
 public LiteFileInfo GetFileObject(DocumentReference document)
 {
     return(Database.LiteDatabase.FileStorage.FindById(document.LiteDocument["_id"]));
 }
        public void SaveFile(DocumentReference document, string path)
        {
            var file = GetFileObject(document);

            file.SaveAs(path);
        }
 public override void RemoveItem(DocumentReference document)
 {
     Database.LiteDatabase.FileStorage.Delete(document.LiteDocument["_id"]);
     Items.Remove(document);
 }
Example #8
0
 private void SelectDocumentInView(DocumentReference document)
 {
     ListCollectionData.SelectedItem = document;
     ListCollectionData.ScrollIntoView(document);
 }