Exemplo n.º 1
0
        private void appbar_web_Click_1(object sender, EventArgs e)
        {
            DisplayModel   dm  = ObjectSaver.GetInstance().Get() as DisplayModel;
            WebBrowserTask wbt = new WebBrowserTask();

            wbt.Uri = new Uri(dm.Link, UriKind.Absolute);
            wbt.Show();
        }
Exemplo n.º 2
0
        private void alldealslist_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        {
            var obj = sender as ListBox;

            if (obj.SelectedIndex > -1)
            {
                ObjectSaver.GetInstance().Set(obj.SelectedItem);
                NavigationService.Navigate(new Uri("/Details.xaml", UriKind.Relative));
            }
        }
Exemplo n.º 3
0
        private void appbar_email_Click_1(object sender, EventArgs e)
        {
            DisplayModel     dm  = ObjectSaver.GetInstance().Get() as DisplayModel;
            EmailComposeTask ect = new EmailComposeTask();

            ect.Subject = "Check out this deal";
            ect.Body    = "I found this deal at Deals2Buy " + Environment.NewLine + Environment.NewLine
                          + dm.Title + Environment.NewLine + Environment.NewLine
                          + dm.Date + Environment.NewLine + Environment.NewLine
                          + dm.Desc + Environment.NewLine + Environment.NewLine
                          + "More Info here -> "
                          + dm.Link + Environment.NewLine + Environment.NewLine + "Deals2Buy Windows Phone App";
            ect.Show();
        }
Exemplo n.º 4
0
 public Details()
 {
     InitializeComponent();
     DataContext = ObjectSaver.GetInstance().Get();
 }