private void Button_Click(object sender, RoutedEventArgs e) { FourSquare.DuplicateVenueChallenge challenge = DataContext as FourSquare.DuplicateVenueChallenge; if (challenge != null) { FourSquare.Instance.AddVenue(challenge.OriginalName, challenge.OriginalDataPairs, OnVenueCreated, OnDuplicatesChallenge, OnVenueCreateFailure); } }
public void OnDuplicatesChallenge(FourSquare.DuplicateVenueChallenge challenge) { // This set of pages will definitely be a little buggy because for // now it doesn't support tombstoning. CurrentChallenge = challenge; PriorityQueue.AddUiWorkItem(() => { NavigationService.RemoveBackEntry(); // the add page. NOT this page which will next be removed.. NavigationService.Navigate(new Uri("/JeffWilcox.FourthAndMayor.Place;component/AddVenueDuplicates.xaml", UriKind.Relative)); }); }
private void OnDuplicatesChallenge(FourSquare.DuplicateVenueChallenge dvc) { OnVenueCreateFailure(null); }
public void OnDuplicatesChallenge(FourSquare.DuplicateVenueChallenge challenge) { // This set of pages will definitely be a little buggy because for // now it doesn't support tombstoning. CurrentChallenge = challenge; PriorityQueue.AddUiWorkItem(() => { NavigationService.RemoveBackEntry(); // the add page. NOT this page which will next be removed.. NavigationService.Navigate(new Uri("/JeffWilcox.FourthAndMayor.Place;component/AddVenueDuplicates.xaml", UriKind.Relative)); }); }