Exemplo n.º 1
0
        /**
         * @brief 애니메이션 중단 버튼 관련 리스너
         * @author 김민규
         * @date 2017-07-31
         */

        private void changeEnabled(RibbonTab ribbonPanel, bool newEnabled)
        {
            IEnumerator <Component> currentComponent = ribbonPanel.GetAllChildComponents().GetEnumerator();
            IEnumerator <Component> currentInnerComponent;

            while (currentComponent.MoveNext())
            {
                if (currentComponent.Current is RibbonPanel)
                {
                    currentInnerComponent = (currentComponent.Current as RibbonPanel).GetAllChildComponents().GetEnumerator();
                    while (currentInnerComponent.MoveNext())
                    {
                        if (currentInnerComponent.Current is RibbonButton)
                        {
                            (currentInnerComponent.Current as RibbonButton).Enabled = newEnabled;
                        }
                    }
                }
            }
        }