Exemple #1
0
        private async void Share_Click(object sender, RoutedEventArgs e)
        {
            var builder = new List <string>();

            if (Server != null)
            {
                builder.Add("server=" + Server);
            }
            if (Port != null)
            {
                builder.Add("port=" + Port);
            }
            //if (Username != null)
            //{
            //    builder.Add("user="******"pass="******"socks?{string.Join("&", builder)}"));

            await ShareView.GetForCurrentView().ShowAsync(link, title);
        }
Exemple #2
0
        private async void Share_Click(object sender, RoutedEventArgs e)
        {
            var title = ViewModel.StickerSet.Title;
            var link  = new Uri(MeUrlPrefixConverter.Convert($"addstickers/{ViewModel.StickerSet.Name}"));

            await ShareView.GetForCurrentView().ShowAsync(link, title);
        }
Exemple #3
0
        private async void Share_Click(object sender, RoutedEventArgs e)
        {
            var stickerSet = ViewModel.StickerSet;

            if (stickerSet == null)
            {
                return;
            }

            var title = stickerSet.Title;
            var link  = new Uri(MeUrlPrefixConverter.Convert(ViewModel.ProtoService, $"addstickers/{stickerSet.Name}"));

            Hide();
            await ShareView.GetForCurrentView().ShowAsync(link, title);
        }