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

            ww.DataContext = new WarriorWater();
            b.Child        = ww;
            ord.order.Add((IOrderItem)ww.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 Warrior(Object sender, RoutedEventArgs e)
        {
            var ww = new WarriorWaterUC(b, o, co, sb);

            ww.DataContext = new WarriorWater();
            b.Child        = ww;
            com.Drink      = (Drink)(ww.DataContext);
            o.order.Add(com);
        }