public async void DeleteObjectSync() { var dataObject = DataObjectsSync[SelectedSync]; DataObjectsHttp.Remove(dataObject); SelectedSync = -1; var request = new DataObjectSimpleQueryRequest { ProjectId = ProjectId, CollectionId = CollectionId, Folder = FolderName, DataId = dataObject.Id }; await _syncServer.DataObjects.Delete(request); }
private async void RefreshDataObjectsHttp() { var dataObjects = await _syncanoClient.DataObjects.Get(new DataObjectRichQueryRequest() { ProjectId = ProjectId, CollectionId = CollectionId, Folder = FolderName }); DataObjectsHttp.Clear(); foreach (var dataObject in dataObjects) { DataObjectsHttp.Add(dataObject); } }
public async void DeleteObjectHttp() { var dataObject = DataObjectsHttp[SelectedHttp]; DataObjectsHttp.Remove(dataObject); SelectedHttp = -1; var request = new DataObjectSimpleQueryRequest { ProjectId = ProjectId, CollectionId = CollectionId, Folder = FolderName, DataId = dataObject.Id }; await _syncanoClient.DataObjects.Delete(request); }