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); } }
public static void SetQuote(DarumaInfoSharing quote) { var state = PhoneApplicationService.Current.State; if (state.ContainsKey(Key)) { state[Key] = quote; } else { state.Add(Key, quote); } }
protected override void OnNavigatedTo(NavigationEventArgs e) { _infoSharing = DarumaInfoSharing.GetQuote(); base.OnNavigatedTo(e); }
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)); }
private void NavigateToSharingView(DarumaInfoSharing infoSharing) { DarumaInfoSharing.SetQuote(infoSharing); NavigationService.Navigate(new Uri(ViewUrlRouter.SharingViewUrl, UriKind.Relative)); }