public FrozenDrinkPage() { smoothie = SmoothieType.SB; //Default Smoothie Type InitializeComponent(); CartListBox.ItemsSource = MainWindow.cart; CartListBox.DataContext = MainWindow.cart; /* Hides all components until option is selected */ /* Size Block */ this.Size_Con.Visibility = Visibility.Hidden; this.Size.Visibility = Visibility.Hidden; this.Size_S.Visibility = Visibility.Hidden; this.Size_M.Visibility = Visibility.Hidden; this.Size_L.Visibility = Visibility.Hidden; /* Milk Block */ this.Milk_Con.Visibility = Visibility.Hidden; this.Milk.Visibility = Visibility.Hidden; this.Two.Visibility = Visibility.Hidden; this.Whole.Visibility = Visibility.Hidden; this.Nonfat.Visibility = Visibility.Hidden; this.Soy.Visibility = Visibility.Hidden; /* Smoothie Block */ this.Smooth_SB.Visibility = Visibility.Hidden; this.Smooth_TB.Visibility = Visibility.Hidden; this.Smooth_MB.Visibility = Visibility.Hidden; this.Smooth_MA.Visibility = Visibility.Hidden; this.Smooth_CV.Visibility = Visibility.Hidden; this.Smooth_DA.Visibility = Visibility.Hidden; /* Other */ this.Comments.Visibility = Visibility.Hidden; }
private void Smooth_SB_Click(object sender, RoutedEventArgs e) { smoothie = SmoothieType.SB; Smooth_SB.Background = Brushes.PaleTurquoise; Smooth_TB.Background = Brushes.LightGray; Smooth_MB.Background = Brushes.LightGray; Smooth_MA.Background = Brushes.LightGray; Smooth_CV.Background = Brushes.LightGray; Smooth_DA.Background = Brushes.LightGray; }