コード例 #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 Briarheart(Object sender, RoutedEventArgs e)
        {
            var bb = new BriarheartBurgerUC(b, ord, co, sb);

            bb.DataContext = new BriarheartBurger();
            b.Child        = bb;
            ord.order.Add((IOrderItem)bb.DataContext);
        }
コード例 #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 Briarheart(Object sender, RoutedEventArgs e)
        {
            var bb = new BriarheartBurgerUC(b, o, co, sb);

            bb.DataContext = new BriarheartBurger();
            b.Child        = bb;
            bb.InitCombo(com);
            com.Entree = (Entree)(bb.DataContext);
        }