コード例 #1
0
        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);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
        }