Esempio 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 Draugr(Object sender, RoutedEventArgs e)
        {
            var dd = new DoubleDraugrUC(b, ord, co, sb);

            dd.DataContext = new DoubleDraugr();
            b.Child        = dd;
            ord.order.Add((IOrderItem)dd.DataContext);
        }
Esempio 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 Draugr(Object sender, RoutedEventArgs e)
        {
            var dd = new DoubleDraugrUC(b, o, co, sb);

            dd.DataContext = new DoubleDraugr();
            b.Child        = dd;
            dd.InitCombo(com);
            com.Entree = (Entree)(dd.DataContext);
        }