Beispiel #1
0
        public bool OnKeyUp(System.Windows.Forms.KeyEventArgs e)
        {
            bool handled = false;

            // if we aren't active do nothing.
            if ((!m_visible) || (!m_enabled))
            {
                return(false);
            }

            for (int index = 0; index < m_ChildWidgets.Count; index++)
            {
                IWidget currentWidget = m_ChildWidgets[index] as IWidget;

                if (currentWidget != null && currentWidget is IInteractive)
                {
                    IInteractive currentInteractive = m_ChildWidgets[index] as IInteractive;

                    handled = currentInteractive.OnKeyUp(e);
                    if (handled)
                    {
                        return(handled);
                    }
                }
            }

            return(handled);
        }
Beispiel #2
0
        public bool OnKeyUp(System.Windows.Forms.KeyEventArgs e)
        {
            for (int index = 0; index < m_ChildWidgets.Count; index++)
            {
                IWidget currentWidget = m_ChildWidgets[index] as IWidget;

                if (currentWidget != null && currentWidget is IInteractive)
                {
                    IInteractive currentInteractive = m_ChildWidgets[index] as IInteractive;

                    bool handled = currentInteractive.OnKeyUp(e);
                    if (handled)
                    {
                        return(handled);
                    }
                }
            }
            return(false);
        }