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

            fm.DataContext = new FriedMiraak();
            b.Child        = fm;
            ord.order.Add((IOrderItem)fm.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 Miraak(Object sender, RoutedEventArgs e)
        {
            var fm = new FriedMiraakUC(b, o, co, sb);

            fm.DataContext = new FriedMiraak();
            b.Child        = fm;
            fm.InitCombo(com);
            com.Side = (Side)(fm.DataContext);
        }