Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void SecondtListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
- {
- if (null != SecondtListBox.SelectedItem)
- {
- int selectedItem = SecondtListBox.SelectedIndex;
- switch (selectedItem)
- {
- case 0:
- // This is where we show the twitter setup pane
- SecondtListBox.SelectedIndex = -1;
- NavigationService.Navigate(new Uri("/Page1.xaml", UriKind.Relative));
- break;
- case 1:
- SecondtListBox.SelectedIndex = -1;
- // This should link to cattes.us donation link
- string username;
- string password;
- IsolatedStorageSettings.ApplicationSettings.TryGetValue<string>("username", out username);
- IsolatedStorageSettings.ApplicationSettings.TryGetValue<string>("password", out password);
- MessageBox.Show("Username: " + username + " \nPassword: " + password);
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment