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 AppleJuice(Object sender, RoutedEventArgs e)
        {
            var aa = new ArentinoAppleJuiceUC(b, ord, co, sb);

            aa.DataContext = new ArentinoAppleJuice();
            b.Child        = aa;
            ord.order.Add((IOrderItem)aa.DataContext);
        }
        /// <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 AppleJuice(Object sender, RoutedEventArgs e)
        {
            var aa = new ArentinoAppleJuiceUC(b, o, co, sb);

            aa.DataContext = new ArentinoAppleJuice();
            b.Child        = aa;
            com.Drink      = (Drink)(aa.DataContext);
            o.order.Add(com);
        }