Esempio n. 1
0
        public async Task RemoveQuoteFromMultiQuote(EditorPackage package)
        {
            if (string.IsNullOrEmpty(MultiQuoteTemporaryContent))
            {
                return;
            }
            var quote = await FormFetcher.FetchMessageContent(package);

            Loc.Editor.MultiQuoteTemporaryContent = Loc.Editor.MultiQuoteTemporaryContent.Replace(quote, "").Replace(Environment.NewLine, "");
        }
Esempio n. 2
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. 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));
            });
        }
Esempio n. 4
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();
                }
            });
        }