/// <summary> /// Event handler for Thugs T-Bone selection /// </summary> /// <param name="sender">control exectuting event</param> /// <param name="e">data for event</param> void ThugsTBone(object sender, RoutedEventArgs e) { eo = new EntreeOptions(); containerBorder.Child = eo; eo.entree.Text = "Thugs T-Bone"; ThugsTBone tb = new ThugsTBone(); eo.entree.Text = tb.ToString(); eo.DataContext = tb; }
/// <summary> /// Event handler for Briarheart Burger selection /// </summary> /// <param name="sender">control exectuting event</param> /// <param name="e">data for event</param> void BriarheartBurger(object sender, RoutedEventArgs e) { eo = new EntreeOptions(); containerBorder.Child = eo; //eo.entree.Text = "Briarheart Burger"; BriarheartBurger bb = new BriarheartBurger(); eo.entree.Text = bb.ToString(); eo.DataContext = bb; burgerBase(); }
/// <summary> /// Event handler for Philly Poacher selection /// </summary> /// <param name="sender">control exectuting event</param> /// <param name="e">data for event</param> void PhillyPoacher(object sender, RoutedEventArgs e) { eo = new EntreeOptions(); containerBorder.Child = eo; //eo.entree.Text = "Philly Poacher"; PhillyPoacher pp = new PhillyPoacher(); eo.entree.Text = pp.ToString(); eo.DataContext = pp; eo.sirloin.Visibility = Visibility.Visible; //eo.sirloin.IsChecked = true; eo.onion.Visibility = Visibility.Visible; //eo.onion.IsChecked = true; eo.roll.Visibility = Visibility.Visible; //eo.roll.IsChecked = true; }
/// <summary> /// Event handler for Double Draugr selection /// </summary> /// <param name="sender">control exectuting event</param> /// <param name="e">data for event</param> void DoubleDraugr(object sender, RoutedEventArgs e) { eo = new EntreeOptions(); containerBorder.Child = eo; //eo.entree.Text = "Double Draugr"; DoubleDraugr dd = new DoubleDraugr(); eo.entree.Text = dd.ToString(); eo.DataContext = dd; burgerBase(); eo.lettuce.Visibility = Visibility.Visible; //eo.lettuce.IsChecked = true; eo.tomato.Visibility = Visibility.Visible; //eo.tomato.IsChecked = true; eo.mayo.Visibility = Visibility.Visible; //eo.mayo.IsChecked = true; }
/// <summary> /// Event handler for Garden Orc Omelette selection /// </summary> /// <param name="sender">control exectuting event</param> /// <param name="e">data for event</param> void GardenOrcOmelette(object sender, RoutedEventArgs e) { eo = new EntreeOptions(); containerBorder.Child = eo; //eo.entree.Text = "Garden Orc Omelette"; GardenOrcOmelette go = new GardenOrcOmelette(); eo.entree.Text = go.ToString(); eo.DataContext = go; eo.broccoli.Visibility = Visibility.Visible; //eo.broccoli.IsChecked = true; eo.mushrooms.Visibility = Visibility.Visible; //eo.mushrooms.IsChecked = true; eo.tomato.Visibility = Visibility.Visible; //.tomato.IsChecked = true; eo.cheddar.Visibility = Visibility.Visible; //eo.cheddar.IsChecked = true; }
/// <summary> /// Event handler for Smokehouse Skeleton selection /// </summary> /// <param name="sender">control exectuting event</param> /// <param name="e">data for event</param> void SmokehouseSkeleton(object sender, RoutedEventArgs e) { eo = new EntreeOptions(); containerBorder.Child = eo; //eo.entree.Text = "Smokehouse Skeleton"; SmokehouseSkeleton ss = new SmokehouseSkeleton(); eo.entree.Text = ss.ToString(); eo.DataContext = ss; eo.sausage.Visibility = Visibility.Visible; //eo.sausage.IsChecked = true; eo.egg.Visibility = Visibility.Visible; //eo.egg.IsChecked = true; eo.hashbrowns.Visibility = Visibility.Visible; //eo.hashbrowns.IsChecked = true; eo.pancake.Visibility = Visibility.Visible; //eo.pancake.IsChecked = true; }
/// <summary> /// Event handler for Thalmor Triple selection /// </summary> /// <param name="sender">control exectuting event</param> /// <param name="e">data for event</param> void ThalmorTriple(object sender, RoutedEventArgs e) { eo = new EntreeOptions(); containerBorder.Child = eo; //eo.entree.Text = "Thalmor Triple"; ThalmorTriple tt = new ThalmorTriple(); eo.entree.Text = tt.ToString(); eo.DataContext = tt; burgerBase(); eo.lettuce.Visibility = Visibility.Visible; //eo.lettuce.IsChecked = true; eo.tomato.Visibility = Visibility.Visible; //eo.tomato.IsChecked = true; eo.mayo.Visibility = Visibility.Visible; //eo.mayo.IsChecked = true; eo.egg.Visibility = Visibility.Visible; //eo.egg.IsChecked = true; eo.bacon.Visibility = Visibility.Visible; //eo.bacon.IsChecked = true; }
/// <summary> /// All buttons go to this event handler, it takes the button name and choose respective entree option window /// </summary> /// <param name="sender">button</param> /// <param name="e">press</param> private void ShowEntreeOptions(object sender, RoutedEventArgs e) { EntreeOptions entreeOption = new EntreeOptions(); entreeOption.StringGetter = (sender as Button).Name; if ((Application.Current.MainWindow as MainWindow).ComboChecker) { entreeOption.Combo.IsChecked = true; entreeOption.Combo.IsEnabled = false; } if (entreeOption.StringGetter == "briarheartBurger") { entreeOption.bun.IsEnabled = true; entreeOption.ketchup.IsEnabled = true; entreeOption.mustard.IsEnabled = true; entreeOption.pickle.IsEnabled = true; entreeOption.cheese.IsEnabled = true; } else if (entreeOption.StringGetter == "doubleDraugr") { entreeOption.bun.IsEnabled = true; entreeOption.ketchup.IsEnabled = true; entreeOption.mustard.IsEnabled = true; entreeOption.pickle.IsEnabled = true; entreeOption.cheese.IsEnabled = true; entreeOption.tomato.IsEnabled = true; entreeOption.lettuce.IsEnabled = true; entreeOption.mayo.IsEnabled = true; } else if (entreeOption.StringGetter == "gardenOrcOmelette") { entreeOption.broccoli.IsEnabled = true; entreeOption.mushroom.IsEnabled = true; entreeOption.tomato.IsEnabled = true; entreeOption.cheddar.IsEnabled = true; } else if (entreeOption.StringGetter == "phillyPoacher") { entreeOption.sirloin.IsEnabled = true; entreeOption.onion.IsEnabled = true; entreeOption.roll.IsEnabled = true; } else if (entreeOption.StringGetter == "smokeHouseSkeleton") { entreeOption.sausage.IsEnabled = true; entreeOption.hashBrowns.IsEnabled = true; entreeOption.pancakes.IsEnabled = true; entreeOption.eggs.IsEnabled = true; } else if (entreeOption.StringGetter == "thalmorTriple") { entreeOption.bun.IsEnabled = true; entreeOption.ketchup.IsEnabled = true; entreeOption.mustard.IsEnabled = true; entreeOption.pickle.IsEnabled = true; entreeOption.cheese.IsEnabled = true; entreeOption.tomato.IsEnabled = true; entreeOption.lettuce.IsEnabled = true; entreeOption.mayo.IsEnabled = true; entreeOption.eggs.IsEnabled = true; entreeOption.bacon.IsEnabled = true; } (this.Parent as Border).Child = entreeOption; }