Guest User

Untitled

a guest
Oct 15th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.21 KB | None | 0 0
  1.         private void SecondtListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
  2.         {
  3.             if (null != SecondtListBox.SelectedItem)
  4.             {
  5.                 int selectedItem = SecondtListBox.SelectedIndex;
  6.                 switch (selectedItem)
  7.                 {
  8.                     case 0:
  9.                         // This is where we show the twitter setup pane
  10.                         SecondtListBox.SelectedIndex = -1;
  11.                         NavigationService.Navigate(new Uri("/Page1.xaml", UriKind.Relative));
  12.                         break;
  13.                     case 1:
  14.                         SecondtListBox.SelectedIndex = -1;
  15.                         // This should link to cattes.us donation link
  16.                         string username;
  17.                         string password;
  18.                         IsolatedStorageSettings.ApplicationSettings.TryGetValue<string>("username", out username);
  19.                         IsolatedStorageSettings.ApplicationSettings.TryGetValue<string>("password", out password);
  20.                         MessageBox.Show("Username: " + username + " \nPassword: " + password);
  21.                         break;
  22.                 }
  23.             }
  24.         }
Add Comment
Please, Sign In to add comment