Exemplo n.º 1
0
        /// <summary>
        /// Click event changing the screen to the user control that was cliked on
        /// </summary>
        /// <param name="sender">needed for click event</param>
        /// <param name="e">needed for click event</param>
        void Fries(Object sender, RoutedEventArgs e)
        {
            var dbw = new DragonBornWaffleFriesUC(b, ord, co, sb);

            dbw.DataContext = new DragonbornWaffleFries();
            b.Child         = dbw;
            ord.order.Add((IOrderItem)dbw.DataContext);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Click event changing the screen to the user control that was cliked on
        /// </summary>
        /// <param name="sender">needed for click event</param>
        /// <param name="e">needed for click event</param>
        void Fries(Object sender, RoutedEventArgs e)
        {
            var dbw = new DragonBornWaffleFriesUC(b, o, co, sb);

            dbw.DataContext = new DragonbornWaffleFries();
            b.Child         = dbw;
            dbw.InitCombo(com);
            com.Side = (Side)(dbw.DataContext);
        }