Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public sealed partial class Page2 : Page
  2. {
  3. public Page2()
  4. {
  5. this.InitializeComponent();
  6. }
  7.  
  8. protected override void OnNavigatedTo(NavigationEventArgs e)
  9. {
  10. base.OnNavigatedTo(e);
  11. }
  12.  
  13. private void PrevTotalBox_TextChanged(object sender, TextChangedEventArgs e)
  14. {
  15. PrevTotalBox.Text = GlobalValueThree.total.ToString();
  16. }
  17.  
  18. private void TipBox_TextChanged(object sender, TextChangedEventArgs e)
  19. {
  20. int x = GlobalBusiness.select;
  21. int BusTip = 20;
  22. int PersTip = 15;
  23. if ( x == 1)
  24. {
  25. TipBox.Text = BusTip.ToString();
  26. }
  27. else
  28. {
  29. TipBox.Text = PersTip.ToString();
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement