Exemplo n.º 1
0
        /// <summary>
        /// Finds the parent control and creates an object out of that then calls
        /// newly created order control objects screen switching method
        /// </summary>
        /// <param name="screenToSwitchTo">specifies which screen to switch to from current screen</param>
        void SendToScreenSwitcher(FrameworkElement screenToSwitchTo)
        {
            OrderComponent orderController = this.FindControl <OrderComponent>();

            orderController.SwitchScreens(screenToSwitchTo);
        }
Exemplo n.º 2
0
        //static MenuSelection menu;
        /// <summary>
        /// Finds the elements parent control and switches screens
        /// </summary>
        /// <param name="element"></param>
        public static void ReturnToMenuScreen(FrameworkElement element, MenuSelection menu)
        {
            OrderComponent orderControl = element.FindControl <OrderComponent>();

            orderControl.SwitchScreens(menu);//make sure you are only changing uppermost border.
        }