private void submitButton_click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { // Create window object double width = double.Parse(widthTextBox.Text); double height = double.Parse(heightTextBox.Text); string tint = ((ComboBoxItem)tintComboBox.SelectedItem).Content.ToString(); int quantity = (int)quantitySlider.Value; WindowOrder window = new WindowOrder(width, height, tint, quantity); // Open the Submit page this.Frame.Navigate(typeof(SubmitPage), window); }
public double calcGlassArea(WindowOrder window) { return(2 * window.height * window.width); }
public double calcWoodLength(WindowOrder window) { return((window.height + window.width) * 3.25 * 2); }