コード例 #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 Grits(Object sender, RoutedEventArgs e)
        {
            var mog = new MadOtarGritsUC(b, ord, co, sb);

            mog.DataContext = new MadOtarGrits();
            b.Child         = mog;
            ord.order.Add((IOrderItem)mog.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 Grits(Object sender, RoutedEventArgs e)
        {
            var mog = new MadOtarGritsUC(b, o, co, sb);

            mog.DataContext = new MadOtarGrits();
            b.Child         = mog;
            mog.InitCombo(com);
            com.Side = (Side)(mog.DataContext);
        }