Exemple #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 Philly(Object sender, RoutedEventArgs e)
        {
            var pp = new PhillyPoacherUC(b, ord, co, sb);

            pp.DataContext = new PhillyPoacher();
            b.Child        = pp;
            ord.order.Add((IOrderItem)pp.DataContext);
        }
Exemple #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 Philly(Object sender, RoutedEventArgs e)
        {
            var pp = new PhillyPoacherUC(b, o, co, sb);

            pp.DataContext = new PhillyPoacher();
            b.Child        = pp;
            pp.InitCombo(com);
            com.Entree = (Entree)(pp.DataContext);
        }