示例#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();
        }
示例#2
0
 public static ObjectSaver GetInstance()
 {
     if (instance == null)
     {
         instance = new ObjectSaver();
     }
     return(instance);
 }
示例#3
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));
            }
        }
示例#4
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();
        }
示例#5
0
 public Details()
 {
     InitializeComponent();
     DataContext = ObjectSaver.GetInstance().Get();
 }
示例#6
0
 public static ObjectSaver GetInstance()
 {
     if (instance == null)
         instance = new ObjectSaver();
     return instance;
 }