コード例 #1
0
 private void Share_OnClick(object sender, RoutedEventArgs e)
 {
     var favorit = ((MenuItem) sender).DataContext as FavoritViewObj;
     if (favorit != null)
     {
         var infoSharing = new DarumaInfoSharing(favorit.Theme, favorit.Text);
         NavigateToSharingView(infoSharing);
     }
 }
コード例 #2
0
 public static void SetQuote(DarumaInfoSharing quote)
 {
     var state = PhoneApplicationService.Current.State;
     if (state.ContainsKey(Key))
     {
         state[Key] = quote;
     }
     else
     {
         state.Add(Key, quote);
     }
 }
コード例 #3
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     _infoSharing = DarumaInfoSharing.GetQuote();
     base.OnNavigatedTo(e);
 }
コード例 #4
0
 private void Share_OnClick(object sender, EventArgs eventArgs)
 {
     var quote = new DarumaInfoSharing(Daruma.Theme, Quote);
     DarumaInfoSharing.SetQuote(quote);
     
     NavigationService.Navigate(new Uri(ViewUrlRouter.SharingViewUrl, UriKind.Relative));
 }
コード例 #5
0
 private void NavigateToSharingView(DarumaInfoSharing infoSharing)
 {
     DarumaInfoSharing.SetQuote(infoSharing);
     NavigationService.Navigate(new Uri(ViewUrlRouter.SharingViewUrl, UriKind.Relative));
 }