Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class GlobalValueOne
- { public static int price; }
- public static class GlobalValueTwo
- { public static int quantity; }
- public static class GlobalValueThree
- { public static int total; }
- public static class GlobalBusiness
- { public static int select;}
- public static class GlobalPersonal
- { public static int otherselect; }
- namespace ThreeScreenDropBox
- {
- /// <summary>
- /// An empty page that can be used on its own or navigated to within a Frame.
- /// </summary>
- public sealed partial class MainPage : Page
- {
- public MainPage()
- {
- this.InitializeComponent();
- }
- private void TotalButton_Click(object sender, RoutedEventArgs e)
- {
- GlobalValueOne.price = int.Parse(PriceBox.Text);
- GlobalValueTwo.quantity = int.Parse(QuantityBox.Text);
- GlobalValueThree.total = GlobalValueOne.price * GlobalValueTwo.quantity;
- TotalBox.Text = GlobalValueThree.total.ToString();
- }
- private void BusinessButton_Checked(object sender, RoutedEventArgs e)
- {
- GlobalBusiness.select++;
- }
- private void PersonalButton_Checked(object sender, RoutedEventArgs e)
- {
- GlobalPersonal.otherselect++;
- }
- private void NextPageButton_Click(object sender, RoutedEventArgs e)
- {
- Frame.Navigate(typeof(Page2));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement