private void fb_Click(object sender, EventArgs e)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=d82403d1-dc31-487f-8865-c308f143403f", UriKind.Absolute);
     shareLinkTask.Message = "Have you checked out this WP App: Picasa-On-Tiles??";
     shareLinkTask.Show();
 }
Esempio n. 2
0
 private void ApplicationBarIconButtonShare_Click(object sender, EventArgs e)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.LinkUri = MiniBrowser.Source;
     shareLinkTask.Message = "Here are the details for that Translink Stop!";
     shareLinkTask.Show();
 }
Esempio n. 3
0
        private void ShareItem_Click(object sender, RoutedEventArgs e)
        {
            if (!Utilities.CheckNetwork())
            {
                return;
            }
            ShareLinkTask slt = new ShareLinkTask();

            if (((ListBox)sender).SelectedItem is Story)
            {
                var item = ((MenuItem)sender).DataContext as Story;

                slt.LinkUri = new Uri(item.Link);
                slt.Title   = item.Title;
                slt.Message = item.Title + " #smartfiction #wp";
            }
            else
            {
                var item = ((MenuItem)sender).DataContext as ContentItem;

                slt.LinkUri = new Uri(item.Link);
                slt.Title   = item.Title;
                slt.Message = item.Title + " #smartfiction #wp";
            }

            slt.Show();
        }
        public void share(string jsonArgs)
        {
            var options = JsonHelper.Deserialize <string[]>(jsonArgs);

            var message = options[0];
            var title   = options[1];
            var files   = JsonHelper.Deserialize <string[]>(options[2]);
            var link    = options[3];

            if (link != null && !"null".Equals(link))
            {
                ShareLinkTask shareLinkTask = new ShareLinkTask();
                shareLinkTask.Title   = title;
                shareLinkTask.LinkUri = new System.Uri(link, System.UriKind.Absolute);
                shareLinkTask.Message = message;
                shareLinkTask.Show();
            }
            else if (files != null && files.Length > 0)
            {
                ShareLinkTask shareLinkTask = new ShareLinkTask();
                shareLinkTask.Title   = title;
                shareLinkTask.LinkUri = new System.Uri(files[0], System.UriKind.Absolute);
                shareLinkTask.Message = message;
                shareLinkTask.Show();
            }
            else
            {
                var shareStatusTask = new ShareStatusTask {
                    Status = message
                };
                shareStatusTask.Show();
            }
            // unfortunately, there is no way to tell if something was shared, so just invoke the successCallback
            DispatchCommandResult(new PluginResult(PluginResult.Status.OK));
        }
Esempio n. 5
0
        private void ListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            switch (((ShareItem)((LongListSelector)sender).SelectedItem).Target)
            {
            case "Email":
            {
                EmailComposeTask ect = new EmailComposeTask();
                ect.Body = link;
                ect.Show();
                break;
            }

            case "Messages":
            {
                SmsComposeTask sct = new SmsComposeTask();
                sct.Body = link;
                sct.Show();
                break;
            }

            case "Social networks":
            {
                ShareLinkTask slt = new ShareLinkTask();
                slt.LinkUri = new Uri(link);
                slt.Show();
                break;
            }

            default:
            {
                break;
            }
            }
        }
 private void fb_Click(object sender, EventArgs e)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=68f7afd5-0d71-4006-87da-4d75b4d919a8", UriKind.Absolute);
     shareLinkTask.Message = "Have you checked out this WP App: Fhotos-On-Tiles??";
     shareLinkTask.Show();
 }
Esempio n. 7
0
 private void ListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     switch (((ShareItem)((LongListSelector)sender).SelectedItem).Target)
     {
         case "Email":
             {
                 EmailComposeTask ect = new EmailComposeTask();
                 ect.Body = link;
                 ect.Show();
                 break;
             }
         case "Messages":
             {
                 SmsComposeTask sct = new SmsComposeTask();
                 sct.Body = link;
                 sct.Show();
                 break;
             }
         case "Social networks":
             {
                 ShareLinkTask slt = new ShareLinkTask();
                 slt.LinkUri = new Uri(link);
                 slt.Show();
                 break;
             }
         default:
             {
                 break;
             }
     }
 }
Esempio n. 8
0
        public void share(string jsonArgs)
        {
            var options = JsonHelper.Deserialize<string[]>(jsonArgs);

            var message = options[0];
            var title = options[1];
            var files = JsonHelper.Deserialize<string[]>(options[2]);
            var link = options[3];

            if (link != null && !"null".Equals(link))
            {
                ShareLinkTask shareLinkTask = new ShareLinkTask();
                shareLinkTask.Title = title;
                shareLinkTask.LinkUri = new System.Uri(link, System.UriKind.Absolute);
                shareLinkTask.Message = message;
                shareLinkTask.Show();
            }
            else if (files != null && files.Length > 0)
            {
                ShareLinkTask shareLinkTask = new ShareLinkTask();
                shareLinkTask.Title = title;
                shareLinkTask.LinkUri = new System.Uri(files[0], System.UriKind.Absolute);
                shareLinkTask.Message = message;
                shareLinkTask.Show();
            }
            else
            {
                var shareStatusTask = new ShareStatusTask { Status = message };
                shareStatusTask.Show();
            }
            // unfortunately, there is no way to tell if something was shared, so just invoke the successCallback
            DispatchCommandResult(new PluginResult(PluginResult.Status.OK));
        }
Esempio n. 9
0
        private void Share_Button_Click(object sender, EventArgs e)
        {
            ShareLinkTask share = new ShareLinkTask();

            share.LinkUri = link;
            share.Show();
        }
Esempio n. 10
0
        private void ShareWallpaper(object sender, EventArgs e)
        {
            ShareLinkTask share = new ShareLinkTask();

            share.LinkUri = CommonStuff.selectedImage.Link;
            share.Show();
        }
 private void TweetLink_Click(object sender, EventArgs e)
 {
     ShareLinkTask tweet = new ShareLinkTask();
     tweet.LinkUri = new Uri(model.EventDetail.url_photo);
     tweet.Message = "Evènement partagé " + model.EventDetail.text;
     tweet.Show();
 }
Esempio n. 12
0
        public static void StartShareTask()
        {
            try
            {
                SessionLog.RecordMilestone("Share", AppStats.Current.SessionId.ToString());
#if WINDOWS_PHONE
                var task = new ShareLinkTask();
                task.LinkUri = new Uri("http://www.windowsphone.com/s?appid=2f44a06e-3d7c-4e11-b74d-9135949a1889", UriKind.Absolute);
                task.Title   = AppResources.ShareTitle;
                task.Message = AppResources.ShareMessage;
                task.Show();
#else
                Intent sharingIntent = new Intent(Intent.ActionSend);
                sharingIntent.AddFlags(ActivityFlags.NewTask);
                sharingIntent.SetType("text/plain");
                sharingIntent.PutExtra(Intent.ExtraSubject, AppResources.ShareTitle);
                //sharingIntent.PutExtra(Intent.ExtraText, AppResources.ShareMessage);
                //sharingIntent.PutExtra(Intent.ExtraEmail, "*****@*****.**");
                navigationContext.StartActivity(Intent.CreateChooser(sharingIntent, AppResources.Feedback_Share));
#endif
            }
            catch (Exception ex)
            {
                LittleWatson.ReportException(ex);
            }
            Navigate.BackFromFeedback();
        }
Esempio n. 13
0
 private void btnShare_Click(object sender, RoutedEventArgs e)
 {
     // The station is null if there was a problem with the Internet connection.
     if (CoreViewModel.Instance.CurrentStation.NowPlaying != null)
     {
         Guide.BeginShowMessageBox("Beem", "Do you want to share the track through the Windows Phone social channels or Last.fm?",
                                   new List <string> {
             "windows phone", "last.fm"
         }, 0, MessageBoxIcon.None, (res) =>
         {
             int?result = Guide.EndShowMessageBox(res);
             if (result == 0)
             {
                 ShareLinkTask shareLink = new ShareLinkTask();
                 shareLink.LinkUri       = new Uri("http://bitly.com/BeemPlus");
                 shareLink.Message       = "Listening to " + CoreViewModel.Instance.CurrentStation.NowPlaying.FullTrackName + " with #BeemWP.";
                 shareLink.Show();
             }
             else if (result == 1)
             {
                 ScrobbleCurrentTrack();
             }
         }, null);
     }
     else
     {
         MessageBox.Show("Apparently there is no Internet connection, so we can't share your track at this time.", "Beem", MessageBoxButton.OK);
     }
 }
 private void fb_Click(object sender, EventArgs e)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=6452cf16-c10d-4f2f-9412-0ecc320b6a61", UriKind.Absolute);
     shareLinkTask.Message = "Have you checked out this WP App: XEP Reader??";
     shareLinkTask.Show();
 }
        private void Copy_Click(object sender, EventArgs e)
        {
            //ShareStatusTask ShareVersionData = new ShareStatusTask();
            ShareLinkTask ShareVersionData = new ShareLinkTask();

            string TextForClipboard = string.Format(
                "{0}.{1}.{2}.{3}\r\n{4}\r\n{5}\r\nReleased on {6}",
                MajorInput.Text, MinorInput.Text, BuildInput.Text, RevisionInput.Text,
                FriendlyNameShortDisplay.Text, FriendlyNameLongDisplay.Text,
                ReleaseDateDisplay.Text
                );

            // loop through all of the links and add those to
            // our buffer string
            //
            foreach (UIElement Child in LinkVersionContent.Children)
            {
                if (Child is HyperlinkButton)
                {
                    TextForClipboard += string.Format("\r\n{0}", ((HyperlinkButton)Child).Content);
                }
            }

            //ShareVersionData.Status = TextForClipboard;
            ShareVersionData.Title   = "SQL Version";
            ShareVersionData.Message = TextForClipboard;
            ShareVersionData.LinkUri = new Uri("http://microsoft.com");

            ShareVersionData.Show();
            // push the buffer string out to the clipboard for later
            // use by the user
            //
            //Clipboard.SetText(TextForClipboard);
        }
Esempio n. 16
0
        private void ShareReferralHandler(ShareOption option)
        {
            if (Account == null)
            {
                return;
            }

            if (option == ShareOption.Email)
            {
                var task = new EmailComposeTask();
                task.Subject = "Get Dropbox";
                task.Body    = string.Format("I would like you to join Dropbox, here is the referral link {0}",
                                             Account.referral_link);
                task.Show();
            }

            if (option == ShareOption.Social)
            {
                var task = new ShareLinkTask
                {
                    LinkUri = new Uri(Account.referral_link),
                    Message = "Join the awesome cloud storage service.",
                    Title   = "Dropbox register"
                };
                task.Show();
            }
        }
 private void fb_Click(object sender, EventArgs e)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=ece71322-d6c0-42bc-92b3-04e4bc55a2d3", UriKind.Absolute);
     shareLinkTask.Message = "Have you checked out this WP App: Flickr-On-Tiles??";
     shareLinkTask.Show();
 }
 private void fb_Click(object sender, EventArgs e)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=1d8b6bcf-af39-4643-b971-f33d4505bf92", UriKind.Absolute);
     shareLinkTask.Message = "Have you checked out this WP App: RFC Reader??";
     shareLinkTask.Show();
 }
Esempio n. 19
0
        void ShareHandler(ShareOption option)
        {
            string body = string.Format("I am sharing this link with you {0}", ShareLink);

            if (option == ShareOption.Social)
            {
                var task = new ShareLinkTask
                {
                    LinkUri = new Uri(ShareLink),
                    Title   = MetaData.Name,
                    Message = "I'm sharing this with you"
                };

                task.Show();
            }
            else if (option == ShareOption.Text)
            {
                var task = new SmsComposeTask {
                    Body = body
                };
                task.Show();
            }
            else
            {
                var task = new EmailComposeTask {
                    Body = body
                };
                task.Show();
            }
        }
Esempio n. 20
0
 public static void ShareLink(string link)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.Title = _messageTitle;
     shareLinkTask.Message = _messageBody + link;
     shareLinkTask.LinkUri = new Uri(link, UriKind.Absolute);
     shareLinkTask.Show();
 }
Esempio n. 21
0
        private void ShareAppBarIconButton_Click(object sender, EventArgs e)
        {
            ShareLinkTask slt = new ShareLinkTask();

            slt.LinkUri = new Uri(fullUrl, UriKind.Absolute);
            slt.Title   = newsItem.Title;
            slt.Show();
        }
Esempio n. 22
0
 public void Share()
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.Title = "Combinator";
     shareLinkTask.LinkUri = new Uri("http://windowsphone.com/s?appid=a5275a3f-6611-48f6-bd62-7382eda4c028", UriKind.Absolute);
     shareLinkTask.Message = "Try Combinator, the best Hacker News client on Windows Phone!";
     shareLinkTask.Show();
 }
Esempio n. 23
0
        private void fb_Click(object sender, EventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=60c6f12e-0380-4fa3-b34b-9c5300f0e5b6", UriKind.Absolute);
            shareLinkTask.Message = "Have you checked out this WP App: Tic Tac Toe??";
            shareLinkTask.Show();
        }
Esempio n. 24
0
        private void fb_Click(object sender, EventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=a9502b4c-ff2b-4ad6-9fad-7756a104a96c", UriKind.Absolute);
            shareLinkTask.Message = "Have you checked out this WP App: Minesweeper??";
            shareLinkTask.Show();
        }
Esempio n. 25
0
        private void fb_Click(object sender, EventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=ece71322-d6c0-42bc-92b3-04e4bc55a2d3", UriKind.Absolute);
            shareLinkTask.Message = "Have you checked out this WP App: Flickr-On-Tiles??";
            shareLinkTask.Show();
        }
Esempio n. 26
0
 protected void shareLink(string title, string url, string msg)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.Title = title;
     shareLinkTask.LinkUri = new Uri(url, UriKind.Absolute);
     shareLinkTask.Message = msg;
     shareLinkTask.Show();
 }
        private void WP8Statics_FbClickHandle(object sender, EventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=ab13d1e8-ca3c-4a3e-9ecf-7a7f2efb0350/", UriKind.Absolute);
            shareLinkTask.Message = "Fish Hunter";
            shareLinkTask.Show();
        }
Esempio n. 28
0
 public void Share(string url, string title)
 {
     ShareLinkTask taskL = new ShareLinkTask();
     taskL.LinkUri = new Uri(url);
     taskL.Message = "";
     taskL.Title = title;
     taskL.Show();
 }
Esempio n. 29
0
        public void ShareLink(string title, string message, string link)
        {
            var task = new ShareLinkTask {
                Title = title, Message = message, LinkUri = new Uri(link)
            };

            DoWithInvalidOperationProtection(task.Show);
        }
        private void btnShare_Tapped(object sender, System.Windows.Input.GestureEventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.LinkUri = new Uri("http://wwww.nhatrotot/chi-tiet/" + item.slug, UriKind.Absolute);

            shareLinkTask.Show();
        }
Esempio n. 31
0
        private void twitter_Click(object sender, EventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/s?appid=7ac59477-9b21-41a7-9433-9f9f602e8f77", UriKind.Absolute);
            shareLinkTask.Message = "Check out Tonality!";
            shareLinkTask.Show();
        }
Esempio n. 32
0
        private void twitter_Click(object sender, EventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.LinkUri = new Uri("http://voucherworld.azurewebsites.net", UriKind.Absolute);
            shareLinkTask.Message = "Hey, I've just got some cool gift with Voucher World App. Download and enjoy with me";
            shareLinkTask.Show();
        }
Esempio n. 33
0
 private void ShareOnFB_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     ShareLinkTask task = new ShareLinkTask();
     task.Title = "Hello World";
     task.LinkUri = new Uri("http://www.google.com", UriKind.Absolute);
     task.Message = "Test";
     task.Show();
 }
Esempio n. 34
0
        private void lnkShareDownload_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            ShareLinkTask slt = new ShareLinkTask();

            slt.LinkUri = new Uri("http://apps.velostep.com/wowpad/download/lastest/WowPad_Setup.exe");
            slt.Message = "Direct download link";
            slt.Title   = "WowPad PC Server";
            slt.Show();
        }
Esempio n. 35
0
 //Шаринг
 private void Shared(object sender, EventArgs e)
 {
     ShareLinkTask shareLinkTask = new ShareLinkTask();
     shareLinkTask.Title = Strcons.Read_Tile_title;
     shareLinkTask.LinkUri = new Uri(NavigationContext.QueryString["link"].ToString());
     string messageshare = "@stas_kulesh " + NavigationContext.QueryString["title"].ToString();
     shareLinkTask.Message = messageshare;
     shareLinkTask.Show();
 }
Esempio n. 36
0
        /// <summary>
        /// ソーシャル ネットワークに共有するタスクを起動します。
        /// </summary>
        /// <param name="parameter"><see cref="Karamem0.Kanpuchi.Interactivity.ShareStatusTaskContext"/>。</param>
        private void ShareStatusTask(ShareStatusTaskContext parameter)
        {
            var task = new ShareLinkTask();

            task.LinkUri = new Uri(parameter.Uri, UriKind.Absolute);
            task.Message = parameter.Message;
            task.Title   = parameter.Message;
            task.Show();
        }
Esempio n. 37
0
        private void ShareLinkClick(object sender, EventArgs e)
        {
            var selected      = (Comic)DataContext;
            var shareLinkTask = new ShareLinkTask {
                Title = "xkcd", LinkUri = selected.Uri, Message = selected.Title
            };

            shareLinkTask.Show();
        }
Esempio n. 38
0
        public static void ShareLink(string link)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title   = _messageTitle;
            shareLinkTask.Message = _messageBody + link;
            shareLinkTask.LinkUri = new Uri(link, UriKind.Absolute);
            shareLinkTask.Show();
        }
Esempio n. 39
0
        private void sh(object sender, EventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title   = "Try this awesome REFLEXES + MEMORY GAME";
            shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/en-in/store/app/reflexes-memory-game/41a28a4d-aadf-4d69-aa96-4cef55a6bdc9", UriKind.Absolute);
            shareLinkTask.Message = "My Level 3 score is " + score.ToString() + " This game is simply outstanding.Lets you test and improve your memory,reflexes and concentration.The challenging and extremely interesting levels just don't let you blink your eye and let you enjoy yourself to the fullest. ";
            shareLinkTask.Show();
        }
Esempio n. 40
0
 private void Share(object sender, RoutedEventArgs e)
 {
     var rssItem = (sender as MenuItem).DataContext as RssStory;
     var shareLinkTask = new ShareLinkTask();
     shareLinkTask.LinkUri = rssItem.StoryLink;
     shareLinkTask.Title = rssItem.Title;
     shareLinkTask.Message = rssItem.Description;
     shareLinkTask.Show();
 }
Esempio n. 41
0
        //private void OpenCatalogButton_Click(object sender, RoutedEventArgs e)
        //{
        //    var offer = Model;
        //    if (offer == null)
        //    {

        //        return;
        //    }
        //    var catalogId = offer.Catalog.Id;
        //    var gotoPage = offer.Catalog.Page;
        //    string uri = String.Format("/Views/CatalogBrowsingView.xaml?catalogId={0}&GoToPage={1}", catalogId, gotoPage);
        //    NavigationService.Navigate(new Uri(uri, UriKind.Relative));

        //}

        //private void routeBtn_Click(object sender, RoutedEventArgs e)
        //{
        //    App.ViewModel.SelectedStore = Model.Store;
        //    NavigationService.Navigate(new Uri("/Views/NavigationView.xaml?storeId=" + Model.Store.Id, UriKind.Relative));
        //}

        private void ApplicationBarMenuItem_Click(object sender, EventArgs e)
        {
            ShareLinkTask share = new ShareLinkTask();

            share.LinkUri = new Uri(Model.Url);
            share.Title   = "Tilbud på " + Model.Heading;
            share.Message = Model.Description.Substring(0, Math.Min(App.ViewModel.SelectedOffer.Description.Length, 40)) + "...";
            share.Show();
        }
Esempio n. 42
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title   = newsItem.Title;
            shareLinkTask.LinkUri = new Uri(newsItem.MissionUrl, UriKind.Absolute);
            shareLinkTask.Message = newsItem.ShortDescription;
            shareLinkTask.Show();
        }
Esempio n. 43
0
        private void share()
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title   = this.currentWord.WordContent;
            shareLinkTask.LinkUri = new Uri("http://www.neolog.bg/word/" + this.currentWord.WordId, UriKind.Absolute);
            shareLinkTask.Message = this.currentWord.Description;
            shareLinkTask.Show();
        }
Esempio n. 44
0
        private void RoundButton_Click_1(object sender, RoutedEventArgs e)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title   = "Watch movie with Movie Free on Windows Phone";
            shareLinkTask.LinkUri = new Uri("http://windowsphone.com/s?appid=46b622c1-56a9-4635-828b-8ce622709c37", UriKind.Absolute);
            shareLinkTask.Message = "Watch movie with Movie Free on Windows Phone.\r\n\r\nYou can download application in: http://windowsphone.com/s?appid=46b622c1-56a9-4635-828b-8ce622709c37";
            shareLinkTask.Show();
        }
Esempio n. 45
0
        private void appBarButtonShare_Click(object sender, EventArgs e)
        {
            ShareLinkTask share = new ShareLinkTask();
            share.Message = "Estou colecionando cards da Copa do Mundo Fifa 2014 no meu Windows Phone! Baixe o App e ganhe 20 cards você também!";
            share.Title = "Álbum de Cards Copa do Mundo Fifa 2014!";
            share.LinkUri = new Uri("", UriKind.Absolute);

            GenerateRandomCard();
        }
Esempio n. 46
0
        public void Share(string url, string title)
        {
            ShareLinkTask taskL = new ShareLinkTask();

            taskL.LinkUri = new Uri(url);
            taskL.Message = "";
            taskL.Title   = title;
            taskL.Show();
        }
Esempio n. 47
0
        public static void ShareSocial(string link, string title)
        {
            ShareLinkTask linkTask = new ShareLinkTask();

            linkTask.Title   = title;
            linkTask.Message = AppResources.ShareMethodSocialMessage;
            linkTask.LinkUri = new Uri(link, UriKind.RelativeOrAbsolute);
            linkTask.Show();
        }
 private void ChallengeFriends()
 {
     var shareLinkTaks = new ShareLinkTask
     {
         Title = "#hack4good app test",
         LinkUri = new Uri("http://wepromi.se/", UriKind.Absolute),
         Message = "#hack4good test message I challenge @sawiczpawel @jghackers"
     };
     shareLinkTaks.Show();
 }
Esempio n. 49
0
        public void ShareLink(string title, string message, Uri url)
        {
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title = title;
            shareLinkTask.LinkUri = url;
            shareLinkTask.Message = message;

            shareLinkTask.Show();
        }
Esempio n. 50
0
        private void TapShareIt(object sender, RoutedEventArgs e)
        {
            ShareLinkTask shareLinnkTask = new ShareLinkTask();

            shareLinnkTask.Title = "WP7 - sharing a link - Test";
            shareLinnkTask.LinkUri = new Uri(LinkToShare.Text, UriKind.Absolute);
            shareLinnkTask.Message = MessageToShare.Text;

            shareLinnkTask.Show();

        }
Esempio n. 51
0
        public void ShowShareUi()
        {
            var task = new ShareLinkTask
            {
                Title = _title,
                LinkUri = new Uri(_imageUrl),
                Message = _description
            };

            task.Show();
        }
        /// <summary>
        /// Show the UI to share informations on social networks
        /// </summary>
        /// <param name="element">Contains informations to share</param>
        public static void Share(ShareableObject element)
        {
            ShareTaskBase task = new ShareLinkTask
            {
                Title = element.Title,
                Message = element.Message,
                LinkUri = element.Uri
            };

            task.Show();
        }
Esempio n. 53
0
        public void Share(string title, string message, string link)
        {
            var shareLinkTask = new ShareLinkTask
            {
                Title = title,
                Message = message,
                LinkUri = new System.Uri(link, System.UriKind.Absolute)
            };

            shareLinkTask.Show();
        }
Esempio n. 54
0
        private void btn_share_Click(object sender, RoutedEventArgs e)
        {
            //http://www.windowsphone.com/en-US/apps/79203e3d-721e-4f54-bb5c-4d4ecce90cba
            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title = "BFStats for WP7";
            shareLinkTask.LinkUri = new Uri("http://www.windowsphone.com/en-US/apps/79203e3d-721e-4f54-bb5c-4d4ecce90cba", UriKind.Absolute);
            shareLinkTask.Message = "Here is a great app to manage your Battlefield 3 Stats on your Windows Phone device!";

            shareLinkTask.Show();
        }
Esempio n. 55
0
        private void Share_Click(object sender, RoutedEventArgs e)
        {
            Post item = ((FrameworkElement)sender).DataContext as Post;

            ShareLinkTask shareLinkTask = new ShareLinkTask();

            shareLinkTask.Title = item.title;
            shareLinkTask.LinkUri = new Uri(item.url);
            shareLinkTask.Message = "Check out this article I found on Hacker News for Windows Phone!";
            shareLinkTask.Show();
        }
Esempio n. 56
0
 private void ShareOnClick(object sender, EventArgs e)
 {
     if (App.Viewmodel.ProfileViewmodel.Links == null || string.IsNullOrWhiteSpace(App.Viewmodel.ProfileViewmodel.Msisdn))
         return;
     var shareLinkTask = new ShareLinkTask
         {
             LinkUri = new Uri(App.Viewmodel.ProfileViewmodel.Links.Select(x => x.Link).First(), UriKind.Absolute),
             Message = AppResources.ProfileViewShareLinkBody,
             Title = AppResources.ProfileViewShareLinkTitle
         };
     shareLinkTask.Show();
 }
Esempio n. 57
0
        /// <summary>
        /// Executes the Share service.
        /// </summary>
        /// <param name="title">The title shared.</param>
        /// <param name="message">The message shared.</param>
        /// <param name="link">The link shared.</param>
		/// <param name="type">Share type.</param>
        public void Share(string title, string message, string link = "", string type = "")
        {
            title = string.IsNullOrEmpty(title) ? string.Empty : HtmlUtil.CleanHtml(title);
            message = string.IsNullOrEmpty(message) ? string.Empty : HtmlUtil.CleanHtml(message);
            var linkUri = string.IsNullOrEmpty(link) ? new System.Uri(AppResources.HomeUrl) : new System.Uri(link, System.UriKind.Absolute);
            var shareLinkTask = new ShareLinkTask
            {
                Title = title,
                Message = message,
                LinkUri = linkUri
            };

            shareLinkTask.Show();
        }
 public void ShareLink(string title, string status, string link)
 {
     var task = new ShareLinkTask {Title = title, Message = status, LinkUri = new Uri(link)};
     Device.BeginInvokeOnMainThread(() =>
         {
             try
             {
                 task.Show();
             }
             catch (Exception ex)
             {;
             }
         });
 }
        private void OnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            ((ApplicationBarIconButton)ApplicationBar.Buttons[0]).Click += (o, args) => {
              var task = new ShareLinkTask
              {
            LinkUri = new Uri(item.Link, UriKind.Absolute),
            Title = item.Title
              };
              task.Show();
            };

            ((ApplicationBarIconButton)ApplicationBar.Buttons[1]).Click += (o, args) => {
              Browser.Navigate(new Uri(item.Link, UriKind.Absolute));
            };
        }
Esempio n. 60
0
 internal static void ShareViaSocial(ShareModel model)
 {
     try
     {
         var task = new ShareLinkTask
         {
             Title = model.Title,
             Message = model.Description,
             LinkUri = new Uri(@"http://en.wikipedia.org" + model.Link, UriKind.Absolute)
         };
         task.Show();
     }
     catch (Exception)
     {
         // fast-clicking can result in exception, so we just handle it
     }
 }