コード例 #1
0
        public async void ShareAsync()
        {
            if (!await SharingDataModel.ShowMessage())
            {
                return;
            }

            _busyOverlay.Closable = true;
            _busyOverlay.Closing += Cancel;

            IsBusy = true;
            using (await _busyOverlay.Start(false))
            {
                await SharingDataModel.UploadBook(Book);

                IsBusy = false;
            }
        }
コード例 #2
0
        public async void ShareAsync()
        {
            if (Book == null)
            {
                return;
            }

            if (!await SharingDataModel.ShowMessage())
            {
                return;
            }

            _busyOverlay.Closable = true;
            _busyOverlay.Content  = UIStrings.BookInfoPage_Loading;
            _busyOverlay.Closing += Cancel;
            using (await _busyOverlay.Start())
            {
                await SharingDataModel.UploadBook(Book);
            }
        }