Пример #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 Garden(Object sender, RoutedEventArgs e)
        {
            var goo = new GardenOrcOmeletteUC(b, ord, co, sb);

            goo.DataContext = new GardenOrcOmelette();
            b.Child         = goo;
            ord.order.Add((IOrderItem)goo.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 Garden(Object sender, RoutedEventArgs e)
        {
            var goo = new GardenOrcOmeletteUC(b, o, co, sb);

            goo.DataContext = new GardenOrcOmelette();
            b.Child         = goo;
            goo.InitCombo(com);
            com.Entree = (Entree)(goo.DataContext);
        }