Ejemplo n.º 1
0
        private void CheckVisible(bool isNormal, bool isMulti, bool isSensitivity, TabPage tabPage)
        {
            var tag = (string)tabPage.Tag;

            switch (tag)
            {
            case "Normal":
                tabPage.CheckVisible(isNormal, tabControlMode, toHidePages, toShowPages);
                break;

            case "Multi":
                tabPage.CheckVisible(isMulti, tabControlMode, toHidePages, toShowPages);
                break;

            case "Sensitivity":
                tabPage.CheckVisible(isSensitivity, tabControlMode, toHidePages, toShowPages);
                break;

            case "All":
                break;

            default:
                throw new Exception("Unknown mode : " + tag);
            }
        }