Esempio n. 1
0
        public async Task LoadEditor(string url)
        {
            await ThreadUI.Invoke(() => IsBusy = true);

            await Task.Run(async() => await FormFetcher.GetEditor(url));

            await ThreadUI.Invoke(() =>
            {
                IsBusy = false;
            });
        }
Esempio n. 2
0
        public async Task LoadEditor(EditorPackage package)
        {
            await ThreadUI.Invoke(() => IsBusy = true);

            await Task.Run(async() => await FormFetcher.GetEditor(package));

            await ThreadUI.Invoke(() =>
            {
                IsBusy = false;
                RaisePropertyChanged(nameof(IsEditUIVisible));
            });
        }
Esempio n. 3
0
        public async Task LoadEditor(EditorPackage package)
        {
            await ThreadUI.Invoke(() => IsBusy = true);

            await Task.Run(async() => await FormFetcher.GetEditor(package));

            await ThreadUI.Invoke(() =>
            {
                IsBusy = false;
                RaisePropertyChanged(nameof(IsEditUIVisible));
                if (package.Intent == EditorIntent.MultiQuote)
                {
                    Loc.NavigationService.GoBack();
                }
            });
        }