Пример #1
0
        public TodoListViewModel()
        {
            InitCommands();

            TodoItemManager.CreateAsync().ContinueWith(x => {
                this.manager = x.Result;
                this.manager.MobileServiceClient.EventManager.Subscribe <StoreOperationCompletedEvent>(StoreOperationEventHandler);

                Device.BeginInvokeOnMainThread(async() => { await SyncItemsAsync(); });
            });
        }