private async void ShareExecute() { if (ShareLink != null) { await SharePopup.GetForCurrentView().ShowAsync(ShareLink, ShareTitle); } }
private async void ShareExecute(ProxyViewModel proxy) { var response = await ProtoService.SendAsync(new GetProxyLink(proxy.Id)); if (response is Text text && Uri.TryCreate(text.TextValue, UriKind.Absolute, out Uri uri)) { await SharePopup.GetForCurrentView().ShowAsync(uri, Strings.Resources.Proxy); } }
private async void LogOld_Click(object sender, RoutedEventArgs e) { var log = await ApplicationData.Current.LocalFolder.TryGetItemAsync("tdlib_log.txt.old") as StorageFile; if (log != null) { await SharePopup.GetForCurrentView().ShowAsync(new InputMessageDocument(new InputFileLocal(log.Path), null, true, null)); } }
private async void MessagesForwardExecute() { var messages = SelectedItems.Where(x => x.CanBeForwarded).OrderBy(x => x.Id).ToList(); if (messages.Count > 0) { SelectionMode = ListViewSelectionMode.None; await SharePopup.GetForCurrentView().ShowAsync(messages); } }
private void View_NavigationStarting(WebView sender, WebViewNavigationStartingEventArgs args) { sender.AddWebAllowedObject("TelegramWebviewProxy", new TelegramGameProxy(withMyScore => { this.BeginOnUIThread(async() => { await SharePopup.GetForCurrentView().ShowAsync(_shareMessage, withMyScore); }); })); }
private async void ShareExecute() { var link = ShareLink; if (link == null) { return; } await SharePopup.GetForCurrentView().ShowAsync(link, ShareTitle); }
private async void MessageForwardExecute(Message message) { SelectionMode = ListViewSelectionMode.None; await SharePopup.GetForCurrentView().ShowAsync(message); }
private async void ThemeShareExecute(ThemeCustomInfo theme) { await SharePopup.GetForCurrentView().ShowAsync(new InputMessageDocument(new InputFileLocal(theme.Path), null, false, null)); }
private async void Share_Click(object sender, RoutedEventArgs e) { await SharePopup.GetForCurrentView().ShowAsync(_shareMessage); }