Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. private void Button_Click_1(object sender, RoutedEventArgs e)
  2.         {
  3.             IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
  4.  
  5.             if (!settings.Contains("userInput2"))
  6.             {
  7.                 settings.Add("userInput2", textBox2.Text);
  8.             }
  9.             else
  10.             {
  11.                 settings["userInput2"] = textBox2.Text;
  12.             }
  13.  
  14.             settings.Save();
  15.             this.NavigationService.Navigate(new Uri("/SecondPage.xaml?userInput=" + textBox.Text, UriKind.Relative));
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement