Example #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 Thugs(Object sender, RoutedEventArgs e)
        {
            var tt = new ThugsTBoneUC(b, ord, co, sb);

            tt.DataContext = new ThugsTBone();
            b.Child        = tt;
            ord.order.Add((IOrderItem)tt.DataContext);
        }
Example #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 Thugs(Object sender, RoutedEventArgs e)
        {
            var tt = new ThugsTBoneUC(b, o, co, sb);

            tt.DataContext = new ThugsTBone();
            b.Child        = tt;
            tt.InitCombo(com);
            com.Entree = (Entree)(tt.DataContext);
        }