Exemple #1
0
        private void LockModeButtonEnabler(PropLineTool.DrawMode drawModeButton, bool isEnabled)
        {
            int _index = 0;

            switch (drawModeButton)
            {
            case PropLineTool.DrawMode.Single:
            {
                _index = 0;
                break;
            }

            case PropLineTool.DrawMode.Straight:
            {
                _index = 1;
                break;
            }

            case PropLineTool.DrawMode.Curved:
            {
                _index = 2;
                break;
            }

            case PropLineTool.DrawMode.Freeform:
            {
                _index = 3;
                break;
            }

            case PropLineTool.DrawMode.Circle:
            {
                _index = 4;
                break;
            }
            }

            //if(_index == 4)
            //{
            //    return;
            //}

            if (isEnabled)
            {
                _tabstrip.EnableTab(_index);
            }
            else
            {
                _tabstrip.DisableTab(_index);
            }
        }