Ejemplo n.º 1
0
        private void SetActiveListBox(eListBoxType listBox)
        {
            switch (listBox)
            {
            case eListBoxType.FocusedPaneListBox:
                m_activeListBox = focusedPaneListBox;
                m_activeList    = m_focusedPaneControlList;
                unfocusedPaneListBox.Enabled = false;
                break;

            case eListBoxType.UnfocusedPaneListBox:
                m_activeListBox            = unfocusedPaneListBox;
                m_activeList               = m_unfocusedPaneControlList;
                focusedPaneListBox.Enabled = false;
                break;

            default:
                throw new System.ApplicationException("SetActiveListBox() - unhandled list box type specified");
            }

            m_activeListBox.Enabled = true;
            UpdateToolStripStatus();
        }
        private void SetActiveListBox(eListBoxType listBox)
        {
            switch(listBox)
            {
                case eListBoxType.FocusedPaneListBox:
                    m_activeListBox = focusedPaneListBox;
                    m_activeList = m_focusedPaneControlList;
                    unfocusedPaneListBox.Enabled = false;
                    break;
                    
                case eListBoxType.UnfocusedPaneListBox:
                    m_activeListBox = unfocusedPaneListBox;
                    m_activeList = m_unfocusedPaneControlList;
                    focusedPaneListBox.Enabled = false;
                    break;

                default:
                    throw new System.ApplicationException("SetActiveListBox() - unhandled list box type specified");
            }

            m_activeListBox.Enabled = true;
            UpdateToolStripStatus();
        }