コード例 #1
0
        private async void InsertTodoItem(TodoItem todoItem)
        {
            // This code inserts a new TodoItem into the database. When the operation completes
            // and Mobile Services has assigned an Id, the item is added to the CollectionView
            //await todoTable.InsertAsync(todoItem);
            //items.Add(todoItem);

            MobileServiceHelper helper = new MobileServiceHelper();
            TodoItem            item   = await helper.InsertTodoItem(todoItem);

            items.Add(item);
        }
コード例 #2
0
ファイル: QSTodoService.cs プロジェクト: artzhy/Build2014Code
        public async Task InsertTodoItemAsync(TodoItem todoItem)
        {
            try {
                // This code inserts a new TodoItem into the database. When the operation completes
                // and Mobile Services has assigned an Id, the item is added to the CollectionView
                //////////////////await todoTable.InsertAsync (todoItem);
                //////////////////Items.Add (todoItem);

                MobileServiceHelper helper = new MobileServiceHelper();
                TodoItem            item   = await helper.InsertTodoItem(todoItem);

                Items.Add(item);
            } catch (MobileServiceInvalidOperationException e) {
                Console.Error.WriteLine(@"ERROR {0}", e.Message);
            }
        }
コード例 #3
0
 public ChannelService(MobileServiceHelper serviceHelper, ISettingsService settingsService)
 {
     _serviceHelper   = serviceHelper;
     _settingsService = settingsService;
 }
コード例 #4
0
 public FeedbackService(MobileServiceHelper mobileServiceHelper)
 {
     _mobileServiceHelper = mobileServiceHelper;
 }