/// <summary>
        /// Event handler for Dragonborn Waffle Fries selection
        /// </summary>
        /// <param name="sender">control exectuting event</param>
        /// <param name="e">data for event</param>
        void DragonbornWaffleFries(object sender, RoutedEventArgs e)
        {
            so = new SideOptions();
            containerBorder.Child = so;
            DragonbornWaffleFries df = new DragonbornWaffleFries();

            so.DataContext = df;
            so.side.Text   = "Dragonborn Waffle Fries";
        }
        /// <summary>
        /// Event handler for Fried Miraak selection
        /// </summary>
        /// <param name="sender">control exectuting event</param>
        /// <param name="e">data for event</param>
        void FriedMiraak(object sender, RoutedEventArgs e)
        {
            so = new SideOptions();
            containerBorder.Child = so;
            FriedMiraak fm = new FriedMiraak();

            so.DataContext = fm;
            so.side.Text   = "Fried Miraak";
        }
        /// <summary>
        /// Event handler for Mad Otar Grits selection
        /// </summary>
        /// <param name="sender">control exectuting event</param>
        /// <param name="e">data for event</param>
        void MadOtarGrits(object sender, RoutedEventArgs e)
        {
            so = new SideOptions();
            containerBorder.Child = so;
            MadOtarGrits mg = new MadOtarGrits();

            so.DataContext = mg;
            so.side.Text   = "Mad Otar Grits";
        }
        /// <summary>
        /// Event handler for Vokun Salad selection
        /// </summary>
        /// <param name="sender">control exectuting event</param>
        /// <param name="e">data for event</param>
        void VokunSalad(object sender, RoutedEventArgs e)
        {
            so = new SideOptions();
            containerBorder.Child = so;
            VokunSalad vs = new VokunSalad();

            so.DataContext = vs;
            so.side.Text   = "Vokun Salad";
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Show the side option menu
        /// </summary>
        /// <param name="sender">button</param>
        /// <param name="e">press</param>
        private void ShowSideOptions(object sender, RoutedEventArgs e)
        {
            SideOptions sideOption = new SideOptions();

            sideOption.StringGetter = (sender as Button).Name;
            if ((Application.Current.MainWindow as MainWindow).ComboChecker)
            {
                sideOption.Combo.IsChecked = true;
                sideOption.Combo.IsEnabled = false;
            }
            (this.Parent as Border).Child = sideOption;
        }